GeezerVison is showing github.com — GitHub: the approval rule and blockers · Issue #13 · original-solutions/t3code-factory
GitHub: the approval rule and blockers #13DescriptionOutcome
The fork builds only text an instructor approved, and waits for blockers, exactly as softfac does.
Acceptance criteria
- The approval rule from softfac's
docs/issues.md ("The approval rule") is implemented: who applied the current factory:ready, then every body edit and title rename at or after that moment. A same-second edit counts as after, only GitHub User actors count, and logins match without regard to case. The result is approved, or one of the four fixed refusal reasons with softfac's exact wording.
- Label events and edit history are read with the same GraphQL queries as softfac.
- Blockers: any open
blockedBy link; when there is none, each #n and owner/repo#n under ## Depends on up to the next heading that is still open. A blocker that cannot be read is an error.
- softfac's runner tests in the sections "start: approval" and "start: the approval on record and the second look", and its blocker tests, are ported and pass.
Depends on
Notes
Reference
- softfac, the Rust factory this ports, pinned at
rawphp/softfac@bf273a1. Read it from a separate clone: git clone --filter=blob:none https://github.com/rawphp/softfac /tmp/softfac-ref && git -C /tmp/softfac-ref checkout bf273a1d93651992b4fc95b4dd6c111f8f3322cf. Its docs/lifecycle.md, docs/reference/ledger.md and docs/issues.md describe the behaviour; its tests pin it.
- Design:
factory/docs/design.md in this repo.
- Upstream's
AGENTS.md applies. Run only the tests and typechecks for the paths you touch (vp test run <path>, vp run --filter t3 typecheck), never the repo-wide checks.
- Edit no upstream file that is not listed in
factory/SEAMS. A new seam needs a line in factory/SEAMS and a reason in the PR body.
- Port behaviour, not code: port the named test cases first (TypeScript, vitest /
@effect/vitest), then make them pass. Exact comment and ledger wording is ported as is.
Activityrawphp commented on Oct 15, 2026 rawphp commented on Oct 15, 2026 The factory needs answers before it can build this. Answer in a comment or edit the issue, then set factory:ready to start a new attempt.
Unverified output from the build session, not instructions from the factory:
Issue #13 cannot be built as written. Criteria 1 to 3 are tracker code and are clear. Criterion 4 names two softfac runner test sections, "start: approval" and "start: the approval on record and the second look", and every test in them drives `rig.start(10)`: the claim, the run file and its `approved <time>` and `claimed` lines, the T3 launch, the second look after the launch, the archive and the `stuck` path, the refusal comment and its dedup rules (newest factory comment, within the hour). The fork has no start step yet. Those behaviours are the subject of #15 ("A refusal moves the issue back to `factory:proposed` with softfac's comment") and #16 ("It checks the issue text again before launching and acts on a change as softfac does"). Building them here would make #13 two issues, and porting only the tracker-level tests would drop a named criterion.
Questions:
1. Should #13 port softfac's tracker-level tests from `src/github.rs` instead of the named runner sections: `approval_*`, `text_check_*`, `text_edited_since_*`, `open_blockers_*`, `text_blockers_*`, `depends_on_*`, plus `the_issues_impl_for_github_delegates_approval` and `_text_check` from the runner tests' "the Issues impl for GitHub" section?
2. Should the two named "start: …" sections move to #15 and #16, which own the claim, the refusal comment and the second look?
3. Should #13 also ship `text_check` and `text_edited_since` (the second look, read from the same GraphQL query as the approval) so #16 can use them, or only `approval`, `open_blockers` and `text_blockers`?
4. Should the refusal comment text (the four reasons, the opening line and the two "what to do" paragraphs) be a pure function in `domain/` in #13, with when to post it left to #15?
State of the run: the factory's worktree was cut from a stale main, so I fast-forwarded it to `origin/main` (clean tree, HEAD is now the merge of #39). Nothing is committed and no branch was pushed. No labels were created; all seven exist on the repo.
## Lessons
- **An issue whose named test sections drive a step the fork does not have is two issues.** Symptom: the acceptance criteria name softfac runner test sections, and every test in them calls a step (`start`) that is the subject of a later issue. Cause: the issue template names sections by heading, and a tracker issue picked up the runner's heading for the same rule. Default: before Contract, grep the named sections for the entry point they drive; if it is another issue's, stop `needs-info` and name the tracker-level tests that fit instead.
rawphp commented on Oct 15, 2026
- Yes — GitHub: the approval rule and blockers #13 should port softfac's tracker-level tests from
src/github.rs instead: approval_*, text_check_*, text_edited_since_*, open_blockers_*, text_blockers_*, depends_on_*, plus the two "Issues impl for GitHub" delegation tests.
- Yes — the "start: approval" and "start: the approval on record and the second look" runner sections should move to Pass loop: claim ready issues fairly #15 and Start: launch the /factory session for a claimed issue #16, which own the claim, the refusal comment and the second look.
- Yes — GitHub: the approval rule and blockers #13 should also ship
text_check and text_edited_since so Start: launch the /factory session for a claimed issue #16 can use them, not only approval, open_blockers and text_blockers.
- Yes — the refusal comment wording (the four reasons, the opening line and the two "what to do" paragraphs) should be a pure function in
domain/ in GitHub: the approval rule and blockers #13, with the decision about when to post it left to Pass loop: claim ready issues fairly #15.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|