Skip to content

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

@diberry

Description

@diberry

Problem

Scribe Task #5 (archival) runs last in the task list. Under context pressure, haiku-class models skip late tasks. The archival step has been silently skipped for months, allowing decisions.md to grow to 345KB.

From

Procedures review of #21 and #20. Postmortem contributing factor CF1.

Proposed

Reorder Scribe spawn template in squad.agent.md:

  1. PRE-CHECK — stat decisions.md size + inbox count (measure before acting)
  2. DECISIONS ARCHIVE [HARD GATE] — if >=20480 bytes, archive now. Exact byte threshold, not '~20KB'
  3. DECISION INBOX — merge and deduplicate
  4. ORCHESTRATION LOG
  5. SESSION LOG
  6. CROSS-AGENT updates
  7. HISTORY SUMMARIZATION [HARD GATE] — if any history.md >=12288 bytes
  8. GIT COMMIT
  9. HEALTH REPORT — log before/after sizes

Key Design

  • Archive BEFORE merge (while context is fresh)
  • HARD GATE label = unambiguous, haiku cannot claim discretion
  • Exact byte thresholds, not tilde approximations
  • Also add archival to Scribe CHARTER (not just task list)

Owner

Procedures (Prompt Engineer) + Flight (architecture sign-off)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgo:needs-researchNeeds investigationsquadSquad triage inbox — Lead will assign to a membersquad:fidoAssigned to FIDO (Quality Owner)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions