Repository navigation
feat(workspace): per-thread workspace resolver, and the rung 3 design - #780
Merged
Merged
Conversation
…d oracle Records the design conversation's decisions (model-drafted human-approved oracle, operator-pulled intake, target per package with the pin recorded at create, approve-or-reject gate), the two framework findings (per-thread workspace resolution; no durable model-free workflow primitive), the controller's move onto b4 workflow routes, and the sub-project ladder. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ace resolver Sub-project 1 of rung 3. Eight tasks, TDD, one commit each; verified against the managed-workspace manager, artifact, resolver and runtime seams on main. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Async-only resolver with an abort signal on its input, the example test that reads sandbox.workspace, the expected-red gates between tasks, and a strengthened type test. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Abort check before the source write, distinct empty-result error, guarded and cancellable metadata loader, docs on the resolver's critical section, and the orphan-source reclaim recorded as a follow-up. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
… and built apps Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ace resolver Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
What the resolver sees in metadata, the server-assigned thread id, and the b4 run behaviour, for the docs task and the spec's §5.2. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…per thread Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…/seo Co-Authored-By: Claude Fable 5.1 <[email protected]>
…, two follow-ups Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
blove
enabled auto-merge (squash)
September 22, 2026 04:46
blove
temporarily deployed
to
vercel-preview
September 22, 2026 04:46 — with
GitHub Actions
Inactive
This was referenced Sep 22, 2026
Merged
This branch was successfully deployed
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.
Summary
Sub-project 1 of the software factory's rung 3 (live issues), plus the rung 3 design and its plan.
sandbox.workspaceinb4.config.tsmay now be aWorkspaceResolver: host code called once per thread, at first admission, with{ threadId, metadata, signal }, returning that thread's initialWorkspaceDefinition(captured then) orCapturedWorkspaceDefinition(verified). The result is recorded by digest in the thread's creation intent exactly as a static definition is; later turns, restarts and readers use the record.b4 buildrecords a resolver marker{ version: 2, kind: "resolver" }in place of captured source; startup refuses an artifact whose form disagrees with the config in either direction ("Workspace configuration changed; rebuild the app"); version-1 artifacts still boot.b4 checkreports the per-thread form.sandbox.mdx"Per-thread workspaces" section. Minor changeset for@b4run/workspaceand@b4run/cli.docs/superpowers/specs/2026-09-21-software-factory-rung3-design.md(decisions, two framework findings, sub-project ladder, "As landed" notes). Plan:docs/superpowers/plans/2026-09-21-per-thread-workspace-resolver.md.Every task was reviewed twice (spec, then quality) and a final whole-branch review ran; findings were fixed or recorded.
Backward compatibility
A static
sandbox.workspacebehaves exactly as before at boot, build, check, admission, restart and read. One observable change: the canonical threads-store resolution is hoisted above admission (below the managed-workspace guard), so a fallback-less embedder with no store fails before admission rather than after.Follow-ups recorded in the spec (§9)
workspace_sourcesrows whenprovider.resolveEnvironmentfails after the source is put (pre-existing for the dev hook; a reclaim is the fix).Merge note
Squash-merge. Task 1 widens the type before the CLI adapts to it, so the CLI typecheck is red from the first code commit until the fourth; the commits are not bisectable as a series.
Test plan
@b4run/workspaceand@b4run/clilint, typecheck, tests (2093 passed) green locallyB4_TEST_DOCKER=1managed-workspace process and reader lanes greennode scripts/check-docs.mjsandseo:lastmod:checkgreenexamples/code-fixerhas no diff; both example servers typecheckvalidategreen🤖 Generated with Claude Code