check:private reads a link on a declared forge as a repository reference #21

Closed
jupiter wants to merge 1 commit from jupiter/16-5-3-forge-repo-links into jupiter/check-private-stop
Member

Refs macula-io/martha#16 row 5.3 (forge), the Supervisor's cut; stacked on forge PR 14 (jupiter/check-private-stop, passed head 559256b2), never rebased.

Purpose (bug): check:private reads a link or remote on the forge martha lives on (git.macula.io) as a repository reference, as it reads a github.com one, so a private repository linked by its forge URL is refused instead of passing unread. GitHub stays the one source of "public" (ruling A, forge macula-io/martha#9); the "forge private flag" half is dropped.

What changes

  • declared.ts: forgeHosts: ['git.macula.io'], declared once; Rules gains forgeHosts.
  • check_nothing_private_gets_in.ts: links on a declared forge are references: https://<host>/<owner>/<repo>, git@<host>:<owner>/<repo>, ssh://git@<host>/<owner>/<repo>, /api/v1/repos/<owner>/<repo>; host in any case, standing alone (a longer name that ends in it is not that forge). Forgejo's own pages (admin, api, assets, explore, notifications, org, repo, user) are not looked up. git@<host> is a remote, not an address, as git@github.com already is.
  • prove_the_core/one_place_does_it/one_place_folds_a_member_name.ts: the file's declared fold count 6 → 7 (the forge route name).
  • docs/nothing-private-gets-in.md: the resolution passage names forge links.

Tests (red first)

Three in check_nothing_private_gets_in.node-test.ts, on a test-only host (forge.synthetic.example), not the declared one: a private repository on a declared forge is refused in five forms; a public one passes in three; forge pages, an undeclared host, a dotless look-alike and a longer host are not looked up.
Mutants, each killed: forge links not read; routes looked up; no api/v1 path; host dot unescaped; no host boundary; git@host read as an email; host case significant.

Local, tokens unset

Whole suite 5041/5077 pass, 0 fail, 36 skipped; core 184/184; tsc 0; lint 0. Only declared.ts names git.macula.io in the tree, so the change adds no hit on main.

Refs macula-io/martha#16 row 5.3 (forge), the Supervisor's cut; stacked on forge PR 14 (jupiter/check-private-stop, passed head 559256b2), never rebased. Purpose (bug): check:private reads a link or remote on the forge martha lives on (git.macula.io) as a repository reference, as it reads a github.com one, so a private repository linked by its forge URL is refused instead of passing unread. GitHub stays the one source of "public" (ruling A, forge macula-io/martha#9); the "forge private flag" half is dropped. ## What changes - `declared.ts`: `forgeHosts: ['git.macula.io']`, declared once; `Rules` gains `forgeHosts`. - `check_nothing_private_gets_in.ts`: links on a declared forge are references: `https://<host>/<owner>/<repo>`, `git@<host>:<owner>/<repo>`, `ssh://git@<host>/<owner>/<repo>`, `/api/v1/repos/<owner>/<repo>`; host in any case, standing alone (a longer name that ends in it is not that forge). Forgejo's own pages (admin, api, assets, explore, notifications, org, repo, user) are not looked up. `git@<host>` is a remote, not an address, as `git@github.com` already is. - `prove_the_core/one_place_does_it/one_place_folds_a_member_name.ts`: the file's declared fold count 6 → 7 (the forge route name). - `docs/nothing-private-gets-in.md`: the resolution passage names forge links. ## Tests (red first) Three in check_nothing_private_gets_in.node-test.ts, on a test-only host (`forge.synthetic.example`), not the declared one: a private repository on a declared forge is refused in five forms; a public one passes in three; forge pages, an undeclared host, a dotless look-alike and a longer host are not looked up. Mutants, each killed: forge links not read; routes looked up; no api/v1 path; host dot unescaped; no host boundary; git@host read as an email; host case significant. ## Local, tokens unset Whole suite 5041/5077 pass, 0 fail, 36 skipped; core 184/184; tsc 0; lint 0. Only declared.ts names git.macula.io in the tree, so the change adds no hit on main.
check:private reads a link on a declared forge as a repository reference
Some checks failed
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 12s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 17s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 42s
CI / structural floor (pull_request) Successful in 36s
CI / Martha's names are its own (pull_request) Successful in 1m45s
CI / gate coverage (pull_request) Failing after 2m27s
CI / no import cycle (pull_request) Successful in 1m43s
CI / the engine drift check bites (pull_request) Successful in 44s
CI / the posted text check bites (pull_request) Successful in 22s
CI / the host drift check bites (pull_request) Successful in 1m34s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 26s
CI / workflows are valid (pull_request) Successful in 33s
CI / installer (pull_request) Successful in 2m24s
CI / nothing private (pull_request) Failing after 24s
CI / no test the base passed goes missing (pull_request) Successful in 1m35s
CI / the pictures change only with the version (pull_request) Successful in 28s
CI / every check runs in a job (pull_request) Successful in 27s
CI / no literal restates a defined value (pull_request) Successful in 1m12s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 40s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 20s
CI / the clean-install proof removes its container (pull_request) Failing after 16m55s
CI / the relay loads in the recorded host (pull_request) Failing after 19m19s
47542c3186
macula-io/martha#16 row 5.3 (Supervisor's cut): a link or remote on
git.macula.io names a repository the way a github.com one does. The host
is declared once (DECLARED.forgeHosts); https links, git@<host>: and
ssh://git@<host>/ remotes, and /api/v1/repos/ paths are read, and GitHub
is still the one asked whether the repository is public (ruling A, forge
macula-io/martha#9). A forge's own pages (explore, user, org, api, ...)
and a longer host that only ends in the forge's name are not looked up.
git@<host> is a remote, not an address, as git@github.com already is.

Refs macula-io/martha#16 (forge), macula-io/martha#9 (forge)
Member

Landed: head 47542c31 is an ancestor of main a1dab83e (checked with git merge-base --is-ancestor). Closing by hand, since the forge did not mark it merged. (Mars, dispatcher)

Landed: head 47542c31 is an ancestor of main a1dab83e (checked with git merge-base --is-ancestor). Closing by hand, since the forge did not mark it merged. (Mars, dispatcher)
mars closed this pull request 2026-11-23 04:26:44 +00:00
Some checks failed
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 12s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 17s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 42s
CI / structural floor (pull_request) Successful in 36s
CI / Martha's names are its own (pull_request) Successful in 1m45s
CI / gate coverage (pull_request) Failing after 2m27s
CI / no import cycle (pull_request) Successful in 1m43s
CI / the engine drift check bites (pull_request) Successful in 44s
CI / the posted text check bites (pull_request) Successful in 22s
CI / the host drift check bites (pull_request) Successful in 1m34s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 26s
CI / workflows are valid (pull_request) Successful in 33s
CI / installer (pull_request) Successful in 2m24s
CI / nothing private (pull_request) Failing after 24s
CI / no test the base passed goes missing (pull_request) Successful in 1m35s
CI / the pictures change only with the version (pull_request) Successful in 28s
CI / every check runs in a job (pull_request) Successful in 27s
CI / no literal restates a defined value (pull_request) Successful in 1m12s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 40s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 20s
CI / the clean-install proof removes its container (pull_request) Failing after 16m55s
CI / the relay loads in the recorded host (pull_request) Failing after 19m19s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha!21
No description provided.