Skip to content

v5.4.0 — audit-driven overhaul: deploy sync, model tier v2, native orchestration, hygiene - #80

Merged
egerev merged 2 commits into
mainfrom
feat/audit-fixes-v5.4
Jun 11, 2026
Merged

v5.4.0 — audit-driven overhaul: deploy sync, model tier v2, native orchestration, hygiene#80
egerev merged 2 commits into
mainfrom
feat/audit-fixes-v5.4

Conversation

@egerev

@egerev egerev commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

Implements all fixes from the full-repo audit (29-agent workflow: 7 subsystem auditors, 4 gap analysts, adversarial verification — 13 confirmed high findings).

A. Critical fixes

  • Deploy sync: checksum-based (cmp -s) redeploy in SKILL.md startup replaces copy-if-missing — enforcement-rule and agent-definition updates now actually reach ~/.claude/rules/, ~/.claude/agents/, ~/.codex/; hooks.json installed only if missing (local edits never clobbered); codex/AGENTS.md now deployed at all.
  • Phase 0: state init merges instead of clobbering context.run_id (telemetry no longer silently dies); greenfield writes mode: "greenfield" (crash recovery no longer re-enables Branch A over fresh docs); codex audit prompt via absolute skill path + TIMEOUT_CMD guard.
  • Phase 2: parallel waves are N implementers + orchestrator-driven review/PAR/ship per sprint (subagents cannot dispatch subagents — the old "full per-sprint flow inside one implementer" pattern shipped PRs without the two-reviewer gate).
  • Phase 3: sprint-queue.json fossil dependency removed; baseline test via completion-data.json: baseline_test_cmd with charter fallback.
  • uuid lowercase (macOS uuidgen broke the event-schema run_id contract).
  • Testcontainers canon: TESTCONTAINERS_RYUK_DISABLED gated on CI; label-based cleanup (org.testcontainers=true) — the old name-regex matched any default-named docker container, incl. dev databases.

B. Model policy

Deep reviewers + deep-analyst → fable; tier tables reconciled across enforcement / agent frontmatter / llms.txt (they disagreed in 3 ways); Codex deep tier xhigh; claude-opus-4-7claude-fable-5; haiku opt-in for mechanical Phase 0 checks.

C. Native orchestration

Fenced-JSON reviewer verdicts → .par-evidence.json assembled mechanically; re-review via SendMessage to the flagging reviewer; Monitor-based CI wait (Claude runtime); fallback chain codex → /code-review skill → split-focus; heartbeat cadence split (boundaries on Claude, every-turn on Codex); Agent(isolation: worktree) documented as opt-in.

D. Hygiene + defense

Repo CI (.github/workflows/ci.yml: shellcheck, DAG verify, JSON validation, forbidden-token gate); anti-injection guardrails in all 12 agent definitions; pr.fail event type (21 total); fossils deleted/superseded; CLAUDE.md / llms.txt / CHANGELOG refreshed to v5.4.0.

Test plan

  • tools/verify-phase2-dag.sh — 33/33 PASS
  • bash -n on all shell scripts; jq empty on all JSON
  • Forbidden-token sweep clean (no claude-opus-4-7, bare RYUK_DISABLED, copy-if-missing guards)
  • Dual review (technical + coherence lenses) → 12 fixes → scoped re-review: all 11 findings RESOLVED, llms.txt line-count sweep 31/31 OK
  • CI green on this PR (first dogfooding run of the new workflow)

🤖 Generated with Claude Code

egerev and others added 2 commits June 11, 2026 01:06
…ive orchestration, hygiene

Full-repo audit (29-agent workflow, 13 confirmed high findings) fixes:

Critical fixes (A):
- SKILL.md deploy: checksum sync (cmp -s) replaces copy-if-missing — rule/agent
  updates now reach ~/.claude and ~/.codex; hooks.json install-if-missing only,
  never clobbers local edits; codex/AGENTS.md now deployed at all
- Phase 0: state init/handlers merge context instead of clobbering run_id
  (telemetry no longer silently dies); greenfield writes mode "greenfield";
  codex audit prompt resolved via absolute skill path + TIMEOUT_CMD guard
- Phase 2: parallel waves = N implementers + orchestrator-driven review/PAR/ship
  per sprint (subagents cannot dispatch subagents); STAGE_INDEXES order fixed
- Phase 3: sprint-queue.json fossil removed; baseline via completion-data.json
  baseline_test_cmd with charter fallback
- uuidgen lowercased everywhere (macOS uppercase broke event-schema contract)
- Testcontainers canon: TESTCONTAINERS_RYUK_DISABLED gated on CI; cleanup by
  org.testcontainers=true label (name-regex matched any default-named container);
  helper script is the only docker command in orchestrator budget

Model policy (B):
- deep reviewers + deep-analyst -> fable; tier tables reconciled across
  enforcement/frontmatter/llms.txt; Codex deep tier xhigh; claude-opus-4-7 ->
  claude-fable-5 (28 occurrences); haiku opt-in for mechanical Phase 0 checks

Native orchestration (C):
- Reviewers emit fenced-JSON verdicts; .par-evidence.json assembled mechanically
- Re-review via SendMessage to the flagging reviewer (context intact)
- Monitor-based CI wait on Claude runtime; fallback chain codex ->
  /code-review skill -> split-focus; /code-review ultra suggest-only
- Heartbeat cadence: boundaries/transitions/post-compaction on Claude,
  every-turn on Codex; Agent(isolation: worktree) documented as opt-in

Hygiene + defense (D):
- .github/workflows/ci.yml: shellcheck, DAG verify, JSON validation,
  forbidden-token gate; anti-injection guardrails in all 12 agent definitions
- pr.fail event type (schema now 21 types); sprint-queue.json deleted;
  project-health-report.md marked superseded; docs refreshed to v5.4.0

Verification: verify-phase2-dag.sh 33/33 PASS; bash -n all scripts; jq all JSON;
dual review (technical + coherence) -> 12 fixes -> scoped re-review APPROVE.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…fore autonomous run

User picks the deep-tier model profile in Phase 1 (recommendation-led, frontier
default), can change it at plan approval; persisted to .superflow-state.json
context.model_profile + Autonomy Charter; dispatch rules and Codex secondary
pins are profile-aware.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@egerev
egerev merged commit 12ba3a9 into main Jun 11, 2026
1 check passed
@egerev
egerev deleted the feat/audit-fixes-v5.4 branch June 11, 2026 03:46
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