Repository navigation
fix(scripts): check-issue-citations re-execs through the proxy instead of prescribing it - #19254
Merged
os-try-charles merged 1 commit intoSep 20, 2026
Merged
Conversation
…d of prescribing it The gate imported `proxyRearmPlan` and used it only to compose a hint string, so a live local run in a proxied container refused with `PREREQUISITE NOT MET` (exit 3) while holding, and printing, the plan that would have completed the read. `rearmThroughProxy` now EXECUTES that plan on the shape `post-stamped.mjs` and `board-snapshot.mjs` have run daily: re-exec this file under `--use-env-proxy`, adopt the child's exit code, degrade loudly when the re-exec cannot happen. The guard is this gate's OWN variable, never a shared or inherited name — a sibling instrument's guard answering "already re-armed" here is silent, and turns a route failure into a false story about the credential. ⛔ Not a relaxation: the child is this same file, so an unreadable board still exits 3 with the same refusal. ⛔ Not taken by `--self-test` (offline, pinned offline) or `--list` (no network). A new `proxy-rearm` self-test battery pins the guard name, all three arms and the dispatch's placement. Co-Authored-By: Claude <noreply@anthropic.com>
os-try-charles
marked this pull request as ready for review
September 20, 2026 06:01
os-try-charles
deleted the
claude/issue-18949-issue-citations-proxy-rearm
branch
September 20, 2026 06:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #18949
What was wrong
scripts/check-issue-citations.mjsimportedproxyRearmPlanand used it only tocompose a hint string. In a container whose only route out is
HTTPS_PROXY— whichnode's
fetchdoes not read — every board read answered HTTP 401, so a live runrefused with
PREREQUISITE NOT MET(exit 3) while holding, and printing, the planthat would have completed the read. Loud and correct, one re-exec short of an answer.
What changed (one file:
scripts/check-issue-citations.mjs)rearmThroughProxy()now EXECUTES that plan, on the shapescripts/pm/post-stamped.mjsandscripts/pm/board-snapshot.mjshave run daily:re-exec this file under
--use-env-proxy, adopt the child's exit code, degradeloudly when the re-exec cannot happen. All three arms are kept and each is an answer:
plan.hintplan.rearmThe guard is this gate's own variable,
OS_ISSUE_CITATIONS_PROXY_REARMED— nevera shared or inherited name. A sibling instrument's guard answering "already re-armed"
here is silent, and turns a route failure into a false story about the credential.
The re-exec is taken by the live modes only:
--self-testis offline (and pinnedoffline) and
--listmakes no request, so neither spawns a child to prove a routenothing is about to use.
Evidence (this container)
Before —
node scripts/check-issue-citations.mjs --census,exit=3:After — same command,
exit=0, the board is actually read:"Cannot read" was NOT converted into "silently passes"
Three genuinely unreadable runs, each still
exit=3withPREREQUISITE NOT MET:container — this box's proxy carries the credential, so
--censuswithGITHUB_TOKEN/GH_TOKENunset still reads the board and exits 0. The three casesabove are constructed so the read genuinely cannot happen.
The third arm, proven by ablation (mutation confirmed on disk — anchor gone,
marker present — then restored,
git diff HEADempty and the blob hash back toe7a3516c5): withprocess.execPathreplaced by a path that does not exist,Tests
A new
proxy-rearmself-test battery (10 cases, floor pinned) covers the guard nameagainst the patrol's, all three arms, the Actions-runner leg (no proxy ⇒ no re-exec,
not one extra line), and structurally: the plan is imported rather than restated, the
dispatch really hands it THIS file's guard, and the re-exec sits in the live-mode arm
only.
--self-teststays offline.All 26 commands from
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack(derived against this branch's own change set) exit 0, plus
pnpm check:issue-citations.npx eslint scripts/check-issue-citations.mjs --no-inline-configexits 0.Declared gaps — ⛔ not fixed here, and not claimed to be
it is not addressed here. A local re-exec changes nothing in CI, and the CI wiring
changes nothing locally.
scripts/pm/check-half-states.mjs,scripts/pm/check-governed-merges.mjs(
proxyRearmPlanitself) andscripts/pm/post-stamped.mjsare untouched — other surfaces.files[]and the root manifest isprivate: true, so nothing released moves. The PR carriesskip-changeset, which.github/workflows/lint.ymlnames as the textbook case for a CI-internal script.Acceptance notes
allocated-but-absentsites against afrontier of [finding] content/docs/ai/knowledge-rag.mdx:37 configures a
ragflowsource with the undeclaredoptionskey — the #18973 defect in a second carrier, and PR #19251 turns it from quiet into a named refusal #19252 (the card's own 2026-09-14 reading was 2,785 against [finding] issue 的 comments 字段可读出 1 而 list 与 timeline 两条通道都读 0 —— 可复现,带四张对照 #18219) — astanding, report-only debt this gate declares by design, not a finding. Owner of a
follow-up: none identified.
OS_<TOOL>_PROXY_REARMEDis now spelled out by hand in sixinstruments (
post-stamped,board-snapshot,check-expected-skips,check-clause2-carriers,check-governed-merges, and this gate); each correctlyowns its name, so there is no defect, only a convention nothing enumerates.
Generated by Claude Code