All 29 tasks complete. Summary:
PR #5 open: https://github.com/project-ax/ax-next/pull/5 — feat/week-4-6-real-llm-v2 (40 commits off main).
Final state: 154 tests passing across 11 packages, 3 consecutive green pnpm -r test runs after flake hardening.
Per-phase landing:
- Phase 0 (kernel polish):
reasonFromError replaces classify; validateDependencyGraph consolidates cycle + duplicate + missing-dep checks.
- Phase 1 (
@ax/core): IPC framing + wire schemas + SandboxSpawn* types in core (invariant I1 closed day-1).
- Phase 2 (
@ax/sandbox-subprocess): 10-test TDD matrix; env allowlist wins (I2), argv[0] shape check, stdin EPIPE handler (I7).
- Phase 3 (
@ax/tool-dispatcher): tool-name whitelist (I8).
- Phase 4 (
@ax/tool-bash): /bin/bash -c via sandbox, 16 KiB command cap.
- Phase 5 (
@ax/tool-file-io): safePath with segment-aware .. (I3) — TDD caught two bugs in my plan's literal code (backslash-after-split dead check, walk-up catch swallowed symlink rejection); byte cap via Buffer.byteLength (I4, emoji test proves).
- Phase 6 (
@ax/llm-anthropic): @anthropic-ai/sdk@0.91.0 pinned exact, one-retry on 5xx/429, key redaction, no fixture backdoor (I5).
- Phase 7 (CLI):
ax.config.ts loader with strict schema, library-mode main().
- Phase 8: library-mode e2e with stubbed SDK (I9 — no
pnpm build inside vitest); Week 3 binary e2e still green.
- Phase 9: accurate changeset, PR with boundary reviews + security summary, memory entries updated.
Deltas vs my plan caught during execution: implementer subagents found real bugs in my literal code and fixed them (env merge order, safePath backslash/symlink checks, SandboxSpawnInput vs Parsed type split, plus two added flake guards: retryDelayMs injection in llm-anthropic tests and 15s vitest testTimeout for sandbox-subprocess).
Memory: added project_week_4_6_shipped.md and feedback_plan_revision_after_rollback.md (the "fold every prior failure into numbered Iₙ invariants" pattern).
Waiting on PR #5 review. When it lands, Week 7-9 (@ax/sandbox-k8s + production deployment shapes) is next per the handoff.