feat(framework): accept digest message class in agent-send.sh (W1) #894
Reference in New Issue
Block a user
Delete Branch "feat/agent-send-digest-class"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
digestto the-C/--classtriage-class validator inagent-send.shper CONVERGED-DESIGN §2.3 sol C1: "Canon MUST adddigestto the agent-send.sh class validator (it currently rejects it)".What changed
packages/mosaic/framework/tools/tmux/agent-send.sh: addeddigestto the case-statement validator (line ~112) and to the documented consumer preamble-grammar regex (line ~61); updated the-Chelp text and the invalid-class error message to listdigest.packages/mosaic/framework/tools/tmux/agent-send.test.sh: extended with red-first assertions (--class digestspace form,-C digestshort form, and a grammar-regex case forclass=digest).Red-first evidence
origin/main(pre-change), the 3 new digest assertions FAIL:PASS=15 FAIL=3. All 15 pre-existing assertions still pass unchanged.PASS=18 FAIL=0.Verification
bash packages/mosaic/framework/tools/tmux/agent-send.test.sh→PASS=18 FAIL=0.shellcheckon both changed files:agent-send.shclean (0 findings);agent-send.test.shSC2015 info-note count unchanged from baseline (13 → 13, i.e. 0 new findings) — the two new assertions use explicitif/elserather than the file's existing&&/||idiom specifically to avoid adding new SC2015 instances.bash packages/mosaic/framework/tools/quality/scripts/verify-sanitized.sh→ gate passed.grep -niE 'jason|woltje'on both changed files → 0 hits.Scope kept minimal: only
agent-send.shand its test file are touched.Part of #892
Record of Review — PR #894 (W1: agent-send.sh digest class; Part of #892)
VERDICT: APPROVE (GO conditional on CI terminal-green).
Reviewer: independent subagent
a001ccfa(ms-lead-reviewer), fresh clone, re-derived from first principles — ≠ builder (aab3c1a12, commit-authormosaic-coder).REVIEWED-HEAD:
8d955c86a171c9c3d5121f328d512f9a16698af1(confirmed unmoved).Per-criterion (all PASS)
agent-send.sh(+4/-3),agent-send.test.sh(+19/-2).digestadded in all 4 spots (case validator, preamble-grammar regex, help text via usage() sed, invalid-class error); final set{digest,actionable,human,terminal-log,reaction}= CONVERGED-DESIGN §2.3 exactly; nothing else changed.PASS=15 FAIL=3(the 3 digest assertions fail withinvalid --class digest); HEAD →PASS=18 FAIL=0.jason|woltje|jarvis=0;verify-sanitized.shpassed.mosaic-coder≠ reviewer; bodyPart of #892.Non-blocking notes for coordinator
agent-send.test.shis a standalone script — NOT wired into the CI-gatedtest:framework-shellchain, so the 15→18 assertions are not CI-enforced. Truthfully disclosed by the builder. Recommend a follow-up to wire it in (do NOT block W1).Gate
CI at
8d955c86PENDING at review time (freshly queued pipeline #2010). GO for id-11 CONDITIONAL on CI terminal-green. I relay; Mos stamps id-11 + merges once green. Non-executor.jason.woltje referenced this pull request2026-07-25 21:12:02 +00:00
CI flake note (documented-flake-recovery, per Mos 2026-07-25): This PR's
test-step failure is the PRE-EXISTING lease-broker test-harness race (issue #897), NOT a defect in this PR.recovery_b1_adversarial_unittest.py::wait_ready()polls for the socket FILE existing rather than the daemon reachinglisten()→ TOCTOU race →ConnectionRefusedError [111]under concurrent-pipeline runner load. Evidence: origin/main pipeline 2005test=SUCCESS (1508/1508) on the parent commit; vitest passed 1508/1508 here too. Root fix in progress (#897, scalpel scope). Per Mos, a SERIALIZED single re-run is permitted as documented flake-recovery (not laundering). OBe945bf77.Delta Re-Review — PR #894 (W1 agent-send digest) after UPDATE-BRANCH — SUPERSEDES RoR 18754
VERDICT: APPROVE at new head (GO on CI terminal-green). Per Mos ruling (update-branch for deterministic CI over the racy old harness).
REVIEWED-HEAD:
f37d6f33ad8d(was8d955c86). Reviewer: MS-LEAD (independent; ≠ builder mosaic-coder).Delta scope — PASS:
git diff 8d955c86 f37d6f33 -- agent-send.sh agent-send.test.sh= EMPTY. The update-branch merge brought ONLY main-side commits (incl the #898/#900 flake fixes); the PR own code is BYTE-UNCHANGED from the previously-approved head. PR net delta vs main = agent-send.sh (+4/-3) + test (+19/-2), identical to the approved change. Prior APPROVE (RoR 18754) carries forward unchanged.CI: now runs at
f37d6f33on the FIXED harness (recovery_b1 #898 + recovery_runtime #900 both on main) → deterministic. GO for id-11 at FULL-40f37d6f33ad8d...on terminal-green. Non-executor.RoR full-40 head correction (per exact-head full-SHA rule; supersedes the abbreviated head in delta-RoR 18832): REVIEWED-HEAD (full 40) =
f37d6f33ad8d936f9ea2f2a2d4f54ca40b9321c5. Delta re-review verdict UNCHANGED = APPROVE (PR-own code byte-identical to prior-approved 8d955c86; update-branch brought only main-side #898/#900 fixes). GO for id-11 stamp + merge at this FULL-40 head on CI terminal-green. Non-executor.GO — Gate-16 id-11 stamp, pinned to exact FULL head
f37d6f33ad.Basis: verbatim RoRs 18832+18836 (supersede 18754) — delta re-review APPROVE after update-branch (PR code proven byte-identical to the previously-approved head; the update brought only main-side commits incl the #898/#900 harness fixes); CI terminal-green DETERMINISTIC at this head on the fixed harness. Prior substantive APPROVE carries forward per the supersession chain. W1: agent-send digest message class, red-first. Part of #892 (W1). Named executor: Mos (id-11), squash pinned.