feat(gatorwalk-factory): a factory has one name, its model's (swamp-club #2816) #412
Loading…
Reference in a new issue
No description provided.
Delete branch "cue/2816-gatorwalk-factory-factory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes swamp-club #2816.
What
A factory has one name: its model's. Since #2884 the factory definition lives in the factory model's
globalArguments, so the definition's ownnameduplicated the model's name (and they differed in practice: the dogfood factoryswamp-extensionsheld a definition namedswamp-club-swamp-extensions).DefinitionSchemahas noname. A definition that still carries one is a schema error from bothswamp model validateand gatorwalk'svalidate.new_keyleads keys with the factory's name (team-add-list-method-r2ne).factoryfield replacesdefinition.name(definitionkeeps{ digest, version }). Records written before this change are not read: there are no users before go-live, soRUN_SCHEMA_VERSIONstays 1.validate/design_pageoutput (factoryfield), the summary report, ticket comments, the design page and the studio show the factory's name. The studio reads it from the model file's top-levelname.scenario, as their tracker instance already is.driving.mdand DESIGN.md updated, with a decision-log entry.Decisions (with Seth, in triage)
Drop the field rather than require a match or keep both. Reject it rather than ignore it. Use
factoryin the run record. No compatibility for old records. Keys may start with a digit, since swamp model names can.Verification
verify-build and verify-reviews passed on
b1303f2(12/12, 2 guarded skips), and the attestation was posted. Both reviews passed with only low, cosmetic findings: a blank studio heading if a model file has noname, andselfName(ctx)called twice innew_key.Rebased onto #2840 and #2873.
🤖 Generated with Claude Code