Skip to content

feat(spec-6-2): quality gates + lifecycle hooks → v0.11.0 - #18

Merged
rz1989s merged 16 commits into
mainfrom
feat/spec-6-2-quality-gates
Jul 28, 2026
Merged

feat(spec-6-2): quality gates + lifecycle hooks → v0.11.0#18
rz1989s merged 16 commits into
mainfrom
feat/spec-6-2-quality-gates

Conversation

@rz1989s

@rz1989s rz1989s commented Jul 28, 2026

Copy link
Copy Markdown
Member

SPEC-6-2: composable phase-exit quality-gate chain (4 builtin gates: verify/completenessCheck/gate/verification-before-completion) + two lifecycle hooks (challenge-step soft injection, session-liveness hybrid probe) + cross-cwd leak fix + widened CheckpointFn + /fleet Lifecycle view gate-line rendering.

12-task subagent-driven execution (dogfooding armory-fleet on itself). 438/438 tests (was 368). Final whole-branch review: ready, no Critical/Important.

Spec: docs/superpowers/specs/2026-07-28-spec-6-2-quality-gates-design.md
Plan: docs/superpowers/plans/2026-07-28-spec-6-2.md

rz1989s added 16 commits July 28, 2026 14:57
… + double-finishRun dedup

- RunRecord gains cwd (required), backend (required), pid? (claude)
- run:meta event + scanMeta carry pid? + cwd (cross-process durability)
- LiveSessionHandle.isAlive(): pi forwards SDK session state; claude checks
  disposed/proc.killed/exitCode/signalCode
- Dedup: removed optimistic pre-session_init run:meta (was double-writing with
  the post-session_init append); finishRun guarded against double-fire
- Audited all RunRecord construction sites (src + tests) for cwd/backend
…umulative tokenTotal

The widget + Runs tab rendered 'tok' from tokenTotal (cumulative usage across
all turns) next to a ctx% computed from contextTokens (live snapshot). In short
runs the two are close so '27K tok 1%' looked right; on a long 50-turn run
tokenTotal ballooned to 6.7M (cumulative re-sends of the growing context) while
contextTokens stayed ~341K (35% of 976K) — exposing that 'tok' was the wrong
field. Both segments now read contextTokens so the count and % are the same
metric. Discovered dogfooding armory-fleet on its own SPEC-6-2 execution.
@rz1989s
rz1989s merged commit cda5e2b into main Jul 28, 2026
1 check passed
@rz1989s
rz1989s deleted the feat/spec-6-2-quality-gates branch July 28, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant