Skip to content

Commit f9595b5

Browse files
d-csTrigger.dev RepoOps
authored andcommitted
feat(webapp): place run-ops mint shards by explicit org pin only
Mono-RevId: 80e6ea59d591f43f768bf0522dc16751959e13d0
1 parent 7d2f360 commit f9595b5

6 files changed

Lines changed: 212 additions & 191 deletions

File tree

‎apps/webapp/app/v3/featureFlags.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export const FEATURE_FLAG = {
3434
// Grace-linger stamp carried alongside runOpsMintKind on flip. See mintFlipGrace.ts.
3535
runOpsMintKindPrev: "runOpsMintKindPrev",
3636
runOpsMintKindFlippedAt: "runOpsMintKindFlippedAt",
37-
// Gen-2 mint shard pins, read from the org override blob only. See runOpsMintShard.server.ts.
37+
// Gen-2 mint shard pins, read from the org override blob only. A pin is the ONLY way an org or
38+
// environment reaches a shard: nothing unpinned is ever placed there. See mintShardAssignment.ts.
3839
runOpsMintShard: "runOpsMintShard",
3940
runOpsMintShardEnvPins: "runOpsMintShardEnvPins",
4041
// The active mint-shard list, global only. Lives here rather than in the environment because a
@@ -132,9 +133,10 @@ export const FeatureFlagCatalog = {
132133
// by stampMintKindFlip on a genuine flip. Display-only (see ORG_LOCKED_FLAGS).
133134
[FEATURE_FLAG.runOpsMintKindPrev]: z.enum(["cuid", "runOpsId"]),
134135
[FEATURE_FLAG.runOpsMintKindFlippedAt]: z.string().datetime(),
135-
// Pins one org to a gen-2 mint shard. "new" holds the org on gen-1 run-ops ids, which is how
136-
// a canary keeps the fleet's default while one org moves. Only honored while the key is in
137-
// the active list; a drained key falls through to the hash.
136+
// Pins one org to a gen-2 mint shard. "new" holds the org on gen-1 run-ops ids, which is also
137+
// what no pin does. Only honored while the key is in the active list; a drained key mints
138+
// gen-1. Not grace-stamped: a pin only decides where the NEXT root mints, and every id minted
139+
// either side of a change self-routes by the shard key it carries.
138140
[FEATURE_FLAG.runOpsMintShard]: z
139141
.string()
140142
.refine((v) => v === "new" || /^[a-z0-9]$/.test(v), 'must be a single [a-z0-9] char, or "new"'),

0 commit comments

Comments
 (0)