check:posted-text holds check:private's gate when asked: no GitHub read under the stop or from a forge clone (#36) #80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "venus/36-posted-text-gate"
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?
Refs macula-io/martha#36 (Done-when amended in comment 1050, Supervisor ruling).
Purpose (defect): asked (
--ask-github), check:posted-text sends no request to api.github.com underMARTHA_GITHUB_STOPPED=1or from a clone whose origin is not on github.com. It exits 2 and names why.What changes
posted-text main.ts: reads the origin of the clone it runs in. Before its first read of GitHub's posted text it askswhyGitHubIsNotAsked, and the lookups are built withresolveForTheRun(origin gate + stop), the same gate check:private holds since forge #39. Before this,callGitHubread neither, andresolveOnGitHub(token)was built with no env.scan_rules_and_visibility.ts:whyGitHubIsNotAsked(origin, env), the one place both checks read the reasons from. The lookups' messages stay byte-identical, and #39's 27 tests pass unchanged.--self-testare unchanged: they send nothing (amended line 1: the self-test keeps exit 0 under the stop).posted-text.ymlis unchanged (amended line 2).Proof (local, nice -n 10, on
109d6ac4)a1dab83e(main's own red), none added.Builder: Venus.