Propose the N2 implementation plan: context, protocol, and tools #42

Merged
weichen merged 1 commits from feature/agent-stack-n2-plan into main 2026-10-07 12:38:28 +00:00
Owner

Why: N1/Q1/I1/I2 are all closed; per the completion doc dependency order N2 is next and needs a plan grounded in current code.

What: six-area current-state survey (context/compaction, Anthropic protocol, deferred tools/code orchestration, MCP, skills validation, subagents) with file:line citations at the pinned baselines, then six work packages:

  • WP1 context pairing closure (ctxasm trimOldest tool-pair alignment — the real remaining gap for acceptance ②), tool-result spill-to-disk, prefix-stability contract tests
  • WP2 native Anthropic client + recorded HTTP fixtures (acceptance ①; closes audit N4)
  • WP3 MCP 2026-07-28 alignment (version negotiation, resultType, input_required retry-original-call, approval wiring, tasks client surface)
  • WP4 skills open-spec validation + dogfood
  • WP5 subagent Background consumption, per-run transcripts, resume + persisted notices
  • WP6 assembly + A/B acceptance + cascade closure

Verified while drafting: audit N2/N3/N18/N19/N22 fixed (race-clean -race run, serializeHostCallbacks, MCP regressions); audit N4 still open; acceptance ③ already satisfied by TestStdioSlowCancelThenEcho.

Impact: documentation only; implementation starts after merge.

Refs: 2026-10-02-agent-stack-completion.md N2 section, 2026-10-02-agent-stack-audit.md

Why: N1/Q1/I1/I2 are all closed; per the completion doc dependency order N2 is next and needs a plan grounded in current code. What: six-area current-state survey (context/compaction, Anthropic protocol, deferred tools/code orchestration, MCP, skills validation, subagents) with file:line citations at the pinned baselines, then six work packages: - WP1 context pairing closure (ctxasm trimOldest tool-pair alignment — the real remaining gap for acceptance ②), tool-result spill-to-disk, prefix-stability contract tests - WP2 native Anthropic client + recorded HTTP fixtures (acceptance ①; closes audit N4) - WP3 MCP 2026-07-28 alignment (version negotiation, resultType, input_required retry-original-call, approval wiring, tasks client surface) - WP4 skills open-spec validation + dogfood - WP5 subagent Background consumption, per-run transcripts, resume + persisted notices - WP6 assembly + A/B acceptance + cascade closure Verified while drafting: audit N2/N3/N18/N19/N22 fixed (race-clean -race run, serializeHostCallbacks, MCP regressions); audit N4 still open; acceptance ③ already satisfied by TestStdioSlowCancelThenEcho. Impact: documentation only; implementation starts after merge. Refs: 2026-10-02-agent-stack-completion.md N2 section, 2026-10-02-agent-stack-audit.md
weichen added 1 commit 2026-10-07 12:27:45 +00:00
Why: N1/Q1/I1/I2 are closed; per the completion doc's dependency order
N2 is next and needs a plan grounded in current code (the audit's N4 is
still open; the product-side ctxasm trim is the real gap for acceptance
clause 2; MCP 2026-07-28 features are absent).
Evidence: six-area survey with file:line citations at the pinned baselines
(agent-native ead690b, backend 68addfd); audit items N2/N3/N18/N19/N22
verified fixed against current code, N4 verified still open.
Impact: documentation only; work starts after this plan merges.
Refs: 2026-10-02-agent-stack-completion.md N2 section
weichen merged commit 5542319a04 into main 2026-10-07 12:38:28 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Documents#42