Repository navigation
Key every CI and release obligation on its own inputs (factory route) - #128
Merged
Merged
Conversation
Adopts the PrismPM factory route (PrismPM #566, #579-#581, #586) for uorc: factory/graph.json declares each obligation's inputs; scripts/factory.mjs computes its prism-factory/obligation/1 identity, routes it from receipts on the factory-receipts branch (proved, refuted, blocked, observe) and keeps a 16-level weight per obligation. - bootstrap and offline legs route by their own identities, refute a hermetic failure on unchanged inputs (a manual re-run observes it again), retry the SDK pull, and upload only their outcome. - factory.yml (workflow_run, default branch) turns outcomes into receipts, so no pull-request job holds a write token. - release.yml: refuses a tag that does not name the workspace version, requires the bootstrap gate on the tag's tree, reuses native/wasm/bench artifacts from the run that proved them, and gains a rehearsal mode, so a tag of a rehearsed commit only packages and publishes. - client-export.mjs records the export identity (the Uorc.Client import closure and the LexLean project files) and skips an export whose inputs are unchanged. - scripts/ci-receipt.sh is replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdDSxZc5dyuEbM7w7
…y outside prose files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdDSxZc5dyuEbM7w7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdDSxZc5dyuEbM7w7
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Alex · project thread
Adopts the PrismPM factory route (PrismPM #566, #579-#581, #586) for uorc's CI and release. This is the release-velocity lane of v0.4. It adds no new validation legs, only routing, receipts and reuse.
What changes
factory/graph.json+scripts/factory.mjs: 15 obligations, each declaring its own inputs.prism-factory/obligation/1text: name, kind, environment, run, inputs, the identities of what it needs, and a closure hash.planorders the remaining work by it.node --test scripts/factory.test.mjs.rest. Squash-merging an up-to-date PR produces the same tree.factory.yml(new;workflow_run, runs from the default branch): turns outcomes into receipts on thefactory-receiptsbranch.v<workspace version>. That stops the v0.2.0 trap, where the binaries reported 0.1.0.rehearsal, builds, benchmarks and packages without publishing. A tag of a rehearsed commit then only packages, publishes and dispatches Pages.client-export.mjsrecords the export identity ingenerated/rust/factory.identity.Uorc.Client, the LexLean project files and the export scripts.export-checkand the script itself skip the ~95 min export when those inputs are unchanged. A registry edit does not touch that closure.scripts/ci-receipt.shis removed, andtemplate.lockis updated for bootstrap.yml.Checked locally
node --test scripts/factory.test.mjs: 6 pass. They cover the coverage rule, refuting vs observing again, the gate, receipt expiry, and weights staying in 1..16.python3 -B tests/sdk-preflight/run.py: 17 pass.cargo xtask validate: passes up to audit-bootstrap, which runs only in the SDK. audit-bootstrap passed in CI.Not testable before merge
factory.ymland release dispatch only run from the default branch.mode: rehearsal,ref: main.🤖 Generated with Claude Code
https://claude.ai/code/session_013Asa3LdDSxZc5dyuEbM7w7