Repository navigation
Require a Trusted account on a linked closing issue - #2338
Conversation
A Review run, a Fix run, or a pull-request Custom process, including one started as a Pass, refuses a linked closing issue whose author is not a Trusted account, or whose title or body an account that is not one has edited, before writing the review input or starting a session. An edit since the run started still fails first, with the existing message.
The Fix run test had copied the Review run's clone-and-push helper. Scenario::commit_review_input_symlink uses the existing seed push. ClosingIssues comments now name both stop conditions; the clean-stop predicate keeps its name.
Review Pass admission already sent acme/other as its own gh argument. The trust read calls gh api repos/acme/other/issues/7, so the fake has to match the repository inside that path. A held issue on the other repository still skips.
|
Delivery completed on agent-authored or reviewed head a2ba006. |
1 similar comment
|
Delivery completed on agent-authored or reviewed head a2ba006. |
Rename closing_issue_use/ClosingIssueUse to closing_issue_trust/UntrustedClosingIssue, parallel to issue_trust/UntrustedIssue, and is_untrusted_edit to is_untrusted_closing_issue now that an untrusted author with no edit also stops the run. Index closing_issue_trust and its ClosingIssues/review_input enforcement points in docs/code-navigation.md. No behaviour change.
|
Review run. Pushed fixes to issue-2337 at 00a52ea. Spec axis used the linked closing issues. Review complete. Spec (linked closing issue #2337, not the PR body alone) passes with no findings. Standards raised 4 judgement calls: fixed 2, declined 2 on code evidence. Fixes committed as 00a52ea0 - not pushed, per instructions. Reports: standards.md, spec.md, summary.json ( StandardsNo hard violations. Four judgement calls (skill: .agents/skills/codebase-design/SKILL.md per CODING_STANDARDS.md):
SpecSpec quoted: "Stop a Review run, a Fix run, or a pull-request Custom process, including one started as a Pass, before it uses a linked closing issue unless that issue's author is a Trusted account and no account that is not a Trusted account has edited its title or body." Verdict: no findings - (a) nothing missing/partial across Review/Fix/PR-Custom incl. Pass variants, retained since-unlinked issues, author + title/body + unknown-actor edits, fail-closed reads; (b) no scope creep; (c) nothing implemented-but-wrong. Fixed
Unaddressed findingsStandards
The older SpecNone. Review coverageFixed point ValidationPR state checked once, immediately before final validation:
Totals: Standards 4 findings (worst: #1 duplicated gate, declined above), Spec 0 findings (worst: none). Security
CI passed or absent at 00a52ea |
The Spec review found every new test stopped at prepare and every mid-run test used a future-dated edit, so no test reached the Delivery, push or Self-merge stops with UnusableClosingIssue. Add the reviewer's back-dated-edit test at push and a Self-merge twin: dropping UnusableClosingIssue from is_untrusted_closing_issue makes the twin fail with the pull request drafted, which proves it reaches that predicate site. Name the new error mode in review_input's doc comment, and list tests/review_pass.rs and tests/fix_pass.rs in the Trusted-account row of docs/code-navigation.md, where the Pass stops live.
|
Delivery completed on agent-authored or reviewed head f162fab. |
|
Review run. Pushed fixes to issue-2337 at 4932210. Spec axis used the linked closing issues. Reviewed PR #2338 against Standards
Spec
Unaddressed findingsStandards
SpecNone. Neither Standards observation required a Day shift decision. CoverageBoth reviewers read all 18 files in the pinned diff, including the changed generated manual hunks. There were no generated-output exclusions. Standards did not read ValidationI used the pinned base because local
The two Spec source assertions failed before the fixes and passed afterward. The Git proof for the pending merge failed as expected, and the retained product regression passed. The before-and-after browser checks passed on all four pages with JavaScript enabled and disabled. The full scripts and captures are in the Spec report. The extra command list was empty. Totals — Standards 1, the ambiguous issue diagnostic. Spec 3, with the Fix failure path’s ability to push Repair work the most consequential. Security
CI passed or absent at 4932210 |
Summary
A Review run, a Fix run, or a pull-request Custom process does this, including one started as a Pass. Once the Pass has selected a pull request, that stop exits the command and does not take the next candidate. A Claim or an issue reservation still skips the candidate before selection.
closing_issue_trustinsrc/trust.rsis the decision, on the existingReadsadapter. The run calls it fromClosingIssues::check_knownand fromGitHub::review_input, before the review input is written.Evidence
Execution evidence
cargo test --test review_run untrusted_closing_issue_author_stops_before_the_issue_is_used -- --test-threads=8The run still reached the review-input symlink, so the test failed:
After: the same command
The foreign-repository reservation test failed once the trust read called
gh api repos/acme/other/issues/7. The fake only switched state whenacme/otherwas its own argument.cargo nextest run --no-fail-fast, testclosing_issue_reservations_are_read_from_the_issues_repositoryAfter:
cargo test --test review_pass closing_issue_reservations_are_read_from_the_issues_repository -- --test-threads=8This review round added post-prepare coverage for the new stop. The Spec reviewer's test, run as written, passes on this branch, and a Self-merge twin proves the clean-stop predicate matters:
cargo test --test review_run -- unusable_closing_issue_seen_at_push_stops_push_and_comment- 1 passed. A body edit dated 2020-01-02 appears at push; the run stops with#7 body edited by an account that is not a Trusted account; starting no further session, posts no comment and pushes nothing.cargo test --test review_merge -- unusable_closing_issue_during_self_merge_repair_stops_without_merging- 1 passed. Withtrust::UnusableClosingIssuetemporarily dropped fromClosingIssues::is_untrusted_closing_issue, the same test failed (isDrafttrue, expected false), so the test reaches the predicate site it guards. The mutation was reverted.cargo test --bin thirdshift trust::testspassed (23). The targeted closing-issue filters acrossreview_run,review_pass,fix_runandfix_passpassed.cargo fmt --checkandcargo clippy --all-targets -- -D warningsare clean.scripts/affected-tests mainpassednpm test --prefix site(74 tests, includingdocs:check), then stopped atplan_usage::fleet_plan_usage_groups_shared_logins_and_keeps_an_offline_peer_cached, which recorded the hostmuseat/home/jacob/.local/bin/muse. That test is not in this diff, and the same failure was recorded on the earlier head. The remaining site checks ran directly:cargo test --test share_card --test site_deploypassed,cargo test --bin thirdshift prompts_pagepassed (16), andcargo test --test review_mergepassed (15 passed, 2 ignored). A fullcargo nextest run --no-fail-fastwas stopped after 30 minutes without finishing, so the full local suite beyond the checks above is unverified; CI covers the pushed head.Visual evidence
Copy only, at desktop 1440x900. Layout did not change, so there is no separate mobile capture. The new sentence is on
/,/how-it-works/,/architecture/and/docs/, and not on/prompts/. The home tagline is stillYour issues become pull requests overnight.This review changed no rendered file, so these captures stay.Before - home Fix copy, desktop 1440x900
After - home Fix copy, desktop 1440x900
Before - home Review copy, desktop 1440x900
After - home Review copy, desktop 1440x900
Before - how-it-works Fix copy, desktop 1440x900
After - how-it-works Fix copy, desktop 1440x900
Before - docs Fix runs, desktop 1440x900
After - docs Fix runs, desktop 1440x900
Before - architecture Trusted accounts, desktop 1440x900
After - architecture Trusted accounts, desktop 1440x900
Unaddressed findings
Standards
Repeated trust reads in
ClosingIssues::check_known(src/delivery.rslines 1255-1260) and the two handovers (src/delivery.rslines 1340-1343,src/processes/review.rslines 300-303): the since-start loop, theclosing_issue_trustloop, andGitHub::review_inputeach read the same edit histories. I left the reads as they are.src/trust.rskeeps one decision per public function (issue_trust,ticket_trust,closing_issue_trust), andcheck_knownruns the since-start decision for every retained issue before the author/any-edit decision for any of them, so merging the loops into one read needs a new combined decision insrc/trust.rsand changes which read error surfaces first in a security gate. Repeated fresh reads at each boundary are the existingClosingIssuespattern:checkre-reads the closing-issue list and edit histories before and after each Step, session, Repair, Resume, push and Self-merge. The finding claims no wrong result. Not a Spec or Day shift decision.refuse_unusable_closing_issue(src/delivery.rslines 1297-1298) callstrust::closing_issue_trust(&GitHub::new(), issue)instead of a&GitHuba caller already holds. I left that as it is. The sibling gate does the same thing:no_untrusted_edit_since(line 1278) callstrust::untrusted_edit(&GitHub::new(), issue, Some(started)).GitHubis a stateless wrapper around theghbinary..agents/skills/thirdshift-codebase-design/SKILL.mdsays one adapter is a hypothetical seam, and not to introduce a seam unless something actually varies across it.GitHub::review_inputpassesselfonly because that function is already a method onGitHub. The finding does not claim a wrong result. Not a Spec or Day shift decision.Addressed instead: the
review_inputdoc comment now names theUnusableClosingIssueerror mode, and the Trusted-account row indocs/code-navigation.mdnow liststests/review_pass.rsandtests/fix_pass.rs.Spec
None. The one Spec finding (no post-prepare test reached the new stop) is addressed by the two tests above.
Security review outcome
Review coverage
Standards and Spec each read every file changed by the four branch commits under review, including
site/docs/index.html(read as hunks, not excluded as generated output;npm run docs:checkcould not run in the reviewers' worktree for missingsite/node_modules, and passes afternpm ci --prefix site). Unread changed files:tests/review_merge.rs, added after the review to address the Spec finding, so neither reviewer read it. Both reviewers read changed hunks and bounded ranges rather than every remainder of the largest files; their reports in the Session trace list the ranges.Merge Danger
Door: two-way
Reverting the change restores the since-start edit check and lets a run use a linked closing issue again.
Blast Radius: Review, Fix, and pull-request Custom processes
A linked closing issue whose author is not a Trusted account, or whose title or body an account that is not one has edited, stops the run before a session sees the issue. Passes that already selected that pull request stop instead of taking the next candidate.
Closes #2337
Built with muse Muse Code 1.4.25 (1.4.25-R9361.1) · muse-wonder-full-1.0 · max