Skip to content

fix(scribe): add HARD GATE archival with two-tier thresholds to Scribe workflow#637

Merged
bradygaster merged 1 commit intobradygaster:devfrom
diberry:squad/33-scribe-hard-gate
Mar 27, 2026
Merged

fix(scribe): add HARD GATE archival with two-tier thresholds to Scribe workflow#637
bradygaster merged 1 commit intobradygaster:devfrom
diberry:squad/33-scribe-hard-gate

Conversation

@diberry
Copy link
Copy Markdown
Collaborator

@diberry diberry commented Mar 26, 2026

Reorder Scribe spawn template: archive BEFORE merge. Two-tier thresholds (20KB/30-day, 50KB/7-day). Updated all 7 Scribe charter files. 6 tests.

Team review: Flight ✅, FIDO ✅, Procedures ✅

Closes diberry#33

…e workflow

Reorder Scribe spawn template: PRE-CHECK → ARCHIVE [HARD GATE] → INBOX merge.
Archive runs BEFORE merge to prevent decisions.md from growing unbounded.

Two-tier archival thresholds:
- Tier 1 (30-day): If >20KB, archive entries older than 30 days
- Tier 2 (7-day): If still >50KB after Tier 1, archive entries older than 7 days
- HEALTH REPORT emitted to session log after archival

Updated all 7 Scribe charter files with both tiers + HEALTH REPORT destination.
Added 6 tests validating Scribe spawn template structure.

Closes #33

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry
Copy link
Copy Markdown
Collaborator Author

diberry commented Mar 26, 2026

@bradygaster Ready for your review — team-approved with 3-reviewer gate (Flight, FIDO, Procedures).

@bradygaster bradygaster merged commit 3cc22b4 into bradygaster:dev Mar 27, 2026
3 checks passed
larsontim12 pushed a commit to larsontim12/squad that referenced this pull request Mar 27, 2026
…gaster#637)

* docs(ai-team): Nap feature complete — merged decisions, logged session

Session: 2026-03-01T05-57-23-nap-feature
Requested by: Scribe

Changes:
- Orchestration logs written (Fenster, Hockney)
- Session log written (nap-feature completion)
- 13 decisions merged from inbox into decisions.md
- Decision inbox cleared (all 13 files deleted)
- Cross-agent updates propagated to Fenster, Hockney, Kovash, Cheritto
- All .squad/ changes staged and committed

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: gate REPL dispatch on non-empty roster, add /init command

When team.md exists but has no members in the ## Members table,
the REPL now shows actionable guidance instead of silently routing
to a coordinator with no agents.

Changes:
- Add hasRosterEntries() to coordinator.ts for roster detection
- Gate handleDispatch in index.ts on populated roster
- Gate buildCoordinatorPrompt to refuse work with empty roster
- Add /init slash command with setup instructions
- Add /init to /help output (narrow and wide)
- Update post-init message to reference Copilot session (not squad REPL)
- Update human-journeys test to match new post-init copy

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* docs: update fenster history and add empty-roster gate decision

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

fix(scribe): Reorder Scribe tasks — archival first with HARD GATE enforcement

3 participants