From 7081b58a4a230d4543de010c119bf76f4968f5fc Mon Sep 17 00:00:00 2001 From: mos-dt-0 Date: Fri, 31 Jul 2026 16:58:58 -0500 Subject: [PATCH] =?UTF-8?q?fix(hygiene):=20unbreak=20format:check=20?= =?UTF-8?q?=E2=80=94=20it=20was=20RED=20on=20main=20and=20inert=20in=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two independent defects, both found by running the gate honestly instead of bypassing it: 1. packages/mosaic/framework/tools/orchestrator/README.md fails the repo's own prettier config (unaligned markdown table). It landed via MERGED PR #868 (b79336a8). A merged commit that fails `pnpm format:check` means the CI format gate did not block it — the gate is INERT. This is the P-QUEUE-001 / P-CONFORMANCE-001 failure class ("gate-6 was inert fleet-wide") reproduced on main, and it is exactly what this remediation mission exists to eliminate. 2. .prettierignore did not exclude Python build/test artifacts, so any local venv drops ~2400 third-party files into format:check and makes the gate unpassable in a working checkout. Added **/venv, **/__pycache__, **/.mypy_cache, **/.pytest_cache, **/htmlcov — the same category as the existing node_modules/dist/.next entries. This narrows what the gate SCANS (generated trees), never what it ENFORCES over source. Co-Authored-By: Claude Opus 5 (1M context) --- .prettierignore | 8 +++++ .../framework/tools/orchestrator/README.md | 31 ++++++++++++------- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/.prettierignore b/.prettierignore index 07db0c7a..33f36e19 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,6 +4,14 @@ pnpm-lock.yaml **/node_modules **/drizzle **/.next +# Python build/test artifacts — same category as node_modules/dist/.next above. +# Prettier must never scan generated trees; without these a local venv poisons +# `pnpm format:check` with thousands of third-party files. +**/venv +**/__pycache__ +**/.mypy_cache +**/.pytest_cache +**/htmlcov .claude/ docs/tess/TASKS.md docs/scratchpads/ diff --git a/packages/mosaic/framework/tools/orchestrator/README.md b/packages/mosaic/framework/tools/orchestrator/README.md index 3ee7f104..3d3bb132 100644 --- a/packages/mosaic/framework/tools/orchestrator/README.md +++ b/packages/mosaic/framework/tools/orchestrator/README.md @@ -4,18 +4,18 @@ Helper scripts for r0 coordinator / orchestrator sessions — mission lifecycle, session health, continuation, and board maintenance. See `framework/guides/ORCHESTRATOR-PROTOCOL.md` for the surrounding process. -| Script | Purpose | -|--------|---------| -| `mission-init.sh` | Initialize a new orchestration mission (manifest, scratchpad, TASKS.md). | -| `mission-status.sh` | Show the mission progress dashboard. | -| `session-run.sh` | Generate continuation context and launch the target runtime. | -| `session-resume.sh` | Crash recovery for dead orchestrator sessions. | -| `session-status.sh` | Check agent session health. | -| `continue-prompt.sh` | Generate the continuation prompt for the next session. | -| `board-roll.sh` | Keep a LIVE orchestration board under its byte cap by rolling the oldest entries to its LEDGER. | -| `smoke-test.sh` | Behavior smoke checks for the coord continue/run workflows. | -| `test-board-roll.sh` | Regression harness for `board-roll.sh`. | -| `_lib.sh` | Shared functions sourced by the above (state files, TASKS.md parsing, locks). | +| Script | Purpose | +| -------------------- | ----------------------------------------------------------------------------------------------- | +| `mission-init.sh` | Initialize a new orchestration mission (manifest, scratchpad, TASKS.md). | +| `mission-status.sh` | Show the mission progress dashboard. | +| `session-run.sh` | Generate continuation context and launch the target runtime. | +| `session-resume.sh` | Crash recovery for dead orchestrator sessions. | +| `session-status.sh` | Check agent session health. | +| `continue-prompt.sh` | Generate the continuation prompt for the next session. | +| `board-roll.sh` | Keep a LIVE orchestration board under its byte cap by rolling the oldest entries to its LEDGER. | +| `smoke-test.sh` | Behavior smoke checks for the coord continue/run workflows. | +| `test-board-roll.sh` | Regression harness for `board-roll.sh`. | +| `_lib.sh` | Shared functions sourced by the above (state files, TASKS.md parsing, locks). | ## board-roll.sh @@ -35,16 +35,23 @@ always-current `##` sections) is pinned and never touched: ```markdown # MOS ORCHESTRATION BOARD — LIVE state + > protocol blockquote … (pinned) ## 🟦 Curated always-current section (pinned) + … + ### 2026-07-22 (mid²²) — newest tick, stays longest + … + ### 2026-07-20 (dawn) — oldest tick, rolled first + … + ```