docs(memory): consolidate stranded agent-memory lessons from merged worktrees - #790
Merged
Conversation
…orktrees Preserve documentation and agent-memory content that was left uncommitted in stale worktrees whose feature branches have already merged to main. The cleanup-merged-worktrees triage classified each file against main by topic; only content judged genuinely new, or a correction to what main records, is carried here. Superseded drafts, duplicates, and contradicted lessons were left behind for deletion with their worktrees. - 65 new agent-memory lesson files across atomic-executor, atomic-planner, feature-review, orchestrator, parallel-orchestrator, parallel-planner, prd-feature, and task-researcher, with matching MEMORY.md index lines. - 19 existing lesson files extended with paragraphs recorded in the bugs-2026-09-02 parallel run and in individual item worktrees; the preflight inertness-test file is a three-way merge with main's newer text. - Two promotion provenance records restored under docs/features/potential/ promoted/ (issues #742 and #751). - Two orchestrator index entries added for lesson files that were present on main but missing from MEMORY.md. - Account and host tokens in the carried text replaced with placeholders per .claude/agent-memory/_shared_no_absolute_host_paths.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
drmoisan
force-pushed
the
documentationandmemories
branch
from
September 6, 2026 21:04
01977e4 to
b22064f
Compare
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.
Suggested title
docs(memory): consolidate stranded agent-memory lessons from merged worktrees
Summary
main.docs/features/potential/promoted/thatmainlacked.MEMORY.mdindex lines for every new lesson file, plus two index entries for orchestrator lessons that were already onmainbut unindexed.Why
The
cleanup-merged-worktreesskill found 57 registered worktrees and 69 local branches after the recent parallel run and epic work. Forty-five branches were fully merged, but their worktrees still held uncommitted lesson files written by planner, executor, reviewer, and orchestrator agents. Deleting those worktrees without this consolidation would discard the content permanently.Each stranded file was triaged against
mainby topic, not by filename. Only content judged genuinely new, or a correction to whatmaincurrently records, is carried here. Superseded drafts, duplicates of existing lessons, and lessons contradicted by later fixes onmainwere left behind for deletion with their worktrees.What Changed
Agent-memory lessons (new files, 65)
atomic-executor(20): toolchain and gate mechanics observed during execution, for example the vstest duplicate.coverageattachment, the MSTest deploy-directory token leak on failing runs, theglobal.jsoncwd-walk interaction with Bash discipline, and CSharpier's blank-line-before-comment rule.atomic-planner(9): plan-authoring rules such as splitting measured versus confirming runs, verifying citations in the assigned worktree, and the line-anchored gotchas of the planner-output hook.feature-review(11): review residual ledgers for recently merged issues and reviewer traps around Cobertura, Pester coverage nodes, and YAML comment-only diffs.orchestrator(14): hook and topology facts for preparation mode, prep worktrees, the Agent-tool-less session case, and coverage-gate visibility of[ExcludeFromCodeCoverage].parallel-orchestrator(5),parallel-planner(2),prd-feature(1),task-researcher(1).Agent-memory lessons (extended, 19 modified files plus 8
MEMORY.mdindexes)bugs-2026-09-02parallel run and in individual item worktrees. Most are additive; threeparallel-plannerfiles are rewrites that supersede stale measurements.main's newer "Better remedy" section is kept and the worktree's per-scope tiers and corollary are inserted ahead of it.Promotion records (2)
docs/features/potential/promoted/2026-09-02-quickfiler-date-time-format-missing-invariant-culture.mddocs/features/potential/promoted/2026-09-03-terminal-notification-hook-test-lacks-sync-barrier.mdArchitecture / How It Fits Together
Agent memory is tracked repository content under
.claude/agent-memory/<agent>/, one lesson per file, indexed by that agent'sMEMORY.md. Agents load the index at session start and open individual lesson files on demand. This PR adds files and index lines only; it does not change any hook, skill, agent definition, or script.Verification
Completed
mainby content hash and bygit log --find-object; none of the carried content exists in git history, so nothing here duplicates a committed file.MEMORY.mddiff was checked to be additions only (no removed index lines).Test-OrchestratorStatePrCreationReadiness) and the orchestrator-state validator both passed.Recommended
CI status for the head commit is not available in the collected context. Not verified in this PR.
Backward Compatibility / Migration Notes
TaskMaster-wt-2026-09-02T08-47branch: themodel-routing-hook-reads-canonical-path-only.md"trap 2" paragraph describes a hook change that has not landed onmainor upstream. Readers should treat that paragraph as describing a pending fix.Risks and Mitigations
main. Mitigation: each file was checked againstmain's current script, hook, or config where it documents a defect; files whose defect is already fixed were excluded. Rollback is a revert of the single commit.prd-feature-hook-blocks-reused-prep-worktree-topology.mdversuspreparation-child-cwd-is-session-root-not-item-worktree.md). Mitigation: both are carried so neither observation is lost; reconciling them is listed as a follow-up..claude/**. Mitigation: the appendix's name-status list is authoritative and shows all 92 files.Review Guide
MEMORY.mddiffs; they enumerate every new lesson with a one-line description.feature-review/project_*-review-residuals.mdfiles next; several name residual defects that have no follow-up issue yet.parallel-plannerrewrites and the preflight inertness-test merge are the only non-additive diffs.Follow-ups
documentationandmemoriesbranch.GitHub Auto-close
🤖 Generated with Claude Code