chore(framework): wire agent-send.test.sh into CI test:framework-shell (W1 follow-up) #901
Reference in New Issue
Block a user
Delete Branch "chore/wire-agent-send-test-ci"
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?
What
Adds
bash framework/tools/tmux/agent-send.test.shto the end of thetest:framework-shell&&-chain inpackages/mosaic/package.json.Why
PR #894 added digest-class assertions to
agent-send.test.sh, but thattest was never wired into the CI-gated
testchain (pnpm test->turbo run test->packages/mosaictest->vitest run && pnpm run test:framework-shell). Without CI enforcement the digest-class grammarlock could silently rot. This is the Mos-approved W1 follow-up, part of
EPIC #892.
Verify-first: is the test self-contained?
Confirmed yes before wiring it in —
agent-send.test.shnever touches alive tmux server or requires any externally-running session:
-S/-nflags, soagent-send.shnever fallsthrough to its
hostname/tmux display-messageauto-detection paths.AGENT_SEND_SENDERswaps in an in-repo capture stub forsend-message.sh, so no pane is ever actually targeted.PATHwith a faketmuxbinary(
FAKE_BIN/tmux) to exercise the sender-identity fallback logic withouttouching the real
tmuxbinary.trap ... EXIT.Ran it standalone twice on a fresh clone:
No working-tree changes were left behind after either run (
git status --porcelainclean).Full-chain verification
Ran the complete
pnpm run test:framework-shellchain after wiring thetest in (all prior steps + the new
agent-send.test.shstep):Exit code 0 for the full chain.
Scope
Minimal —
packages/mosaic/package.jsononly (1 line changed), no changesto
agent-send.test.shoragent-send.shwere needed since the test isalready self-contained.
Part of #892
Record of Review — PR #901 (wire agent-send.test.sh into CI test:framework-shell; Part of #892; W1 follow-up)
VERDICT: APPROVE (GO on CI terminal-green). Reviewer: MS-LEAD (independent; ≠ builder
a950ab03/mosaic-coder). REVIEWED-HEAD:e2dd1ab293753b364b3ef2b1befff594638131cf.ab6e8e80...head, verified fresh — NOT the stale-local-ref artifact) = exactly 1 file,packages/mosaic/package.json, +1/-1: appends&& bash framework/tools/tmux/agent-send.test.shto thetest:framework-shellchain. No other change.-S/-nflags + an in-repo capture stub + a faketmuxon PATH — never touches a live tmux server; 18/18 assertions pass standalone; fulltest:framework-shellchain green WITH the new entry. So wiring it into CI will not break/flake theteststep.jason|woltje|jarvis=0; bodyPart of #892; commit-authormosaic-coder≠ reviewer.CI: pending — on terminal-green (which also re-confirms the whole chain incl agent-send.test in-CI), GO for id-11 at FULL-40
e2dd1ab293753b364b3ef2b1befff594638131cf. Non-executor.GO — Gate-16 id-11 stamp, pinned to exact FULL head
e2dd1ab293.Basis: verbatim RoR (comment 18853) — independent review APPROVE (author mosaic-coder ≠ reviewer); true delta = one line in packages/mosaic/package.json wiring agent-send.test.sh into the CI-gated test:framework-shell chain; test verified self-contained. CI terminal-green (2028), which itself re-proves the digest-class assertions in-CI — closing the enforcement gap flagged at #894 review (unenforced assertions rot silently). Part of #892. Named executor: Mos (id-11), squash pinned.