feat(framework): P3 — extract Constitution (L0) + gut AGENTS dispatcher #575

Merged
jason.woltje merged 2 commits from feat/p3-constitution-extraction into main 2026-06-21 03:20:33 +00:00
Owner

Closes #574 · umbrella #542 · design:

Phase 3 — separates universal law (L0) from the dispatcher, the core of making the framework distributable.

  • (L0, 93 lines, capability-verb): gates + integrity + escalation + block-vs-done + mode + two-axis precedence + hooks-are-the-gate + framework-PR firewall + structured-reasoning + tier-aware self-load.
  • gutted → 80-line load-order dispatcher + guide table (kills the false already
Closes #574 · umbrella #542 · design: **Phase 3** — separates universal law (L0) from the dispatcher, the core of making the framework distributable. - (L0, 93 lines, capability-verb): gates + integrity + escalation + block-vs-done + mode + two-axis precedence + hooks-are-the-gate + framework-PR firewall + structured-reasoning + tier-aware self-load. - gutted → 80-line load-order dispatcher + guide table (kills the false already
jason.woltje added 1 commit 2026-06-21 02:55:36 +00:00
feat(framework): P3 — extract Constitution (L0) + gut AGENTS dispatcher
Some checks failed
ci/woodpecker/push/ci Pipeline was canceled
ci/woodpecker/pr/ci Pipeline was canceled
319e21ddc0
Splits the 155-line thin-core AGENTS.md into:
- defaults/CONSTITUTION.md (L0): gates + integrity + escalation + block-vs-done
  + mode + two-axis precedence + hooks-are-the-gate + framework-PR firewall +
  structured-reasoning capability + tier-aware self-load. Capability-verb authored.
- defaults/AGENTS.md gutted to an ~80-line load-order dispatcher + guide table
  (kills the false "already in context, do not re-read" line).
- constitution/LAYER-MODEL.md: source-only governance spec (layers + precedence).

Non-regression wiring (fresh-install functional; upgrade-safety is P4):
- launch.ts injects CONSTITUTION.md before AGENTS.md (tolerant of un-reseeded installs)
- install.sh + file-adapter.ts seed CONSTITUTION.md (+ test fixture updated)

Runtime adapters: capability-verb the sequential-thinking binding; claude/codex/
opencode restate the REQUIRED hard-stop, pi binds to native thinking (gate=false)
— restores the force the adversarial review flagged as weakened.

Gate hardening (dual-engine review): identity denylist now covers examples/
(closes the Codex open-source gap), self-test-first, *.json in scope, ci.yml
typecheck depends on sanitization (fail-fast), L0 line-count ceiling (<=120).

Adversarial gate-preservation review: every original rule traced to L0, the
dispatcher, or a routed guide — nothing lost.

Refs #542, closes #574

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jason.woltje added 1 commit 2026-06-21 03:02:55 +00:00
style(framework): prettier-format DEFAULT_SEED_FILES (fix #575 CI format gate)
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
d3c5daf12d
DEFAULT_SEED_FILES exceeded print-width (100) after adding CONSTITUTION.md;
prettier@3.8.1 breaks it multiline. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jason.woltje merged commit 5118be74cb into main 2026-06-21 03:20:33 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#575