Repository navigation
#1826: Infra CC11: WizLoops comment cut and its CI check - #32
Conversation
…er; meaning kept as names and messages
…s are cut from 236 to 0
|
First successful push: 898a259 at 2026-11-20T16:06:20Z |
|
VERDICT: APPROVE at f9aeea3 Full review by Codex, Sol 6.2, Medium. CI green on this commit: checks. Intent: Cut WizLoops' disallowed comments while preserving their meaning and existing behaviour, then run the shared comment checker on each pull request against main.
Checked: Standards (WizLoops Next: none open. It merges by the project's merge rules. |
|
launch-fleet: look: merge waits for CC14 #1953's re-sync of the carried checker and contract (APPROVE 7044744186 at f9aeea3 stands; ruling asked) |
|
Orchestrator ruling: the hold is right. This pull request carries the checker with the shell-quoting bug its own ticket found, so it waits for CC14 (OpenWiz #1953). When CC14 merges, the builder brings the new contract and checker in byte for byte in this same pull request, and the same reviewer re-checks only that change at the new head before it merges. The APPROVE at f9aeea3 stands for everything else. |
… to OpenWiz fffe9a41 (CC14); comment lines 241 to 0
|
Re-sync to CC14 (openwizdev/OpenWiz#1953, OpenWiz main
|
|
VERDICT: APPROVE at 8273ef2 Re-check of none and the code changed since f9aeea3, by Codex, Sol 6.2, Medium. CI green on this commit: checks. Intent: Re-sync WizLoops' carried comments contract and checker to CC14 without changing any other files.
Checked: only the diff from Next: none open. It merges by the project's merge rules. |
Closes openwizdev/OpenWiz#1826
Summary
WizLoops now carries the comments contract and checker, byte-identical to OpenWiz main at
fffe9a41(CC1, openwizdev/OpenWiz#1816, with CC14 #1953's change). CI runs the checker's diff mode on every pull request, and WizLoops' comments are cut to zero.contracts/comments.v1.mdandtools/comment-check/check.py: copies, byte-identical (same blob ids as OpenWiz502b1f32)..github/workflows/checks.yml: one new step,comment-check, in the existingchecksjob. It runs only onpull_request, right after checkout:git fetch --no-tags --depth=2 origin "$GITHUB_SHA", thensh ci/comment-check.sh HEAD^1(the merge ref's first parent is the base). No new trigger, permission, secret or job, and the checkout step is unchanged.ci/comment-check.sh: the one command CI runs,check.py diff --base <base> --exclude 'format/fixtures/'.ci/test-comment-check.shis its proof, andci/check.shruns it.Counts (one run,
python3 -I tools/comment-check/check.py count --before 72efc37 --at 8273ef2 --exclude 'format/fixtures/', with the checker re-synced tofffe9a41):72efc37(main this branched from)8273ef2The same run with no
--exclude(the whole repository): BEFORE 255, AFTER 14. The 14 are the loop format's fixtures (ruling 1). CC1's checker at502b1f32counted 236 and 250 BEFORE: CC14's shell reader follows quoted command substitutions, so it finds 5 comment lines the older one skipped.Comments that carried meaning, and what replaced them:
catalog/fleet-check/check.sh: stop the helper before the loop's 60-second limitlimitis nowstop_before_the_loops_60s_limitcatalog/morning-digest/check.sh: one search prints up to 100 lines, asks for 101searchis nowsearch_up_to_100ci/check.sh: thread and session ids never belong in this public repository# catches: <bug>in the five catalog tests andci/test-validate.shokandFAILline (for examplea rate limit is a quiet wake, not a wake every ten minutes for nothing). Where the name already said it (the injection payload loops,a two-line value is refused before the check), the comment just wentwrite_stand_in_helper,expected_gh_args,half_past_minutes_ago,open_prs_only_the_oldest_stalled,agent_posted_the_line.github/workflows/checks.yml:OPENWIZ_REVis a full commit, never a branchdocs/agents/fleet.md(CI checks); the provenance is in git historyci/validate.pydocstrings,docs/map/render.html.mdprompts,catalog/README.md,docs/map/README.md,docs/agents/fleet.mdand each test's case names already say itEvidence
80fe350):sh ci/test-comment-check.shfails all three cases, because nothing runs a comment check on a pull request (ci/evidence/comment-check-red.txt).ci/evidence/comment-check-green.txt, the fullci/check.shand the five catalog tests at this head).catalog/stall-sweep/check.shon top of this branch's wiring, and thechecksjob fails at thecomment-checkstep withcatalog/stall-sweep/check.sh:2: comment: …(ci/evidence/comment-check-ci-red.txt).sh ci/check.sh(validate the catalog and 65 fixtures, test-validate, test-comment-check) and all fivecatalog/*/test.shpass locally at this head, withopenwizbuilt from the pinnedOPENWIZ_REV.Tests:
ci/test-comment-check.shbuilds a temporary repository with a GitHub-style merge commit and runsci/comment-check.sh HEAD^1as CI does.catalog/x/check.sh:2: comment:).# comment-ok: <reason>) still fails CI.format/fixtures/exclusion).ci/test-validate.sh: no new test, no test deleted, no assertion changed. Only case names and helper names changed. Each still runs and passes.Merge danger
Door: two-way. Blast radius: CI.
Rulings
format/fixtures/is excluded from the check and the count (--exclude 'format/fixtures/', named inci/comment-check.shanddocs/agents/fleet.md). Why: those are the loop format contract's test inputs. The validator reads their check scripts' text, and some fixtures hold their placeholder or$WIZLOOP_PARAM_*reference in a comment on purpose (invalid/param-in-check,invalid/undeclared-param-*,valid/params-env), the way the comments contract excludes its ownfixtures/comments/. Cost if wrong: low: 14 fixture comment lines stay, and a later cut can rewrite them alongsideexpected.json.--docspaths. Python docstrings inci/validate.pywere cut, per CC1's ruling 3. Why: WizLoops has no published documentation build. Cost if wrong: low: two docstrings to restore.# catches:comment became its test case's name rather than staying as a comment. Why: the contract's meaning-first rule, and a name is printed on every run, so the bug it guards stays visible. Cost if wrong: low: names only, no assertion changed.pull_requestand diffs the merge ref against its first parent after a depth-2 fetch, before the Rust install. Why: the ticket asks for every pull request; a push tomainhas no added-lines base; the checkout step stays untouched (only our own step is added); failing first saves the slow install. Cost if wrong: low: a step condition to change.ticket.py scopeendsscope: okat this head. Why: earlier heads were checked against the old "every file in WizLoops" bullet, which the tool couldn't read as a path. Cost if wrong: low: the reviewer names a path to drop.catalog/hourly-status/test.sh'sticket()builds its label nodes intolabel_nodesbeforeprintf, instead of a"$( … "$3" … )"inline. Why: CC1's checker ended a double-quoted string at the first inner", so that line desynced its quote state. CC14's checker reads it correctly, and the variable is clearer on its own, so the rewrite stays. Cost if wrong: low: one line.Facts
room/1826-comment-cut. Head:8273ef2e7ff8bcf9a519b998a0341ab5706b9c16. Tree:495b3d6b3b14c2aea393031408b513fc34fac2a3. Base:mainat72efc37.contracts/comments.v1.md,tools/comment-check/check.py(copies);.github/workflows/checks.yml(one step, plus 3 comment lines cut);ci/comment-check.sh,ci/test-comment-check.sh,ci/evidence/comment-check-{red,ci-red,green}.txt(new);ci/check.sh,ci/test-validate.sh,ci/validate.py,catalog/test-params.sh,catalog/{fleet-check,hourly-status,morning-digest,stall-sweep,workflow-kick}/{check,test}.sh,docs/map/render.html(comments cut, names);docs/agents/fleet.md(the CI checks row names the new step: a supporting doc edit for the owned workflow step).contracts/comments.v1.mdandtools/comment-check/check.pyhave the same blob ids as OpenWiz main atfffe9a41(CC14 #1953 merged). The re-sync at8273ef2changed exactly those two files, and nothing else in this pull request. The schema, fixtures andtest_check.pyaren't carried (the contract makes them optional), so the contract's links to them don't resolve here.80fe350(ci/evidence/comment-check-red.txt). CI red run: https://github.com/openwizdev/WizLoops/actions/runs/44770002671.after.comment_linesfrom the count mode here. Nothing else.__doc__,inspect.getdoc,help()orpydoc.ci/validate.pyhas no argparse and still runs green inci/check.sh.changes/folder in WizLoops; no user-facing behaviour changes).checksrun on this pull request).Built with Cloudroom