GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub: the approval rule and blockers · Issue #13 · original-solutions/t3code-factory

GitHub: the approval rule and blockers #13

New issue
Copy link
New issue
Copy link
Closed
#44
Closed
GitHub: the approval rule and blockers#13
#44
Copy link
Assignees
rawphp
Labels
factory:pr-openPR is open and passed the gate

Description

@tomkaczocha
tomkaczocha
opened on Oct 15, 2026
Issue body actions

Outcome

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

  • GitHub: issue reads and writes through the gh CLI #12

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.

Activity

  1. tomkaczocha
    added
    factory:proposedA bot filed it; ignored until a person sets ready
    on Oct 15, 2026
  2. tomkaczocha
    marked this as blocked on Oct 15, 2026
    • GitHub: issue reads and writes through the gh CLI #12
  3. tomkaczocha
    marked this as blocking on Oct 15, 2026
    • Pass loop: claim ready issues fairly #15
  4. tomkaczocha
    added
    factory:readyApproved for the factory
    and removed
    factory:proposedA bot filed it; ignored until a person sets ready
    on Oct 15, 2026
  5. rawphp
    added
    factory:triageReadiness check is running
    and removed
    factory:readyApproved for the factory
    on Oct 15, 2026
  6. rawphp
    self-assigned this
    on Oct 15, 2026
  7. rawphp
    added
    factory:buildingA session is building it
    and removed
    factory:triageReadiness check is running
    on Oct 15, 2026
  8. rawphp commented on Oct 15, 2026

    @rawphp
    rawphp
    on Oct 15, 2026
    More actions

    Factory status: pr-open

    • Machine: personal-mac
    • Session: thread:project:20382843-1673-43b4-a80c-ec3fbf9dabcb:9900c8e7-a78f-49f2-9e00-c492d58453dc
    • PR: GitHub: the approval rule and blockers #44
  9. rawphp commented on Oct 15, 2026

    @rawphp
    rawphp
    on Oct 15, 2026
    More actions

    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.
    
  10. rawphp
    added
    factory:needs-infoFactory asked questions and is waiting
    and removed
    factory:buildingA session is building it
    on Oct 15, 2026
  11. rawphp
    removed their assignment
    on Oct 15, 2026
  12. rawphp commented on Oct 15, 2026

    @rawphp
    rawphp
    on Oct 15, 2026 – with Cursor
    More actions
    1. 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.
    2. 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.
    3. 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.
    4. 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.
  13. rawphp
    added
    factory:readyApproved for the factory
    factory:triageReadiness check is running
    and removed
    factory:needs-infoFactory asked questions and is waiting
    factory:readyApproved for the factory
    on Oct 15, 2026
  14. rawphp
    self-assigned this
    on Oct 15, 2026
  15. rawphp
    added
    factory:buildingA session is building it
    and removed
    factory:triageReadiness check is running
    on Oct 15, 2026
  16. rawphp
    added 2 commits that reference this issue on Oct 15, 2026

    refactor(factory): split the pure approval judgement and Depends on p…

    072e64c

    test(factory): a blocker in a state other than the exact `closed` sti…

    f96097b
  17. rawphp
    added
    factory:pr-openPR is open and passed the gate
    and removed
    factory:buildingA session is building it
    on Oct 15, 2026
  18. tomkaczocha
    closed this as completedin #44on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rawphp
    rawphp

Labels

factory:pr-openPR is open and passed the gate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.