You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Public source guard accepts an unlisted repository under a public Mech alias #607
Adversarial review of PR #603 at 39eec2a found a public-membership bypass in scripts/fleet/roots.py:114–118.
is_withheld("CultureMech/private_lab") permits the value because its first component is the public alias culturemech, even though that exact owner/repository is not in the canonical public snapshot. The same permissive function handles relative record paths and repository identities.
This reaches scientific acquisition through scripts/gaps/snapshot.py:193 and scripts/gaps/vocabulary.py:297. verify_repo then checks origin against the supplied repository string, so an origin of https://github.com/CultureMech/private_lab passes. A public source name and generic unlisted repository name also evade the supplemental Mech-name prose check. Unlisted repository records can therefore enter a public bundle.
The retained offline publication routes need the same canonical check. scripts/gaps/build.py:54–63,123 and scripts/gaps/vocabulary.py:391–399,483 compare repository fields only to the supplied config, then scan prose for unlisted names ending in Mech. Mutually consistent retained source/config objects with a public source name and repository CultureBotAI/private_lab therefore evade membership validation without reacquiring records. Configuration digests establish consistency, not canonical public membership.
Separate exact repository membership checks from relative source-path checks. At each scientific source/config boundary, bind the public source name to that member's exact canonical owner/repository, including retained offline gap and vocabulary validation. Add regressions for a public alias used as an unlisted owner, generic unlisted repositories, and a different allowed public repository under the wrong public name. Prove the tests fail with each repaired check disabled. Preserve valid relative public record paths and public repository URLs.
Priority: P2. File and fix within PR #603 before merging.
Activity