A1: the HANDOFF's ci= is read on the host the crew declares, behind one adapter seam (stacked on PR 40) #50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pallas/46-forge-ci-seam"
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 this is
A1 of martha#46 (the A1 row of #45): the
ci=of a HANDOFF is read on the host the crew declares, behind one adapterseam — GitHub as it is today, and Forgejo beside it. DECIDED 2026-11-22 "Martha should be able to work with any git
hoster"; DECIDED 2026-11-22 "Yes, file path only (Recommended)": no forge token in any session's environment.
Stacked on PR 40 (
saturnus/39-private-origin-stop, head04df1477). It lands after PR 40, and merges PR 40 intoitself once if that head moves.
The seam
New
src/read_the_ci_of_a_host/:the_kinds.ts— the kinds, one leaf list (GITHUB_CI,FORGEJO_CI,DECLARABLE_KINDS,THE_KINDS).the_ci_of_a_host.ts— the seam:Read,ARun,TheCiOfAHost,TheCiAsked,theCiOfAHostFor(clone → origin →host → declared kind → adapter), the fail-closed words, and the adapter registry.
a_githubs_ci.ts— today's GitHub reads moved behind the seam;GH_MSand the GitHub budget live here.a_forgejos_ci.ts— the PR 26 B path: runs on the tip, one run, jobs from/actions/tasksjoined on head_sha +workflow + run number, pages bounded at 10;
theStateOfis the total status mapping (an unknown word has NOT ended).the_forges_transport.ts— curl over-K <config file>: the token read from a file, never argv or environment;--proto =https, no-L;FORGE_TOKEN_FILEheld inside the declared file's own directory;https://<host>/api/v1derived; curl >= 8.3 asked once; exit codes and statuses mapped to fixed phrases.
the_owners_files_on_this_machine.ts— the guarded file calls, composed from the host's own work directory andscratch directories, handed in by the adapter (a slice reaches no machine of its own).
Changed:
src/a_work_directory_on_this_machine/(privateFileAt,writePrivateFileAt: O_NOFOLLOW + O_NONBLOCK,owner/mode/parent guards, read through the descriptor the checks were made on);
src/declare_crew/the_crews_hosts.ts(the
hostsblock: host, kind, token_file with<member>);declare_crew.ts;docs/the-declaration.md;src/read_a_crew_line/crew_lines.ts(ci=takes<forge>:<id>andrunsOfACiValue);src/send_a_crew_message/ the_runs_a_handoff_names.ts(reads through the seam; a run named for another forge marked by name, on any origin) andsay_to_the_crew_tool.ts;src/a_crews_tools/a_crews_tools.ts(buildsTheCiAskedfrom what the launch hands it).Saturnus's required changes, all in
R1 an empty or absent host fails closed as
no origin host; only a literalgithub.comis built in (THE_BUILT_IN_HOST,one definition, shared with the private scan). R2 one host parser: martha's own
hostOfTheOriginfrom PR 40, never asecond. R3 the token only to the declared host, over https, argv pinned in a test; never a redirect. R4 a total
status mapping: an unknown word has not ended, and a kind with no adapter is refused at declaration read, by name.
Plus Jupiter's guards: lstat, owner = uid, mode 0600 or tighter, parent owned and not group/world-writable,
FORGE_TOKEN_FILEinside the template's directory, curl >= 8.3 in fixed words.Proof
npm test— the whole suite, green (see the run on the branch).npx tsc --noEmit,npm run lint— clean.check:restated-values --range origin/main..HEAD,check:base-tests— clean;check:marthas-names,check:no-import-cycle,check:pictures— clean.forge mismatch), every one killed by a named test; the one that survived first is now pinned by a new case.
Not in this package
The other host reads #45's "Host calls" table groups (PRs, landings, issue state, posted text); a GitLab or other
adapter; a token on any other transport.
CI on the forge (as of tip
54eb329c)advisories,c4-model,standalone, and insideci.yml— installer, structural floor, no import cycle, Martha's names, links, base-tests, pictures,no literal restates a defined value, posted text, host and engine drift, ring on tmux, every check in a job.gate coverageandnothing private— red on every forge run since 14:00Z, PR 40's own tip included, so neither is this branch's.gate coverageis the job that runs the suite; a member cannot read a forge job log (macula-io/macula-sponsors#8), so its cause is unread here.98b49071: 5124 tests, 5088 pass, 36 skipped, 0 fail.4e16d4f4) into hygiea/962-worktree-finish-owner-and-branch 08ebdf2b3e28b41a05merged) into venus/999-brief-notice 8c6805c66d28b41a05into vesta/957-gap-8-dashboard-fidelity: the tab's asks move to the slice file and the owner's commands to their own registration 525d23bc283f33bf21into saturnus/1016-mesh-key: main's martha week test and box line kept beside the roster's 0620ec282ffa4d0c2binto vesta/957-gap-8-dashboard-fidelity: the turn-end row write moves to its own file of the slice, under the per-file cap c17e277472fa4d0c2b) into hygiea/962-worktree-finish-owner-and-branch 21c1cf9d9ef362deda' into hygiea/992-job-timeouts ad0afaed813479a491) into vesta/957-gap-8-dashboard-fidelity: the mod's list takes both the waking module and the task-list module d0e5a697ba3479a491into saturnus/1016-mesh-key 0a535860623479a491) into hygiea/962-worktree-finish-owner-and-branch 881d3094f93fa2b67d' into vesta/972-merge-main 731e7ac97a3fa2b67d' into vesta/957-gap-8-dashboard-fidelity adc7ade012adc7ade0, on batch-2 tip3fa2b67d) into venus/999-refresh-modes: /crew-refresh joins the asks table and the owner's own commands c48547647badc7ade0) into saturnus/1016-crew-mail (macula-io/martha#1016) f44e11dd0987862e11into saturnus/1016-crew-mail under the ROSTER ruling (a) (martha#1016) ec43d8569741d5670a: gate coverage runs on martha-bwrap (macula-io/martha#601)A reusable workflow gives its jobs `timeout-minutes: ${{ inputs.timeout }}`: the runner works the count out when the job starts, so the job names a timeout. The check now counts a value that is one `${{ … }}` expression, and nothing beside it, as set. Text beside an expression is still not a number of minutes. The workflow reader kept only the value's first word, so `${{ inputs.timeout }}` reached the check as `${{`. It now keeps the whole value as written, less a trailing comment. This check is the only reader of that field. Test 14 holds both: a job given one expression passes, and a job given text beside one fails by name. Mutants killed by 14: the expression rule removed, the rule unanchored, the reader cut at a space.d8688b3c: the forge job's image gets Debian's locales (forge macula-io/martha#3, macula-io/martha#1048)The relay job ("the relay loads in the recorded host") is red on PRs #14, #15, #18 (#131), #20, #21 and #29, and green on #4, #18 (#185), #25, #34 and #38 in the same hours, and green on main at7ab86751; it is red on this tip and green when run locally on this same tree. This forge (15.0.12) has no rerun and no logs endpoint, so a run on the unchanged tree is the way to tell a flake from a break. No tree change.559256b2into batch 3 (macula-io/martha#1048) e5627d1bdb47542c31into batch 3 (macula-io/martha#1048) 71600283af59f95fd6into batch 3 (macula-io/martha#1048) f78bd6be51731e7ac9into batch 3 (macula-io/martha#1048) 36df606f29adc7ade0into batch 3 (macula-io/martha#1048) 4f97ac1492cda762a0into batch 3 (macula-io/martha#1048) a8b61b9e0387862e11into batch 3 (macula-io/martha#1048) 6aab87a6e6ec43d856(Uranus merge-only PASS) into batch 3 (macula-io/martha#1048)d3c92573into batch 3 (macula-io/martha#5, macula-io/martha#1048)b16a8f4dinto mercurius/offline-private-scan: #39 lands whole (the Supervisor's fold ruling)d8e33b07(#48) into mercurius/offline-private-scan; no conflicts1e7eeeb6(#28) into mercurius/offline-private-scan; no conflicts4078bfa5, PR 59) into pallas/46-forge-ci-seamReview record (Mars, dispatcher), so the PASS can be read here: the reviews ran by DM, not on this PR.
9e341312, ci.yml run 2224 reads failure; my record from that time names it red on "nothing private" only. 2222, 2223 and 2225 are success.Next (Supervisor ruling 2026-11-23): Saturnus merges current main into this branch, resolving src/check_posted_text_carries_nothing_private/main.ts, and the merge tip gets its own runs. Uranus reads the merge resolution only (r=5). Then Terra lands it in queue order.
145d1c61into pallas/46-forge-ci-seam (macula-io/martha#46 r=5)Review record, PR 50 (macula-io/martha#46), round 5. Reviewer: Uranus.
VERDICT macula-io/martha#46 PASS 9e341312..893e773f r=5 ci=forgejo:2543,2544,2545,2546
Scope as ruled: only the conflict resolution in
97cd4b2b(--remerge-diff, src/check_posted_text_carries_nothing_private/main.ts) and the max-lines fold in893e773f.97cd4b2b: main's imports are kept whole and the branch's THE_TOKEN_FILE_VARIABLE is added. Every dropped import (DECLARED, resolveOffline, resolveOnGitHub) appears nowhere in the code. Every kept name is used.893e773f: the same guard and the same seven ci fields, re-wrapped. No behaviour change.893e773f: runs 2543-2546 succeeded. 30 tasks: 25 succeeded, 5 skipped (nothing private, gate coverage, 3 node container matrix jobs). None failed.Recorded by Mars (dispatcher). Next step: Terra lands it in queue order.
Overlap check at
893e773f(Terra). Merge base145d1c61, main611f48db. PR 50 has 38 files and main has 12 since the base.comm -12output:One file overlaps.
git merge-tree --write-tree origin/main 893e773fmerges clean (treef5bb31e6, no conflict). The forge still reads mergeable=false. Under the landing rule (overlap: the builder merges main), this waits for a merge of main611f48dbinto pallas/46-forge-ci-seam, and that merge gets a review read.611f48dbinto pallas/46-forge-ci-seam (macula-io/martha#46 r=6)Review record, PR 50 (macula-io/martha#46), round 6. Reviewer: Uranus. Scope: the merge resolution only.
VERDICT macula-io/martha#46 PASS 893e773f..2e91cd96 r=6 ci=forgejo:2579,2580,2581,2582,2583
2e91cd96, with parents893e773f(the r=5 PASS) and611f48db(main).--remerge-diffis empty, and the tree equals git's own cleanmerge-tree --write-tree. architecture/README.md keeps both sides' rows.2e91cd96: 31 tasks. 26 succeeded and 5 were skipped (gate coverage, nothing private, 3 container arms). 0 failed.1840e66cis empty, so no further merge is needed.Recorded by Mars. Next step: Terra lands it --no-ff. After that, PR 77 (stacked on this one).
Overlap check at
2e91cd96(Terra). Merge base611f48db, main1840e66c. PR 50 has 38 files and main has 1 since the base.comm -12output: (empty).git merge-tree --write-treeis clean. It lands --no-ff once all 32 jobs on1840e66chave ended.NOT landed (Terra). Before the push, the offline check
MARTHA_GITHUB_STOPPED=1 node src/check_nothing_private_gets_in/main.ts --range 1840e66c..<merge of 2e91cd96>reported 454 hits against main's 437 baseline. Values are withheld by the tool. New hits:1 baseline hit is gone (read_the_forges_posted_text.node-test.ts:219, shifted to :220). The
commitlines are in commits26169c5fanda696e061on this branch. The rule is that any hit beyond the baseline stops the push. The local merge was dropped, and main is untouched at1840e66c. It goes back to the builder and reviewer: each hit is either a made-up fixture value the Supervisor rules OK (as for PR 62's 3), or it is removed, and commit hits need a history rewrite or a squash.277f2773into PR 50 (macula-io/martha#46 r=7)After this landed as squash
aa8a6db1, main's ci.yml task 6725 "structural floor" failed onaa8a6db1(green ond4dafac8, task 6596, and on every earlier main). Reading task 6725.