Propose: compressed Squad coordinator prompt (~49% smaller, behavior-preserving) [DRAFT] - #1529
Draft
tamirdresher wants to merge 1 commit into
Draft
Propose: compressed Squad coordinator prompt (~49% smaller, behavior-preserving) [DRAFT]#1529tamirdresher wants to merge 1 commit into
tamirdresher wants to merge 1 commit into
Conversation
…preserving) [DRAFT] Regenerates .github/agents/squad.agent.md as a compressed source template built on dev HEAD eaf3cca (base file sha 1F69CEB0). 79,966 -> 40,305 bytes (~49.6% smaller); 1080 -> 302 lines. Frontmatter (tools, version 0.0.0-source) is byte-identical to dev. Behavior preservation: every high-risk coordinator path is kept intact -- routing table, state-backend HALT handshake, reviewer strict-lockout, Init Mode Phase-1 ask_user confirmation gate, cross-squad dispatch, STOP/dispatch gate, and the coordinator canary. The two dev-only sections added since the compression base -- Per-Agent Context Tier and the Shared-worktree guard -- are carried forward, compressed in the same dense style as the sibling Per-Agent Reasoning Effort paragraph. DRAFT / DO-NOT-MERGE: proposal pending governance review (Picard/Data) and Tamir's authorization. Adopting this changes no live squad.agent.md on its own; it is the source-template candidate offered for review and side-by-side trial. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 12f3c193-135b-46e4-bf2b-62d629146ccb
Contributor
🛫 PR Readiness Check
PR Scope: 🔧 Infrastructure
|
| Status | Check | Details |
|---|---|---|
| ✅ | Single commit | 1 commit — clean history |
| ❌ | Not in draft | PR is still in draft — mark as ready for review when done |
| ✅ | Branch up to date | Up to date with dev |
| ❌ | Copilot review | No Copilot review yet — it may still be processing |
| ✅ | Changeset present | No source files changed — changeset not required |
| ✅ | Scope clean | No .squad/ or docs/proposals/ files |
| ✅ | No merge conflicts | No merge conflicts |
| ✅ | Copilot threads resolved | No Copilot review threads |
| ✅ | CI passing | All checks passing |
Files Changed (1 file, +175 −959)
| File | +/− |
|---|---|
.github/agents/squad.agent.md |
+175 −959 |
Total: +175 −959
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
Contributor
🟢 Impact Analysis — PR #1529Risk tier: 🟢 LOW 📊 Summary
🎯 Risk Factors
📦 Modules Affectedci-workflows (1 file)
This report is generated automatically for every PR. See #733 for details. |
Owner
|
#1517 has now merged into dev, establishing the new three-state/HEAD-canary baseline. Per the approved triage plan, this draft remains parked until it is rebased onto current dev and an independent reviewer re-verifies the high-risk coordinator behavior anchors against the compressed prompt. No promotion or merge until that governance pass is complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
A behavior-preserving compression of the Squad coordinator source template.
The coordinator prompt is always-on (injected into every Squad session), so its size
is paid on every turn. This PR proposes cutting it ~in half without dropping any
coordinator behavior.
Base & provenance (pinned)
dev@eaf3ccac.github/agents/squad.agent.md— 79,966 B, sha2561F69CEB0…E10036FA…tools: ["*"]+version: 0.0.0-source— byte-identical todevBehavior preservation
Compression is prose-only. Every high-risk coordinator path is kept intact
(grep-verified present in the proposed file):
ask_userconfirmation gateThe two
dev-only sections added since the compression base —Per-Agent Context Tier and the Shared-worktree guard — are carried forward,
compressed in the same dense style as the sibling Per-Agent Reasoning Effort
paragraph (every resolution layer, config key, ack string, and safety semantic
preserved).
How it was verified
installed coordinator (a frozen SHA), which preserved the high-risk paths
byte-for-byte.
match
dev's base (tools, version ×2, the twodev-only blocks). Diff vs. theapproved artifact shows those edits and nothing else.
to
dev.Honest scope of the claim
prompt prefilled ~2.25× faster cold / ~1.6× faster warm; input-token saving
holds in every case. This is the mechanism by which prompt size can affect a session.
That remains blocked/unproven pending a trustworthy host-telemetry path
(see Runtime identity beacon for coordinator canary cases 3 & 4 (host-owned pre-ingestion state machine) #1518). No real-session speed/quality claim is made here.
How to review
(routing, state-backend HALT, reviewer lockout, init confirmation, cross-squad
dispatch). Treat any semantic mismatch as a failed retention claim.
devhas moved, rebase — the delta set vs.devis small and mechanical(frontmatter + the two carried-forward blocks).
Related: #1518 (host telemetry), #1517.
Governance
Pending Picard/Data governance review and maintainer authorization before any
adoption. Filed as draft deliberately.
Provenance: proposed file sha256
E10036FA…; basedev@eaf3ccacfile sha2561F69CEB0….