GeezerVison is showing github.com — id: production enablement point gated on the provisioning verdict (#3403) by dezren39 · Pull Request #13753 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Second slice of #3403. Adds the single enablement point through which production hosted signup and migration may run. Production enablement is created only from a plan issued by validateEnablement (identity-tracked, not structurally matched), and each mode is checked against an issued enablement.
src/enablement.ts: createProductionEnablement (refuses unvalidated_plan, unknown_enablement_mode, no_enablement_mode) and requireProductionEnablement (refuses production_disabled, mode_not_enabled).
src/provisioning.ts: module-private WeakSet of issued plans, isValidatedEnablementPlan, plans frozen.
- Registry row updated for
provisioning-surface.test.ts and enablement.test.ts.
Evidence
- Ran on the laptop worktree at
1fb1f4f64ee: node --experimental-transform-types --test over the hosted-worker suite: 134 pass / 0 fail (enablement 10 new tests, provisioning 17, provisioning-surface 14).
- Typecheck:
~/tools/fleet-build-lock tsc --noEmit clean.
- Test was written first and failed on the missing module.
- Registry check: no new unwired entries for the files in this PR.
export.test.ts remains unwired on main (pre-existing, not touched).
Evidence level: ran on the laptop; not run in CI.
Merge Danger
Low. No live deployment; no production path calls requireProductionEnablement yet, so behaviour is unchanged for existing code. validateEnablement now returns a frozen object; existing callers only read fields.
Refs #3403. Does not close #3403: the live provisioning evidence run and the production signup/migration caller remain.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T21:11:23Z",
"session_id": "ses_e5df5f10edcffexqoTg41haj1V",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/3403-enablement-20261123T203838Z-a361f9ab",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/3403-enablement-20261123T203838Z-a361f9ab",
"repo": "developing-today/code",
"branch": "queue/3403-production-enablement",
"sha": "1fb1f4f64eea45da6c47eff5088d15757db755b5"
},
"auth_subject": "oc-code-03",
"stamped_by": "fleet 0.1.0 (native)"
}
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
)
Production signup and migration may be enabled only through a plan
issued by validateEnablement. createProductionEnablement refuses
look-alike plans (unvalidated_plan); requireProductionEnablement
refuses when no issued enablement is active (production_disabled) or
when the mode is not enabled (mode_not_enabled). Issued plans and
enablements are frozen and identity-tracked, not structurally matched.
Wires provisioning-surface and enablement tests into the hosted-worker
registry row.
Refs #3403
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 41 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
54d2e7dd-7af3-4047-a962-8546cf2d4ac2
Commits
-
Reviewing files that changed from the base of the PR and between bf7040d and 1fb1f4f.
Files selected for processing: 5
-
.github/test-suite-registry.json
pkgs/id/hosted-worker/package.json
pkgs/id/hosted-worker/src/enablement.ts
pkgs/id/hosted-worker/src/provisioning.ts
pkgs/id/hosted-worker/test/enablement.test.ts
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|