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 — Pass loop: claim ready issues fairly · Issue #15 · original-solutions/t3code-factory

Pass loop: claim ready issues fairly #15

New issue
Copy link
New issue
Copy link
Closed
#46
Closed
Pass loop: claim ready issues fairly#15
#46
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 watches its configured repos and claims approved, unblocked factory:ready issues the way softfac's pass does.

Acceptance criteria

  • FactoryLayer runs a pass when the server starts and every poll_seconds after. Passes never overlap. wake() starts the next pass now if none is running.
  • For each configured repo a pass reads the factory block from the default branch, lists factory:ready issues oldest first, applies the approval rule and blockers, and claims while slots are free. max_concurrent_runs slots in all; a run holds its slot from claim until pr-open, needs-info or stuck; the repo with the fewest runs goes first.
  • A claim needs an issue with no assignee. It assigns the factory's login, swaps factory:ready for factory:triage, and writes claimed to a new run file. A refusal moves the issue back to factory:proposed with softfac's comment.
  • An untracked claim (factory:triage, assigned to the factory's login, no run file) older than 15 minutes is handled as softfac handles it.
  • While <data>/claims-paused exists no claims are made, and the pass logs that once per pass.
  • Machine log lines (pass_started, claim_skipped and the rest) match softfac's.
  • softfac's tick tests for ordering, fairness, slots, pause and untracked claims (src/tick/tests) are ported and pass.

Depends on

  • Ledger: write and read run files in softfac's JSONL format #9
  • Config: the factory's machine config and a repo's factory block #11
  • GitHub: the approval rule and blockers #13
  • Domain: lifecycle states and the session's result line #10

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 by 4 issues on Oct 15, 2026
    • Ledger: write and read run files in softfac's JSONL format #9
    • Config: the factory's machine config and a repo's factory block #11
    • GitHub: the approval rule and blockers #13
    • Domain: lifecycle states and the session's result line #10
  3. tomkaczocha
    marked this as blocking on Oct 15, 2026
    • Start: launch the /factory session for a claimed issue #16
  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:b29aa08c-fb66-4a15-8533-2d454cc4c335
    • PR: Pass loop: claim ready issues fairly #46
  9. rawphp
    added 12 commits that reference this issue on Oct 15, 2026

    feat(factory): duration, unfinished run listing and the claims pause …

    31812be

    test(factory): gh login, the claim edit, unassigned claims and the ne…

    d31b95a

    feat(factory): gh login, the claim edit, unassigned claims and the ne…

    4913224

    test(factory): the claim: approval, the claim edit and its repair, re…

    768a8d5

    feat(factory): the claim: approval, the claim edit and its repair, re…

    99efe70

    style(factory): catch the missing-ledger tag with catchTags, as the l…

    74a39f3

    test(factory): softfac's tick tests for ordering, fairness, slots, bl…

    1863af8

    feat(factory): one pass: load repos, count runs, handle untracked and…

    0a06867

    test(factory): the pass loop runs at start, every poll_seconds, on wa…

    cf3532a

    feat(factory): FactoryLayer runs the pass loop over the live world an…

    1c66f2d

    test(factory): a FIFO pause file does not block, a failed start's err…

    dd396c2

    fix(factory): review cycle 1: a FIFO pause file cannot block, a faile…

    641145b
  10. rawphp
    added
    factory:pr-openPR is open and passed the gate
    and removed
    factory:buildingA session is building it
    on Oct 16, 2026
  11. tomkaczocha
    closed this as completedin #46on Oct 16, 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.