Repository navigation
feat(memory): make memory opt-in and cap the note at 8 KB - #811
Merged
Merged
Conversation
Keep the stored choice on re-init. Record memory as on once for older manifests that have no memory key. Start with memory off after a reset. Refs #807 Task: feat/807-working-memory-small-note
Show the enable command in init. State the note limit and give advice for parallel sessions. Keep memory hooks in the GitHub fixture setup. Refs #807
Keep memory hooks in the GitHub snapshot and hook matrix. Record the memory-off default in the Jira HIPAA snapshot. Refs #807
Set shared note limits and keep the session stamp format in one place. Add one extractor for the working directory, session ID and event value. Refs #807 Task: feat/807-working-memory-small-note
Tag prompt and reply rows for memory. Keep curation rows byte for byte. Leave no terminal error when a queue moves during a trim. Refs #807 (feat/807-working-memory-small-note)
Keep session IDs on memory question rows. Pair prompts and replies only when their session IDs match. Mark batches with interleaved sessions. Refs #807 (feat/807-working-memory-small-note)
Keep only the Now and Progress sections within 8192 bytes. Set the stamp from the checkout and keep the multi-session mark for four hours. Keep the old note if a new note does not fit. Give the batch one retry before the worker leaves a notice and drops it. Task: feat/807-working-memory-small-note (P6) Refs #807
Keep the queue for the next run if the worker cannot claim it. Release the queue lock before the worker trims the claimed batch. Refs: feat/807-working-memory-small-note (#807)
Skip notes above 8,192 bytes and keep the refresh banner. Show worktree advice when the note covers more than one session. Create new notes with two fixed sections at compaction. Refs #807
Record the off default, the note limit, and the worktree advice. Refs #807 (feat/807-working-memory-small-note)
Use the verified note outcome before the denial count. Restore the worker's rules for task status without adding sections to the note. Refs: feat/807-working-memory-small-note
Exit cleanly when prompt extraction fails. Keep the capture log when the session ID is absent or invalid. Refs: feat/807-working-memory-small-note
Test both memory toggle writes now that memory is off by default. Keep the detached stamp and backup checks for the fixed first note. Check the trim threshold and merge cap through the capture helper. Update the line numbers for the three existing heredocs. Refs feat/807-working-memory-small-note
Keep the HUD forecast and the working memory changes. Keep their changelog entries under Unreleased. Task: feat/807-working-memory-small-note Refs #807
Use a byte budget for notes. Preserve turn order after an interrupted merge. Clear temporary note output if the swap copy fails. Task: resolve-C
Set a process limit for FIFO tests. Check refusal logs, swap modes, malformed stamps, and denial markers. Task: resolve-A
Use warm fakes and a test budget for worker runs. Check the memory summary in the existing install test. Check the options that init passes to the confirmation prompt. Task: resolve-D
Discard the refused batch and leave a path notice when the worker finds an occupied refusal marker path. Leave the entry in place. Test paused notice cleanup and absent session IDs. Task: resolve-D
Keep the live queue when a read-only batch prevents a merge. Report each refused path once at session start. Test blocked paths and failed moves separately. Match the current notice text and update the existing heredoc exclusions. Task: resolve-valfix-1
… knowledge base and split out the backup and JSON fallback
Owner
Author
Test Plan Evidence — 75b99d7Verified 50/50: VERIFIED-CI 47, ATTESTED-LOCAL 3, UNVERIFIED 0, STALE 0, FAILED 0, INDETERMINATE 0
Review Summary (cycle 1, at e0e2154)Gate level: lean. Focus areas: security, testing, reliability.
Resolution Summary
Fixed:
By design: the two allowed section lines must match exactly, and line 1 must carry the stamp prefix. Deferred (not filed): a shared time budget for tests with several hook runs; a capture test on the plain default install path; a separate text for an unreadable note at session start. Escalated, owner decision: a lost or unreadable machine manifest turns memory capture on again. This stays as a known limit and is in the PR body. Verification at ab7609a
Intent fix at 75b99d7The note header now says "more than one session" when two sessions write one note. This is also true when they write in separate batches.
|
The note stamp keeps the ID of the last session that wrote the note. A batch with two session IDs, or with an ID that differs from the stamp ID, marks the note. The mark ends four hours after the last such batch. A note stamp without a session ID gets no mark.
Merged
dean0x
added a commit
that referenced
this pull request
Nov 24, 2026
## Summary This PR sets the version to 3.21.0 and moves the `[Unreleased]` notes to the 3.21.0 section. After the merge, a `v3.21.0` tag on the merge commit starts the release workflow. ## Changes - `package.json` and `package-lock.json`: version 3.20.0 to 3.21.0. - `CHANGELOG.md`: new `## [3.21.0] - 2026-11-24` section, new empty `[Unreleased]` section, and the 3.21.0 compare link. - `CHANGELOG.md`: the `[Unreleased]` compare link now starts at `v3.21.0`. It started at `v3.8.0` before. ## Shipped in 3.21.0 - #794: Code Mode flag (closes #792). - #810: week forecast in the status line (closes #805). - #811: working memory is opt-in, and the note has an 8 KB limit (closes #807). - #809: acceptance criteria under level 2 to 4 headings (closes #808). ## Breaking Changes None. Working memory is off by default for new installs. Existing installs keep their choice. `devflow memory --enable` turns it on. ## Testing - `npm run build`: pass. - `npm run test`: 417 files, 20084 passed, 8 skipped, 0 failed. - `npm run test:integration`: 5 files, 55 passed. - `npm run version:bump -- 3.21.0` a second time changes no file. - The tests ran on the base commit c8282b1. This PR changes only the version and the changelog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Memory is on by default, and the note has no size limit. Two sessions in one checkout write their turns to one note, so the turns mix. This change turns memory off for new installs, caps the note at 8,192 bytes, and keeps the turns of each session apart.
Changes
devflow memory --enableto turn it on. An install made before this change keeps its value.## Nowand## Progress.Incompatible Changes
init --resetset memory off. Rundevflow memory --enableto turn it on.## Nowand## Progresssections. The next update removes the other sections.Known Limits
/clear, Claude Code starts a new session. Its docs do not say whether the new session gets a new session id. If it does, the first update after/clearsets the mark.How the criteria are read
The AC numbers refer to the acceptance criteria for this change. The readings below restate four of them in plain words.
memory: false. A manifest from an earlier install that has nomemorykey setsmemorytotrueone time.--resetsets memory to off.## Nowand## Progress. Titles at level three and deeper pass.Tests
npm testto check the branch.Related Issues
Closes #807