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 — Factory skeleton: an empty FactoryLayer wired in through one seam · Issue #1 · original-solutions/t3code-factory

Factory skeleton: an empty FactoryLayer wired in through one seam #1

New issue
Copy link
New issue
Copy link
Closed
#30
Closed
Factory skeleton: an empty FactoryLayer wired in through one seam#1
#30
Copy link

Description

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

Outcome

The fork's server starts a factory module that only logs for now, and the rules that keep the fork mergeable with upstream are written down and checked by tests.

Acceptance criteria

  • apps/server/src/factory/index.ts exports FactoryLayer, a Layer that logs factory started once when the server starts.
  • apps/server/src/server.ts gains one import line and one entry adding FactoryLayer to layerRuntimeCoreDependenciesBase. No other line of server.ts changes.
  • factory/UPSTREAM holds one line, <upstream ref> <sha>, naming the upstream commit this fork is based on: v0.0.46-nightly.20261015.3145 339179f50a84dc599cce373dbb48f172f182f44e on this branch.
  • factory/SEAMS lists every upstream file the fork changes, one path per line. On this branch it holds only apps/server/src/server.ts.
  • factory/scripts/check-seams.sh diffs the tree against the sha in factory/UPSTREAM (git diff --name-only <sha> HEAD, fetching that sha from https://github.com/pingdotgg/t3code when it is missing locally). It exits 1 and names each changed path that is not under apps/server/src/factory/, apps/web/src/factory/, factory/ or .dw/, does not match apps/web/src/routes/factory* or .github/workflows/factory-*, and is not listed in factory/SEAMS. Otherwise it exits 0.
  • A test runs check-seams.sh in a temporary git repo and shows both outcomes: an allowed change passes, an unlisted upstream change fails and is named.
  • apps/server/src/factory/boundary.test.ts fails when a file under apps/server/src/factory/, other than files under apps/server/src/factory/t3/, imports by relative path from outside apps/server/src/factory/ (package imports such as effect are allowed). It also fails when any file under apps/server/src/ outside factory/ imports from the factory folder, server.ts excepted. It passes on this branch, and its own tests show each rule catching a violation.
  • factory/docs/design.md is a copy of docs/superpowers/specs/2026-10-15-t3-factory-fork-design.md from rawphp/softfac main.
  • factory/README.md says what the fork is, links the design, states the seam rule and the boundary rule, and gives the commands to run the factory tests.
  • vp test run apps/server/src/factory passes and vp run --filter t3 typecheck passes.

Depends on

  • rawphp/softfac#401

Notes

Follow the shape of layerThreadSettlementWorker in server.ts (Layer.effectDiscard). The design doc lands on softfac main through rawphp/softfac#400, which closes rawphp/softfac#401.

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 blocking 7 issues on Oct 15, 2026
    • One check script, run by a factory-ci workflow and by the factory gate #2
    • Build, install and roll back a darwin-arm64 fork binary on this Mac #3
    • Adapter: find a project, launch a thread and read its status in-process #5
    • Run commands with a cleared environment, a time limit and a bounded output tail #8
    • Ledger: write and read run files in softfac's JSONL format #9
    • Domain: lifecycle states and the session's result line #10
    • Config: the factory's machine config and a repo's factory block #11
  3. tomkaczocha
    added
    factory:readyApproved for the factory
    and removed
    factory:proposedA bot filed it; ignored until a person sets ready
    on Oct 15, 2026
  4. rawphp
    added
    factory:triageReadiness check is running
    and removed
    factory:readyApproved for the factory
    on Oct 15, 2026
  5. rawphp
    self-assigned this
    on Oct 15, 2026
  6. rawphp
    added
    factory:buildingA session is building it
    and removed
    factory:triageReadiness check is running
    on Oct 15, 2026
  7. rawphp commented on Oct 15, 2026

    @rawphp
    rawphp
    on Oct 15, 2026
    More actions

    Factory status: stuck

    • Machine: personal-mac
    • Session: thread:project:20382843-1673-43b4-a80c-ec3fbf9dabcb:b6ee40f9-1986-4721-84aa-afc57dc878fa
    • PR: Factory skeleton: an empty FactoryLayer wired in through one seam #30
  8. rawphp
    added 2 commits that reference this issue on Oct 15, 2026

    test(factory): rename into an allowed path is named, seam assertions …

    cbcf91a

    fix(factory): check-seams.sh diffs without rename detection

    0aadcf1
  9. rawphp
    added
    factory:pr-openPR is open and passed the gate
    factory:buildingA session is building it
    and removed
    factory:buildingA session is building it
    factory:pr-openPR is open and passed the gate
    on Oct 15, 2026
  10. rawphp commented on Oct 15, 2026

    @rawphp
    rawphp
    on Oct 15, 2026
    More actions

    The factory could not finish this issue and has released it.

    Reason: the session run ended as failed

    Fix the cause, then set the label back to factory:ready.

  11. rawphp
    added
    factory:stuckFactory gave up and said why
    and removed
    factory:buildingA session is building it
    on Oct 15, 2026
  12. rawphp
    removed their assignment
    on Oct 15, 2026
  13. tomkaczocha
    closed this as completedin #30on Oct 15, 2026
  14. rawphp
    removed
    factory:stuckFactory gave up and said why
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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.