check:posted-text calls api.github.com on the forge: the GitHub stop never applies (daily posted-text.yml, resolver built with no env) #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Purpose (defect): on the forge, check:posted-text sends no request to api.github.com. Under the GitHub stop it exits 2 and names the stop, as check:private does since forge PR 14 (#9). It never asks GitHub and never passes.
DECIDED 2026-11-22 "our crew can no longer depend on github!" (Raf). The Supervisor ruled that nothing in the private checks calls api.github.com on the forge.
What happens now (forge main
7ab86751)src/check_posted_text_carries_nothing_private/main.ts:75runsprivateHitsIn(await sourcesOf(callGitHub(token)), rules, resolveOnGitHub(token)). Two GitHub paths ignoreMARTHA_GITHUB_STOPPED:callGitHub(main.ts:32-33) fetches every posted-text surface fromhttps://api.github.com, and nothing checks the stop.resolveOnGitHub(token)is called with no env, so its stop switch (scan_rules_and_visibility.ts,GITHUB_STOPPED) is never read, and each lookup fetchesapi.github.com/repos/....Instances
.github/workflows/posted-text.yml:44runsnpm run --silent check:posted-textdaily (:19-20, cron40 5 * * *) withGITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}(:37). On the forge that is the forge's token, sent to api.github.com, and nothing sets the stop..github/workflows/ci.ymljobposted-text-bites(:403-413) runscheck:posted-text -- --self-teston every PR. It sends no request today, because the self-test resolves through an in-memory stand-in (plant_every_surface.ts:65) and plants its surfaces in memory. It's listed because it is the per-PR site: the fix must keep it network-free, and the check below covers it too.Done when
MARTHA_GITHUB_STOPPED=1, check:posted-text makes no request at all, neither the surface reads nor the lookups. It exits 2 with a line naming the stop, never 0.posted-text.ymlsetsMARTHA_GITHUB_STOPPEDoff github.com and empties the token, asci.yml:541/547do for check:private.fetchstand-in runs check:posted-text (the real run and--self-test) under the stop. It fails by name if any request goes out, and it fails if the run exits 0.Refs #9, #16. Found while answering the Dispatcher on #9 (Jupiter).
HELD 2026-11-22 (Supervisor via Mars): if a forge workflow runs check:posted-text this is a fix now, and if none does it waits behind the switch-path work. None does, so this waits. Evidence, checked on the tree:
if: github.server_url == 'https://github.com', added by3943d9b3(the port, part 1, macula-io/martha#601). It is in forge main7ab86751and at PR 14's head559256b2, so on the forge the job skips and asks GitHub nothing.3479a491— an ancestor of7ab86751with no such guard. That is the pre-port state, not today's tree. Nothing about it is lost: the same run is what made the port worth doing.The defect itself is untouched and still worth fixing when the package is released:
callGitHub(main.ts:32-33) fetches api.github.com with no stop check, and main.ts:75 callsresolveOnGitHub(token)with no env, so the switch the private scan already owns is never read. The Done-when lines above stay valid with one correction: Done-when #2's workflow edit is dead code while theif:guard stands, so the shape to agree on release is either that env added as defence or the stop replacing the guard, and the code half and the counting-fetch test are the same either way.Design notes are kept with the package (Vesta's session notes, vesta-36-posted-text-notes.md) for whoever builds it.
Done-when amended (Supervisor ruling via Mars, 2026-11-23)
Ruled yes by the Supervisor, under DECIDED 2026-11-22 "WTF?? our crew can no longer depend on github!". These were crew-written lines, so Raf is not asked. The reviewer judges against these lines:
--self-test: underMARTHA_GITHUB_STOPPED=1,--self-testkeeps exiting 0. Since B19 (PR 59) it plants every surface and resolves in memory, so it sends nothing, and a countingfetchproves zero requests. The real run with--ask-githubstill refuses under the stop: it exits 2, names the stop, and sends nothing (neither the surface reads nor the lookups). The same holds for a clone whose origin is not on github.com, as in #39.posted-text.yml: stays unchanged. Its job carriesif: github.server_url == 'https://github.com'(Vesta, comment 242), so it never runs on the forge. An env line there would never run.fetchruns check:posted-text, the real run and--self-test, under the stop and from a forge origin. It fails by name if any request goes out, with a mutant on each refusal.What is still open on main
a1dab83e: with--ask-github,callGitHubreads neither the stop nor the origin, andmain.tsbuildsresolveOnGitHub(token)with no env and no origin gate. Building onvenus/36-posted-text-gate.Task log read (martha#64 ruling), 2026-11-23: task 4591, ci.yml run 2279 on PR 80's tip
109d6ac44edd2b9427adbe49ade0eaa3665658cc(pull_request), job "the clean-install proof removes its container", status failure.Mars asked (2026-11-23) for its cause: a runner fault (then an empty commit re-runs it) or something in the change (then the reviewer, Terra, judges it from the log). The job is green on main
a1dab83e(task 4496) and on every tip since, and this diff touches no installer file. Read-only, this one task id, for the failing step and the failing case's name and message.Task 4591 read (named in comment 1162), read-only over the admin ssh. Runner 5 (msi00-instance).
Steps (action_task_step): 0 checkout ok · 1 a_runner_user_with_sudo ok · 2
prove_a_clean_install_in_a_throwaway_container.sh --self-testfailure, 1477 s · 3 keep_a_throwaway_repository --self-test skipped.The failing lines:
Cause: a load-timed case on the slower runner, not this change. The case
a-later-member-that-never-starts(prove_a_clean_install_in_a_throwaway_container.sh:1909) waits for the lineFAIL member reviewer: reviewer never said 'reviewer started, pid'and did not see it; the builder's screen in the same run was empty, as in the #3 read (comment 703). The same step on the other tips this hour: 4496 (a1dab83e, main) 971 s ok, 4527 1029 s ok, 4557 1088 s ok, 4621 980 s ok. These ran on runners 4 and 8; this one ran on runner 5 at 1477 s. PR 80 changes three files (posted-text main.ts and its test, scan_rules_and_visibility.ts), and the clean-install script reads none of them.Under rerun-runner-fault-empty-commit, an empty commit on the branch re-runs it; the new job list goes to Mars.
Purpose met: PR 80 (tip
62a8c108, r=1 Terra PASS) landed --no-ff on main as260871e0(2026-11-23 09:43Z). WithMARTHA_GITHUB_STOPPED=1or a forge origin, check:posted-text --ask-github exits 2 naming the stop and sends no request;--self-testsends none and exits 0; the counting-fetch test covers both, with a mutant on each refusal. posted-text.yml stays GitHub-only (amended line 2). Refs #9, #16.