From 6ad5ca5eb64b691ab10b68c4ab139a54474f905a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 2 May 2026 09:43:35 +0100 Subject: [PATCH] Align item manifests with economy schema --- .../technology-item-manifest-plan.md | 140 +++++++++++++++++- docs/architecture/training-plan.md | 38 ++++- notes/fresh-workspace-handoff.md | 12 ++ notes/ghostlight-current-system-map.md | 16 +- notes/ghostlight-implementation-plan.md | 12 ++ state/evidence.jsonl | 1 + state/map.yaml | 4 +- 7 files changed, 206 insertions(+), 17 deletions(-) diff --git a/docs/architecture/technology-item-manifest-plan.md b/docs/architecture/technology-item-manifest-plan.md index 57c3940..8afd13b 100644 --- a/docs/architecture/technology-item-manifest-plan.md +++ b/docs/architecture/technology-item-manifest-plan.md @@ -23,6 +23,94 @@ violence, trade, survival, logistics, or prestige. Ghostlight should turn worldbuilding exploration into the data needed to support that design. +## Economy Schema Target + +Ghostlight should target the existing Aetheria-Economy item model instead of +inventing a parallel item taxonomy. + +The concrete source is: + +- `E:\Projects\Aetheria-Economy\Assets\Scripts\ServerShared\ItemData.cs` +- `E:\Projects\Aetheria-Economy\Assets\Scripts\ServerShared\ItemInstance.cs` +- `E:\Projects\Aetheria-Economy\Assets\Scripts\ServerShared\CultCache\` + +The important split: + +- `ItemData` and subclasses are CultCache-backed technological blueprint + records: a way of constructing a thing in the game, including the parameters, + behaviors, stat curves, and category fields that make that construction + meaningful. +- `ItemInstance` and subclasses are runtime objects that link to definition + records and represent manufactured artifacts in the world. +- Ghostlight item manifests should normally propose blueprint/data records, not + individual runtime artifacts. +- Runtime instances belong in simulation, inventory, scene state, cargo, loot, + and world-state fixtures. They are where realized quality, supply-chain + provenance, manufacturer branding, and assembly history can make two items + built from the same blueprint differ in practice. + +Blueprint classes currently relevant to Ghostlight: + +- `SimpleCommodityData` + - basic fungible resources such as steel, hydrogen, volatiles, or feedstock + - maps to `SimpleCommodity` runtime instances with quantity +- `CompoundCommodityData` + - technological blueprints for crafted commodities, assemblies, + subassemblies, processed materials, and other manufactured economic units + - maps to `CompoundCommodity` runtime instances whose quality and provenance + can affect downstream items +- `ConsumableItemData` + - usable consumables with behaviors, duration, stackability, icon, and + effectiveness curve + - maps to `ConsumableItem` runtime instances +- `GearData` + - technological blueprints for usable equippable items with hardpoint, + behavior, durability, thermal, audio, schematic, and action-bar fields + - maps through `EquippableItem` runtime instances whose realized quality, + provenance, manufacturer, and installed assembly lineage can alter actual + performance +- `WeaponItemData`, `HullData`, `CargoBayData`, `DockingBayData`, and other + `EquippableItemData` subclasses are specialized top-level usable item + definitions. + +Manifest artifacts should therefore use Ghostlight's conceptual decomposition to +produce reviewed candidate technological blueprints for Aetheria-Economy data +classes: + +```text +material/feedstock -> SimpleCommodityData +component/subassembly/assembly -> CompoundCommodityData +consumable usable item -> ConsumableItemData +equippable usable item -> GearData or another EquippableItemData subclass +weapon -> WeaponItemData +hull/frame/cargo/docking item -> HullData, CargoBayData, DockingBayData, etc. +runtime cargo or inventory -> SimpleCommodity, CompoundCommodity, + ConsumableItem, or EquippableItem instances +``` + +The conceptual layers below are still useful. They describe how Ghostlight +breaks a technology into reviewable engineering, logistics, and gameplay pieces. +They are not a replacement database schema. The output should be able to say +which Aetheria-Economy blueprint class each candidate wants to become, what +fields are source-backed, what fields are inferred, and which fields require +new engine schema before they can be loaded. + +`PerformanceStat` is the core bridge from blueprint to realized item behavior. +Blueprint data defines stat ranges and quality sensitivity; runtime instances +and equipped/active contexts determine actual evaluation through quality, +durability, heat, effectiveness, and modifiers. Ghostlight manifests should +therefore preserve the difference between: + +- blueprint-level performance intent +- assembly or subassembly contribution to quality and stat behavior +- realized instance provenance and manufacturer branding +- in-world operating conditions that change evaluated performance + +If a Ghostlight manifest needs fields Aetheria-Economy does not currently store, +mark them as manifest-side metadata or source gaps. Do not pretend CultCache +already has slots for every nice idea. The future can have organs; today it has +classes. + ## Nebulous Technology Elaboration Aetheria already has plenty of named technologies. Many of them are currently @@ -91,7 +179,9 @@ Every explored technology or item family should be able to answer: ## Manifest Object Types -Use these object layers when producing tech data: +Use these object layers when producing tech data. Each layer must also declare +its intended Aetheria-Economy target class or state that it is manifest metadata +only: - `item_family` - `item_variant` @@ -129,9 +219,17 @@ A `component` is the smallest useful gameplay/logistics unit worth tracking. Do not split screws unless screws are the point of the quest. The machine has standards. Barely. -A `blueprint` is a craftable or manufacturable recipe-like record. It should be -specific enough for a game system to evaluate whether a faction, factory, ship, -or player can build the item. +A `blueprint` is the technological construction record represented by the +appropriate Aetheria-Economy `*Data` class. It should be specific enough for a +game system to evaluate whether a faction, factory, ship, or player can build +the item, and how sub-assemblies affect performance through quality-sensitive +stats and behavior parameters. + +Ghostlight manifests still need explicit assembly trees, compatibility rules, +supply-chain dependencies, and manufacturing gates. If the current engine schema +does not expose those fields directly, keep them as manifest metadata or +engine-schema gaps attached to the target `*Data` blueprint rather than +pretending they are separate from the blueprint concept. A `tech_prerequisite` is a required discovery, process, standard, license, facility, or expertise gate. @@ -347,10 +445,12 @@ These artifacts train: ## First Schema Target -The next concrete schema after coordinator artifacts should be a manifest seam: +The next concrete schema after coordinator artifacts should be a manifest seam +that maps directly onto Aetheria-Economy's technological blueprint classes: - `schemas/item-manifest.schema.json` -- `schemas/item-blueprint.schema.json` +- `schemas/item-blueprint-candidate.schema.json` +- `schemas/item-instance-provenance-candidate.schema.json` - `examples/item-manifest/pre-elysium-starting-tech.template.json` - `examples/item-manifest/future-branch-innovation.template.json` - `examples/item-manifest/super-planckian-emitter.candidate.json` @@ -362,9 +462,16 @@ Minimum fields: - fixture lane - branch lineage, if any - source refs +- source-backed facts +- inferred engineering +- open lore gaps - item family or technology id - object layer -- blueprint ids +- target Aetheria-Economy class +- target blueprint id, when updating an existing record +- candidate blueprint fields +- blueprint candidate ids +- instance provenance fields, when simulating manufactured artifacts - parent assembly refs - child component refs - materials/process/tooling/facility refs @@ -377,8 +484,27 @@ Minimum fields: - gameplay effects - economic consequences - quest hooks +- engine-schema gaps - review status +Candidate blueprint fields should be shaped around existing data classes first: + +- shared `ItemData` blueprint fields: `Name`, `Description`, `Manufacturer`, + `Mass`, `Shape`, + `SpecificHeat`, `Conductivity`, `Price` +- `SimpleCommodityData`: `MaxStack`, `Category` +- `CompoundCommodityData`: `DemandProfile`, `Category` +- `ConsumableItemData`: `Behaviors`, `Stackable`, `Duration`, `Icon`, + `Effectiveness` +- `EquippableItemData` and subclasses: `Schematic`, `Behaviors`, `Durability`, + temperature fields, heat performance curve, resilience, icons, sound data, + `HardpointType`, and subclass-specific fields such as weapon range, caliber, + fire type, hull hardpoints, cargo interiors, or docking size + +Ghostlight may propose additional manifest fields, but validators should label +them as metadata, engine-gap, or rejected. Do not silently smuggle non-engine +fields into supposed CultCache records. + ## Data Generation Policy During worldbuilding exploration: diff --git a/docs/architecture/training-plan.md b/docs/architecture/training-plan.md index 04abe8b..2308cbc 100644 --- a/docs/architecture/training-plan.md +++ b/docs/architecture/training-plan.md @@ -60,7 +60,13 @@ rails, or injections when appropriate. Future exploration must also emit technology and item knowledge when a branch discovers or changes material capability. See -`docs/architecture/technology-item-manifest-plan.md` for the manifest seam. +`docs/architecture/technology-item-manifest-plan.md` for the manifest seam. That +seam targets the existing Aetheria-Economy CultCache model: Ghostlight proposes +reviewed candidate `ItemData` technological blueprints such as +`SimpleCommodityData`, `CompoundCommodityData`, `ConsumableItemData`, `GearData`, +and specialized `EquippableItemData` subclasses, while runtime `ItemInstance` +objects belong to scene, inventory, cargo, provenance, branding, and world-state +simulation. ## Runtime Stack @@ -792,6 +798,9 @@ Current implementation: - not built yet - architecture plan exists in `docs/architecture/technology-item-manifest-plan.md` +- concrete target schema exists in Aetheria-Economy as CultCache-backed + `ItemData` technological blueprint classes and linked `ItemInstance` runtime + classes Inputs: @@ -805,14 +814,24 @@ Inputs: - existing item manifests - pre-Elysium starting tech refs - post-Rupture concept constraints +- existing Aetheria-Economy item definitions, categories, behavior data, + hardpoint types, and known engine schema gaps Outputs: -- item family records -- item variant records -- blueprint candidate records -- assembly and subassembly records -- component and material records +- candidate Aetheria-Economy technological blueprint records +- `SimpleCommodityData` candidates for fungible resources and feedstock +- `CompoundCommodityData` candidates for assemblies, subassemblies, + components, processed materials, and manufactured economic units +- `ConsumableItemData` candidates for usable consumables +- `GearData` or other `EquippableItemData` subclass candidates for usable + equipment, ship systems, hulls, cargo structures, docking systems, and weapons +- assembly-tree, recipe, compatibility, and supply-chain metadata attached to + the target blueprint record +- instance-provenance candidates when simulating manufactured artifacts, + including realized quality, supply-chain lineage, manufacturer branding, and + subassembly contributions to performance +- item family and item variant records as manifest metadata - process, tooling, expertise, and facility records - compatibility and upgrade-slot rules - faction/manufacturer access records @@ -823,6 +842,8 @@ Outputs: - quest hooks - rejected unsupported item designs - source-gap records for named tech that lacks actionable blueprint detail +- engine-schema gap records when a useful manifest concept has no CultCache + field yet Training architecture: @@ -844,10 +865,15 @@ Training artifacts: - economic consequence records - rejected item designs with failure labels - nebulous-tech elaboration records with inferred/source/gap fields +- instance-provenance records for manufactured artifacts when a scene or branch + needs realized supply-chain history, not just a blueprint First training gate: - item manifest schema and validator exist +- validator checks target Aetheria-Economy blueprint class, source-backed + fields, inferred fields, metadata-only fields, instance-provenance fields, and + engine-schema gaps - 100 reviewed item/component/assembly records - 50 faction tech-base records across pre-Elysium and future branches - 50 rejected/invalid item examples with clear failure labels diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 4de0b01..75d86ca 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -193,6 +193,18 @@ Existing named but nebulous technologies should be elaborated into blueprint candidates during the same process. Separate source facts, inferred engineering, and open lore gaps so item database candidates do not pretend the timeline already answered every manufacturing question. +The concrete schema target already exists in Aetheria-Economy: CultCache-backed +`ItemData` subclasses are technological blueprint records. `SimpleCommodityData` +defines fungible resources, `CompoundCommodityData` defines assemblies, +subassemblies, components, processed materials, and crafted economic units, +`ConsumableItemData` defines usable consumables, and `GearData` plus other +`EquippableItemData` subclasses define top-level usable gear. Runtime +`ItemInstance` objects carry realized quality, provenance, manufacturer +branding, assembly history, and world-state placement. Ghostlight should attach +recipes, assembly trees, compatibility, tooling, facilities, process +requirements, and supply-chain dependencies to the relevant blueprint as +manifest metadata or engine-schema gaps until Aetheria-Economy exposes explicit +storage for those details. The evaluation follow-up fixed the immediate v0 schema issues: diff --git a/notes/ghostlight-current-system-map.md b/notes/ghostlight-current-system-map.md index efdee68..3213687 100644 --- a/notes/ghostlight-current-system-map.md +++ b/notes/ghostlight-current-system-map.md @@ -93,7 +93,9 @@ state and re-entry discipline. - plan for turning coordinator-led Aetheria exploration into game-usable item, component, assembly, faction tech-base, prerequisite, supply-chain, and upgrade-path data, including elaboration of existing nebulous named - technologies into blueprint candidates + technologies into blueprint candidates; now explicitly targets the + Aetheria-Economy CultCache `ItemData` technological blueprint classes + instead of a parallel Ghostlight item database - `docs/architecture/aetheria-cold-wake-training-fixture.md` - human-facing note that reframes the recovered Cold Wake scenario as historical projection feedstock rather than the active product target @@ -315,5 +317,13 @@ timeline into equal-probability soup. The technology/item manifest plan now requires exploration to emit item families, variants, assemblies, subassemblies, components, materials, faction tech-base access, prerequisites, bottlenecks, compatibility rules, supply-chain consequences, and quest hooks for -both pre-Elysium starting tech and post-Rupture innovations. Do not materialize -another capture until it has no failure or repair notes. +both pre-Elysium starting tech and post-Rupture innovations, mapped onto +Aetheria-Economy's existing CultCache technological blueprint classes: +`SimpleCommodityData`, `CompoundCommodityData`, `ConsumableItemData`, `GearData`, +and other `EquippableItemData` subclasses. Runtime `ItemInstance` classes remain +simulation, inventory, cargo, provenance, branding, and world-state objects. +Recipes, assembly trees, compatibility rules, tooling, facilities, process +requirements, and supply-chain dependencies are blueprint metadata or +engine-schema gaps attached to the relevant `*Data` class until the economy code +has explicit storage for them. Do not materialize another capture until it has +no failure or repair notes. diff --git a/notes/ghostlight-implementation-plan.md b/notes/ghostlight-implementation-plan.md index 2f05d6d..bafd0ae 100644 --- a/notes/ghostlight-implementation-plan.md +++ b/notes/ghostlight-implementation-plan.md @@ -213,6 +213,18 @@ assemblies, subassemblies, components, materials, faction access, prerequisites, bottlenecks, compatibility rules, upgrade slots, economic consequences, and quest hooks. + - Target the existing Aetheria-Economy CultCache item model rather than a + Ghostlight-only taxonomy. Manifest candidates should map conceptual layers + onto `SimpleCommodityData`, `CompoundCommodityData`, `ConsumableItemData`, + `GearData`, and other `EquippableItemData` technological blueprint + classes. Runtime `SimpleCommodity`, `CompoundCommodity`, `ConsumableItem`, + and `EquippableItem` instances belong to inventory/world-state simulation, + carrying realized quality, provenance, manufacturer branding, and assembly + history. + - Treat recipes, assembly trees, upgrade compatibility, tooling, facilities, + process requirements, and supply-chain dependencies as blueprint metadata + or engine-schema gaps attached to the relevant `*Data` class until + Aetheria-Economy exposes explicit storage for them. - Use the same manifest process to elaborate existing nebulous timeline technologies into blueprint candidates. Named tech like a super-Planckian emitter should be decomposed into candidate assemblies, diff --git a/state/evidence.jsonl b/state/evidence.jsonl index cdf01d8..35327f8 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -55,3 +55,4 @@ {"ts": "2026-05-02T08:21:41+00:00", "type": "architecture", "status": "ok", "note": "Added Elysium branch event constraints: future branches can mark events as branch_attractor, fated_event, tech_order_constraint, quest_injection, or branch_local_event so likely faction births, authored rails, technology discovery order, and quest injection are explicit runtime/training signals rather than hidden prose."} {"ts": "2026-05-02T08:31:00+00:00", "type": "architecture", "status": "ok", "note": "Added technology/item manifest plan: coordinator-led Aetheria exploration must emit game-usable item families, variants, assemblies, subassemblies, components, faction tech bases, prerequisites, bottlenecks, compatibility rules, supply-chain consequences, upgrade paths, and quest hooks for both pre-Elysium starting tech and branch-local post-Rupture innovations."} {"ts": "2026-05-02T08:33:46+00:00", "type": "architecture", "status": "ok", "note": "Extended technology/item manifest plan to explicitly elaborate existing nebulous Aetheria timeline technologies into blueprint candidates. Manifest candidates must separate source facts, inferred engineering, and open lore gaps while decomposing tech into assemblies, subassemblies, components, materials, processes, tooling, facilities, quality tiers, failure modes, supply chains, and gameplay hooks."} +{"ts": "2026-05-02T08:42:58+00:00", "type": "research", "status": "ok", "note": "Aetheria-Economy already provides the concrete item schema target: CultCache-backed ItemData subclasses are technological blueprints (SimpleCommodityData, CompoundCommodityData, ConsumableItemData, GearData/EquippableItemData), while ItemInstance subclasses represent realized runtime artifacts carrying quality/provenance/branding/world state. Ghostlight item manifests should map onto that model, with assembly trees, recipes, compatibility, tooling, facilities, process requirements, and supply-chain dependencies recorded as blueprint metadata or engine-schema gaps until the economy code exposes explicit storage."} diff --git a/state/map.yaml b/state/map.yaml index 8c451bd..0f9a92b 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -153,7 +153,9 @@ accepted_design: - Elysium-born factions and institutions can emerge as pressure-born attractors, authored/fated events, quest injections, or branch-local developments; technology discovery order and quest prerequisites are runtime constraints, not flavor text. - Future exploration should discover the Elysium technology landscape by simulating capable major-player decisions, while emitting manifests for branch-local innovations and pre-Elysium starting tech asymmetries across factions. - Item blueprint candidates should decompose technologies into assemblies, subassemblies, components, materials, processes, tooling, facilities, quality tiers, failure modes, supply-chain dependencies, and gameplay hooks. + - Ghostlight item manifests should target Aetheria-Economy's existing CultCache item model: `SimpleCommodityData`, `CompoundCommodityData`, `ConsumableItemData`, `GearData`, and other `EquippableItemData` subclasses are technological blueprint classes, while runtime `ItemInstance` classes carry realized quality, provenance, manufacturer branding, assembly history, and world-state placement. + - Assembly trees, recipes, upgrade compatibility, tooling, facilities, process requirements, and supply-chain dependencies should attach to the relevant Aetheria-Economy blueprint as manifest metadata or engine-schema gaps until the economy code exposes explicit storage for them. current_status: - summary: Ghostlight now has the Epiphany-style persistence spine, the first architecture payload, the v0 canonical agent-state schema seam, prompt projection docs, immediate schema fixes from evaluation, first reviewed Cat/Oz projection examples, a revised Aetheria lore-grounding architecture, a lore grounding digest schema, the first draft Cold Wake historical grounding digest, a Cold Wake story-lab fixture, projection controls, validated Qwen capture receipts, a complete Cold Wake short story assembled from accepted projection outputs, a hand-authored Ink-backed Cold Wake branching scene, the first Qwen-generated Ink draft materialized from local awareness with reviewed training annotations, the first reviewed sequential branch mutation that updates both Maer and Sella after a sanctuary intake beat, a v2 sequential Qwen capture proving the symmetrical turn shape produces better action behavior, a v5 sequential Qwen capture proving local thinking-plus-tools invocation works for the scene runner, the first projected-local-context seam that routes sequential prompts through character-local operating prose instead of raw state variables, tightened receipt handling for projector-routed Qwen failures, a default no-thinking policy for strict sequential tool calls, a v10 no-thinking projector-routed capture accepted as draft, the first materialized projector-routed sequential Ink scene with reviewed mutation training data, a source-checked embodiment/interface projection surface for Navigator scenes, a formal source-first Aetheria generation doctrine, v11-v17 source-checked retry receipts showing improved Maer embodiment plus remaining Sella response/prompt-leak blockers, a soft-model training artifact doctrine, a concrete training plan, an explicit future-branch lane, Elysium branch event constraints, and a technology/item manifest plan for turning nebulous named tech into blueprint-grade components, assemblies, faction tech bases, supply chains, upgrade paths, and gameplay hooks. + summary: Ghostlight now has the Epiphany-style persistence spine, the first architecture payload, the v0 canonical agent-state schema seam, prompt projection docs, immediate schema fixes from evaluation, first reviewed Cat/Oz projection examples, a revised Aetheria lore-grounding architecture, a lore grounding digest schema, the first draft Cold Wake historical grounding digest, a Cold Wake story-lab fixture, projection controls, validated Qwen capture receipts, a complete Cold Wake short story assembled from accepted projection outputs, a hand-authored Ink-backed Cold Wake branching scene, the first Qwen-generated Ink draft materialized from local awareness with reviewed training annotations, the first reviewed sequential branch mutation that updates both Maer and Sella after a sanctuary intake beat, a v2 sequential Qwen capture proving the symmetrical turn shape produces better action behavior, a v5 sequential Qwen capture proving local thinking-plus-tools invocation works for the scene runner, the first projected-local-context seam that routes sequential prompts through character-local operating prose instead of raw state variables, tightened receipt handling for projector-routed Qwen failures, a default no-thinking policy for strict sequential tool calls, a v10 no-thinking projector-routed capture accepted as draft, the first materialized projector-routed sequential Ink scene with reviewed mutation training data, a source-checked embodiment/interface projection surface for Navigator scenes, a formal source-first Aetheria generation doctrine, v11-v17 source-checked retry receipts showing improved Maer embodiment plus remaining Sella response/prompt-leak blockers, a soft-model training artifact doctrine, a concrete training plan, an explicit future-branch lane, Elysium branch event constraints, and a technology/item manifest plan for turning nebulous named tech into blueprint-grade components, assemblies, faction tech bases, supply chains, upgrade paths, and gameplay hooks mapped onto Aetheria-Economy's CultCache blueprint and instance model. next_action: Define the coordinator artifact schema so future story passes capture next-beat choice, glue prose, world-state refs, branch flags, unresolved hooks, and machinery invocations as trainable data, then return to the Sella prompt/rendering fix.