Skip to content

Mode cards: autodev authored, autoresearch re-pointed, spine parity, deployment script - #522

Merged
aarontrowbridge merged 1 commit into
mainfrom
501-mode-cards
Aug 23, 2026
Merged

Mode cards: autodev authored, autoresearch re-pointed, spine parity, deployment script#522
aarontrowbridge merged 1 commit into
mainfrom
501-mode-cards

Conversation

@aarontrowbridge

@aarontrowbridge aarontrowbridge commented Aug 23, 2026

Copy link
Copy Markdown
Member

Closes #501.

The two mode cards at packages/extension/agents/ with the shared DIRECTOR-SPINE v1 block (byte-identical in both — the parity test enforces it, and the ledger discovery rule is quoted verbatim from the merged director core, containment-checked). The parity suite (12 tests): marker-pair count, byte-identity, 200-byte floor, the nine-keyword content floor with ≥ 8-word sentences, verbatim containment against the director-core fixture (byte-checked against the live canonical mount), boot fields, blocklist. The deployment script (deploy-agents.mjs): manual operator action — copies to staging + global config with sha256 verification and a source-digest receipt; exercised against temp destinations only in this slice; the receipt of record comes from the parent's real deployment run.

Full suite 105 files green; typecheck clean. Part of #497 — the last code slice of the two-modes protocol layer before #502 (dual-harness suite).

Summary by CodeRabbit

  • New Features
    • Added dedicated development and research automation modes with structured planning, experimentation, implementation, and integration workflows.
    • Added shared campaign guidance for reliable dispatching, progress recording, verification, and safe handling of failures.
  • Deployment
    • Added a validated deployment process with dry-run support, configurable destinations, and deployment receipts.
  • Tests
    • Added comprehensive checks for required mode-card content, consistency, safeguards, and prohibited strings.

… spine parity, deploy script (#501)

Both mode cards embed the shared director spine between literal
DIRECTOR-SPINE v1 markers (one pair per card): the loop, the four core
clauses, and the ledger discovery rule quoted verbatim from the
director-core skill. The parity suite (mode_cards.test.ts) enforces
marker-pair count, byte-identity, the 200-byte floor, the nine-keyword
content floor (whole-word, case-insensitive, each in a sentence of >= 8
words), correctness-by-containment against a committed fixture copy of
the skill (byte-checked against the live mount when present), frontmatter
boot fields, and the zero-blocklist grep. deploy-agents.mjs (manual
operator action, never CI) copies both cards to staging + global config,
verifies byte-equality, and emits a source-digest receipt.
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c275b7ab-cad1-4544-92c6-ccfa8bc3e19b

📥 Commits

Reviewing files that changed from the base of the PR and between c9f0d0d and ac19198.

📒 Files selected for processing (5)
  • packages/extension/agents/autodev.md
  • packages/extension/agents/autoresearch.md
  • packages/extension/test/fixtures/director-core/SKILL.md
  • packages/extension/test/mode_cards.test.ts
  • scripts/deploy-agents.mjs

📝 Walkthrough

Walkthrough

Adds the shared director-core skill, new autodev and updated autoresearch cards, parity tests, and a deployment script that verifies card copies and records source digests.

Changes

Director modes

Layer / File(s) Summary
Director-core contract
packages/extension/test/fixtures/director-core/SKILL.md
Defines the shared campaign loop, gate-pack schema, ledger handling, posture rules, casting rules, compaction safety, and anti-gaming clauses.
Mode card implementation
packages/extension/agents/autodev.md, packages/extension/agents/autoresearch.md
Adds the autodev development posture and binds autoresearch to the shared director spine. Both cards define ledger discipline, dispatch rules, verification, promotion limits, and failure states.
Mode card validation
packages/extension/test/mode_cards.test.ts
Validates marker pairs, byte-identical spines, required content, ledger-rule containment, frontmatter, and blocklist exclusions.
Verified card deployment
scripts/deploy-agents.mjs
Copies both cards to configured destinations, verifies byte equality, writes deployment receipts, and controls exit status for dry runs and verification failures.

Estimated code review effort: 3 (Moderate) | ~20 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 501-mode-cards

Comment @coderabbitai help to get the list of available commands.

@aarontrowbridge
aarontrowbridge marked this pull request as ready for review August 23, 2026 12:53
@aarontrowbridge
aarontrowbridge merged commit e308a45 into main Aug 23, 2026
8 checks passed
@aarontrowbridge
aarontrowbridge deleted the 501-mode-cards branch August 23, 2026 12:53
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.

Mode cards: autodev authored, autoresearch re-pointed, spine parity, deployment script

1 participant