Agent stack audit remediation batch 2 (U8, U9, U11) #689

Merged
weichen merged 11 commits from feature/agent-stack-audit-remediation-b2 into main 2026-10-22 05:31:19 +00:00
Owner

Land the reliability half of the agent stack audit: durable squad state, queue concurrency honesty and end-to-end tool-event fidelity.

Why: the approved remediation plan's batch 2 fixes F11 (mailbox/handoffs/board persistence, lossy content-keyed decode, swallowed checkpoint/terminal-save errors), F12 (queue claim enforced only the per-agent cap) and F14 (tool events lost call identity and real status from native through squad to the backend host), via units U8, U9 and U11 (split U11a/U11b/U11c across repos). Also restores the batch-1 pins that the parallel #682 merge accidentally reverted, and carries one reviewed repair per defect found by verification (probe frame ordering; a -race exposure in the direct tool path).

Evidence: per-unit agent-per-unit receipts in the task card with SELF verification (all exit=0); full combination make test green on the final pinned combination (verify-combo.json). Independent review lands in the task card before merge.

Impact: three component pins advanced (native cff6935, squad 9edb6ba, backend 9b40595); no deploy, no migration, no release. Functional follow-ups A1-A4 and A2A remain out of scope.

Refs: docs/superpowers/plans/2026-10-21-agent-stack-audit-remediation-plan.md

Land the reliability half of the agent stack audit: durable squad state, queue concurrency honesty and end-to-end tool-event fidelity. Why: the approved remediation plan's batch 2 fixes F11 (mailbox/handoffs/board persistence, lossy content-keyed decode, swallowed checkpoint/terminal-save errors), F12 (queue claim enforced only the per-agent cap) and F14 (tool events lost call identity and real status from native through squad to the backend host), via units U8, U9 and U11 (split U11a/U11b/U11c across repos). Also restores the batch-1 pins that the parallel #682 merge accidentally reverted, and carries one reviewed repair per defect found by verification (probe frame ordering; a -race exposure in the direct tool path). Evidence: per-unit agent-per-unit receipts in the task card with SELF verification (all exit=0); full combination `make test` green on the final pinned combination (verify-combo.json). Independent review lands in the task card before merge. Impact: three component pins advanced (native cff6935, squad 9edb6ba, backend 9b40595); no deploy, no migration, no release. Functional follow-ups A1-A4 and A2A remain out of scope. Refs: docs/superpowers/plans/2026-10-21-agent-stack-audit-remediation-plan.md
weichen added 7 commits 2026-10-22 04:33:04 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-agent-stack-audit-remediation-b2.md; R0=f23f5bb01a8b96ab90686d3a1b07791d7f473de2.

Impact: task metadata only; the feature workspace starts at f23f5bb01a.

Refs: .task/feature-agent-stack-audit-remediation-b2.md
Why: PR #682 (f23f5bb0) merged a stale branch whose tree carried
pre-batch component pins, silently reverting the batch-1 composition
on main; batch 2 (U8/U9/U11) is defined on top of batch 1.
Evidence: restoration transport success (pinrestore-run.json); batch-1
tips pushed on all five component origins.
Impact: five component gitlinks restored to the audited batch-1 tips.
Refs: feature/agent-stack-audit-remediation-b2
Why: carry authorization, the discovered composition regression
(#682 reset batch-1 pins) and its restoration, plus the wave plan.
Evidence: restoration transport success (pinrestore-run.json).
Impact: task metadata only.
Refs: feature/agent-stack-audit-remediation-b2
Why: per-unit audit trail for U8/U9/U11a/U11b/U11c including the
fail-stop redispatches and the frame-order repair.
Evidence: per-unit SELF receipts under /tmp/agent-stack-b2.
Impact: task metadata only.
Refs: feature/agent-stack-audit-remediation-b2
Why: land U8, U9 and U11 across agent-native (cff6935), agent-squad
(9edb6ba) and modules/backend (race-repair tip) per the approved plan.
Evidence: per-unit SELF receipts under /tmp/agent-stack-b2 (all
exit=0); full make test re-run follows on this branch.
Impact: three component gitlinks.
Refs: docs/superpowers/plans/2026-10-21-agent-stack-audit-remediation-plan.md
Why: the backend branch tip 9b40595 additionally pins the nested
agent-squad (and its nested native) so the composed chain carries the
batch-2 event fields end to end.
Evidence: integration transport success (gitlinkb-run.json); full
make test re-run follows on this branch.
Impact: one component gitlink.
Refs: feature/agent-stack-audit-remediation-b2
Record batch-2 completion and the green combination run
ci / svc-realcombo (pull_request) Successful in 3m18s
ci / test (pull_request) Successful in 8m56s
ci / test-pg (pull_request) Successful in 11m59s
ea099a5fbf
Why: all batch-2 units implemented, repaired and verified; full make
test green on the final pinned combination.
Evidence: verify-combo.json exit=0; component branches pushed
(native cff6935, squad 9edb6ba, backend 9b40595).
Impact: task metadata only.
Refs: feature/agent-stack-audit-remediation-b2
weichen added 2 commits 2026-10-22 04:51:05 +00:00
Record the batch-2 review approval in the task card
ci / svc-realcombo (pull_request) Successful in 3m8s
ci / test (pull_request) Successful in 9m16s
ci / test-pg (pull_request) Successful in 11m46s
6b191579df
Why: independent review approved batch 2 (0 blockers, 0 majors, 5
minor follow-up notes); report committed; receipt SHAs annotated to
the final lineage per review minor 4.
Evidence: review receipt /tmp/agent-stack-b2/review-run.json
(pi-glm, success).
Impact: task metadata + review report.
Refs: PR #689
weichen added 1 commit 2026-10-22 05:03:19 +00:00
Fold-close the task card before merge
ci / svc-realcombo (pull_request) Successful in 2m40s
ci / test (pull_request) Successful in 9m4s
ci / test-pg (pull_request) Successful in 11m59s
c325d85fb6
Why: close the task card inside its own PR so landing it needs no post-merge backfill or separate close PR.
Evidence: .task/feature-agent-stack-audit-remediation-b2.md -> .task/archive/feature-agent-stack-audit-remediation-b2.md; status 已完成(合入前闭合); PR #689 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/689.
Impact: task metadata only; the card is archived within PR #689 and lands with its merge commit.
Refs: task.sh close --self
weichen added 1 commit 2026-10-22 05:16:07 +00:00
Merge authoritative main into the task branch
ci / svc-realcombo (pull_request) Successful in 3m21s
ci / test (pull_request) Successful in 9m13s
ci / test-pg (pull_request) Successful in 14m31s
f2969664ef
Why: include the current integration baseline before merge.

Evidence: fetched origin/main=1de7c28c.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
weichen merged commit b7636742fc into main 2026-10-22 05:31:19 +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-Dev#689