Repository navigation
fix(cyberia): restore the Cyberia CI and saga generation after the seed-to-playable Auto Run - #260
Merged
Conversation
…stall npm refuses a direct dependency whose spec differs from its `overrides` entry (EOVERRIDE). The old `npm install <name>@<pin>` wrote npm's own spec, so a catalog pin that an override also names (sharp) failed the install. - installDeployDependencies merges the catalog `packageDependencies` into the manifest dependencies with `npm pkg set --json`, as each pin is written in the catalog, the same as buildDeployPackageJson does. - A plain `npm install --include=dev` then installs the manifest and keeps the dev dependencies when NODE_ENV=production. - The unit test checks both commands with a pin that an override names.
…ayer The gameplay gate checked only recipe ingredients. A saga could still ship a shop, buyback, burn or market that asks for an item no player can get. - Coverage: a TAKES table lists what each action offer takes: recipe ingredients, barter prices (the wallet coin price is exempt), buyback and burn items and market item listings. coverageWorld looks up stored sources for all of them; `items.ingredients` becomes `items.takes`, each entry with its `use`. - Report: TAKE_ROWS names the offer and the field of each row (Recipe N, Shop line N, the buyback, the burn, the market). A row of an action the saga defines carries its `definition`, so the Metadata Auto Run and Repair with AI correct that action. - Only an ingredient reports `not-carried`; the content rules own that problem for the other uses. - Docs: the explanation states the source rule for each offer use and how a repair places a foundation or saga provider before it defines a new one. - Tests: unit coverage of each use, the report row of a saga action, and the Auto Run repair targets of the buyback, burn and craft actions.
… that failed the rules A request key without the generator blocked a run after a cyberia-content fix: the same key looked answered. A generation whose package failed the content rules also blocked its own request forever. - Dependencies: requestBasis() adds `generator`, the commit of the content checkout (contentCheckoutRevision), to the validation basis. - Metadata Auto Run and Repair with AI key each request by revision digest, requirements, repairs, world, content digest, runtime contract and generator. - The generate step skips only a key that a `completed` generation answered. A generation that ended `invalid` or `stale` runs again in this run and in a later run, within the generation budget. - The Repair refusal names the generator with the other request inputs. - Docs: the explanation and the reference state the new key and the retry rule. - Tests: three invalid generations spend the budget and block the run; a retry with a valid premise generates the saga; a completed request still ends `no_progress`.
A saga badge took a fixed hue of its code. A moderator can now choose the color in the package identity (`saga.color`), and every Studio badge shows it. - Data: `color` on the CyberiaSaga record and on each workflow candidate; candidateOf reads it from `pkg.saga.color`, and the workflow summary shows the color of the newest revision. - Resolution: sagaColors() takes, by saga code, the newest revision of the newest workflow, else the stored record, the artifact record, else the source package. The first that holds the saga decides; ignored sagas stay out. The catalog row carries the same `color`. - API: public read-only `GET /cyberia-saga/colors`, and getColors() in the client service. - Studio: SagaCyberia keeps a color map, loads it once and repaints each `[data-saga]` badge when a color changes. The code hue is now `#rrggbb`. ContextPanel copies a badge `dataset` to its node. - Saga Engine header: a color input saves a new revision with only the color changed, and "Hue of the code" clears it. It refuses while the package editor holds unsaved changes or the metadata stage is locked. - Generation: generationContext() puts the newest revision color in the saga identity of the request, so a new generation keeps it. - Docs and tests: the colors route, the catalog field and the header control; the color resolution and the badge repaint.
The Clean Package view reads `complete` from the cleanup preview, but cleanupPreview never returned it. planNewest now passes the `complete` flag of externalReferences, and the preview includes it. The view then shows when an external source cannot be read on this host.
The other render rows of an item already sit in the `visual` gate. The `ready` or `shared` row of an active render had no gate, so the visual gate of the completeness report missed it.
… Auto Run These mongod suites still asserted behavior that the Saga Engine auto run (e1f150a) replaced. Only the tests change. - Saga Auto Run: Final Review approval runs once; the Auto Run approves the render of an unplaced item; a published revision refuses a second publication with 409; render rows show `state` and `candidate` in place of `approved` and the old ready label; finding and definition checks ignore extra fields and order; the latest revision is read from `candidates`; a procedural approval holds `digest`. - Render readiness: the three primitive fallbacks are fallback renders the publication binds, with no moderator approval. - Saga workflow: the generator stub returns the provider, model and stop reason fields; a removal is refused while a generation works and runs after it; the stub request holds a premise. - Content lifecycle: bind the instance codes the release serves. - Procedural graph and draft contracts: a placed floor entity, a redrawn asset so the publish runs, and the new message of an entity-type default that loses its last instance reference. - Saga sync: bind the merchant item too.
Closed
8 tasks
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.
Closes #259
Development type: Bug fix ·
fix/saga-engine-seed-to-gameplay-autorunCommits
7c5a608f9[test] Align the Cyberia integration suites with the seed-to-playable Auto Run3c4f75410[cyberia] Put the ready row of an active item render in the visual gateae8f0509e[cyberia] Return whether the cleanup preview read every external source96d7ed2d9[cyberia] Give each saga a badge color its package owns89472bf43[cyberia] Key saga AI requests by the generator and retry generations that failed the rules97e40d701[cyberia] Require a source for each item a saga offer takes from a player95513b8b5[package] Write the deploy catalog pins to the manifest before the installSummary
Restore the Cyberia CI after #257: the deploy install passes
npm packwith thesharpoverride,and the mongod suites match the Auto Run. Fix two readiness bugs, the saga AI request key and the
offer source check. Add the saga badge color.
Technical details
src/server/build/package.js):installDeployDependenciesmerges the catalogpackageDependenciesinto the manifest withnpm pkg set --json, asbuildDeployPackageJsondoes,then runs
npm install --include=dev.saga-report.js): thereadyorsharedrow of an active item render is in thevisualgate.saga-cleanup.js):planNewestpassescompletefromexternalReferences.saga-dependencies.js,saga-metadata-run.js,saga-generation.js):requestBasis()addsgenerator, the commit of the content checkout. The generate step skips onlya key that a
completedgeneration answered.saga-coverage.js,saga-report.js): aTAKEStable lists what each offertakes.
items.ingredientsbecomesitems.takes, each entry with itsuse.TAKE_ROWSnames theoffer and the field. A row of a saga action carries its
definition, so Auto Run and Repair with AIcorrect that action.
coloronCyberiaSagaand on each workflow candidate, read frompkg.saga.color.sagaColors()resolves by saga code: newest workflow revision, stored record, artifact record,source package. The catalog row carries
color.GET /cyberia-saga/colors;CyberiaSagaService.getColors().SagaCyberiarepaints each[data-saga]badge; the Saga Engine header has a color inputthat saves a new revision. The code hue is
#rrggbb.generationContext()keeps the newest color in a new generation.cyberia:integrationsuites assert the feat(cyberia): add the Saga Engine auto run from seed to a playable world #257 behavior (Final Review state, 409 on asecond publication, fallback renders,
beneath-leviathaninstance codes).Testing
Compatibility and breaking changes
items.ingredientsis nowitems.takes. Coverage row ids arecoverage:<use>:....once more for a saga that a stored request already answered.
Operational and deployment impact
GET /cyberia-saga/colors.CyberiaSaga.coloris an optional field. No migration.engine-cyberiaCIgreen.
node bin run template-deploy sync-engine-cyberiafrommaster, after the merge, onrequest.
npm packfails again whilesharpis both a catalog pin andan override.
Acceptance criteria
npm packpasses with thesharpoverride.cyberia:integrationpasses with mongod.saga.color.CI | Pull request protocolandCI | Coverallpass;engine-cyberiaCI passes after the merge.