LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 7, 2026, 5:19 PM
updatedAtNov 7, 2026, 7:14 PM
githubUrlhttps://github.com/neomjs/neo/issues/20562
authorneo-opus-grace
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 7, 2026, 7:14 PM

Blog series part 2: an agent picks its work back up after compaction

Closed v13.4.0/archive-v13-4-0-chunk-4 enhancementBlog Postai
neo-opus-grace
neo-opus-grace commented on Nov 7, 2026, 5:19 PM

Context

#20278 maps the memory series How an AI team remembers in eight parts. Part 1 is published (#20226). The map gives part 2 its slice, "Picking the work back up after context compaction", and its search term, context compaction recovery. Julia's term read on #20278 (AC-1, comment 6632093512) adds two secondaries: ai agent context compaction and coding agent loses context after compaction. The source material is the recency axis of the Brain's MemoryCore.md plus the recovery runbook. #20278 §3 says each part gets its own ticket when its work starts; this is part 2's.

The Problem

A coding agent's context window compacts on any long run. The harness replaces the conversation with a summary, and the summary is lossy. An agent that resumes from it reopens settled questions, repeats finished work, or acts on a lane a teammate redirected while it was away. The obvious fixes, a longer summary or a handover note, are still lossy copies.

Read alone, part 1 showed one agent's memory server. Part 2 has to stay inside one agent's recovery without falling back into that frame. The material makes this possible: the recovery runbook is a team artifact. Five maintainers from four model families added its steps, each after a recovery went wrong.

The Architectural Reality

  • Recency vs. relevance. MemoryCore.md in neo-agent-brain describes two stores. query_recent_turns returns turns in chronological order from the Native Edge Graph ("what just happened, in order?"). Semantic recall lives in Chroma. Its own line: "a memory system that only has the first will confidently rebuild the wrong lane." The same guide records the first real recovery: a recovered context pointed at reviewing a PR that live state showed was already merged. The rule it left: memory proposes, live state decides.

  • The runbook. neo-agent-skills .agents/skills/context-recovery/references/context-recovery-workflow.md @ 76e66d9. Its sequence:

    1. Read the mailbox first.
    2. Read what you SENT: the handover body in full, then the outbox.
    3. Read the recency feed.
    4. Run semantic recall with anchors taken from that feed.
    5. Read session rollups if needed.
    6. Check live substrate state.
    7. Run the direction check (VISION/ROADMAP).
    8. Apply the identity quarantine.
    9. Write a recovery ledger with confidence: recovered | degraded.
  • Its lineage, each step from a failure:

    Change Ticket PR Model family
    The first version neo#12674 neo#12675 GPT (Euclid)
    Identity quarantine neo#14752 — Claude Fable (Mnemosyne)
    Load-proof check neo#15660 — Kimi (Iris)
    Read the handover body and the outbox neo#16618 neo#17318 Claude (Vega)
    The VISION check skills#203 skills#204 Claude Fable (Mnemosyne)
    Sibling-repository routing skills#240 skills#241 Gemini (Maryam)
  • Post mechanics. A post is learn/blog/<slug>.md plus an entry in apps/portal/resources/data/blog.json. Part 1's series section lists part 2 with no link until it publishes.

The Fix

  1. learn/blog/context-compaction-recovery-for-ai-coding-agents.md: title led by the search term, a "Part 2 of 8" line, and a byline in the house identity form.
  2. The arc:
    • compaction and the lossy summary;
    • why a better summary or handover still falls short;
    • rebuild from the record, step by step, with each step's origin linked;
    • one ordinary recovery, every link public: a PR whose only red was a CI timeout the agent had already fixed in another PR, merged hours before the session; a rebase turned it green (#20514, #20522);
    • the MemoryCore.md war story;
    • where it falls short, including that a recovered lane is not a recovered goal;
    • how to run it today.
  3. At least one visual: the recovery sequence. Mermaid for the portal; an image for the Medium import, under the operator's publishing.
  4. A blog.json entry with the part label, and part 1's series list links part 2.

Acceptance Criteria

  • AC-1: The post names its series and part under the title. Its opening says it covers one agent's recovery and that the runbook is the team's.
  • AC-2: Every load-bearing claim links a public receipt (runbook, MemoryCore.md, PRs and issues). Team-only figures are marked as such.
  • AC-3: At least one visual, render-verified at #/news/blog/<id>.
  • AC-4: The blog.json entry carries the part label, and part 1's series section links part 2.
  • AC-5: At least two model reviews, at least one from a family other than the author's; the operator approves last.
  • AC-6 (post-merge): the static URL resolves before any cross-post links it.

Out of Scope

  • Part 1's first-screen rewrite. It's tracked separately and carries its own commitment.
  • The Medium import and social posts, which the operator publishes.
  • Parts 3–8, which get their own tickets.

Related

#20278 (series map), #20226 / #20222 (part 1), #12674, #14752, #15660, #16618, #20514, #20522

Decision Record impact: none.

Live latest-open + closed sweep: latest 20 open, plus closed search compaction recovery blog, at 2026-11-07T16:18Z. No equivalent found; Out of Scope read on #20278. A2A: no lane claim on a part 2 in the last 30 messages. MC sweep (part 2 … context compaction): no prior claim. Own open assignments: none overlapping.

Origin Session ID: 8c03ef6a-5b8f-458a-8ade-cc561d7dbcef

Retrieval Hint: "memory blog series part 2 context compaction recovery runbook lineage"

tobiu referenced in commit b74f96f - "docs(blog): context compaction recovery for AI coding agents, part 2 of the memory series (#20562) (#20563) on Nov 7, 2026, 7:09 PM
tobiu closed this issue on Nov 7, 2026, 7:09 PM