Merge master (fire control 12) into codex/moddable-ships
This commit is contained in:
commit
18e12d81ce
37 changed files with 4947 additions and 395 deletions
|
|
@ -2601,6 +2601,102 @@ the lanes that reach it, a pool of one lane included. The survey and the sequent
|
|||
|
||||
### Cut 12.4. The detonation primitive
|
||||
|
||||
**Status (2026-09-29, Self): closed.** 12.4 landed at `2625768f`, `7c99909d` and `7e63d744`.
|
||||
|
||||
Soul pass 1 (Opus) found three defects:
|
||||
- **F1:** a tangent disc created damage, 127 of 100.
|
||||
- **F2:** a candidate cull measured from the centre of mass missed hull corners.
|
||||
- **F3:** a lethal blast threw mid-loop and detonated again.
|
||||
|
||||
It also found four rules pinned only by tests that could not fail.
|
||||
|
||||
The fixes landed at `8b4bf01e`, `76e98598` and `fd792013`:
|
||||
- the tangent comparisons now include equality;
|
||||
- the cull and the `radius <= 0` guard are deleted, so `RectDiskOverlap` is the only decider;
|
||||
- the blast loop iterates a snapshot.
|
||||
|
||||
Soul pass 2 closed it. Conservation held over 1,944 exact-lattice discs, with a worst error
|
||||
of 2e-5. A blast costs 0.3-0.7 ms in a zone of 40-100 entities.
|
||||
|
||||
Pins landed at `4629bc67` and `c7e20f08`. `Death` fires once per entity (`Entity.cs`, `.Take(1)`),
|
||||
which also fixed a direct hit on a corpse raising `Death` again. A three-kill blast test was added.
|
||||
362 tests pass.
|
||||
|
||||
**Ruled (operator, 2026-09-30): "fused weapons without a lock explode at max range."** This is no longer
|
||||
open. Landed at `8c002637` (fix) and `3e8ee022` (tests), and Soul confirmed it. That Soul pass raised four
|
||||
follow-up rulings, all given on 2026-09-30:
|
||||
- **The aim is `LookDirection`, restricted by the mount's arc.** The operator notes this was already the case;
|
||||
the fix had used the hull-fixed mount.
|
||||
- **An invalid target counts as no lock.** A target that is selected but out of range, out of arc, not
|
||||
visible, or not locked takes the no-lock path. Nothing bursts beyond max range.
|
||||
- **A no-lock round of any fuse stops on the first hull on its aim line**, computed at commit, and detonates
|
||||
there. This covers contact, proximity and delayed fuses (operator, 2026-09-30, extending the contact-only
|
||||
ruling). A round fired along a clear line still bursts at max range (bomb fishing). Mining adds chunks to
|
||||
this through a named seam.
|
||||
- **Airburst follows player intent (operator, 2026-09-30):** "If I don't have targeting data but decide
|
||||
to shoot anyway, my intent is likely to be bomb fishing. If I fire with a target but that target warps
|
||||
away, I likely to not want to explode whatever was behind it, and the projectile shouldn't burst."
|
||||
- A round fired without valid targeting data bursts at max range.
|
||||
- A round fired at a valid target that later leaves or becomes invalid does not burst. It resolves
|
||||
with no detonation.
|
||||
- Validity is judged on the targeting data at fire time.
|
||||
- **Out of arc (operator, 2026-09-30):** a fused weapon whose selected target is out of arc still fires
|
||||
(bomb fishing). It bursts at the target's range, clamped to max range, along the arc-clamped aim.
|
||||
Non-fused weapons refuse.
|
||||
- **Arming distance (operator, 2026-09-30; refined the same day):** it is literal. A round never bursts
|
||||
closer than `BlastRadius` to the ship's centre at fire time (`FireOrigin`), whatever the hull size or the
|
||||
aim. Close bursts are pushed out to that distance, and fire is refused when `Range < BlastRadius`. A large
|
||||
hull can take splash from its own close bursts, and that is accepted.
|
||||
- **Demoted rounds keep their target (operator, 2026-09-30):** a round fired at a valid target closer than
|
||||
the blast radius flies to the arming point but stays targeted. If the target leaves before resolution,
|
||||
the round does not burst. A pilot who flies into their own distant burst
|
||||
takes the damage. Fire is refused when the live Range cannot clear BlastRadius.
|
||||
- **Turret arc ownership (operator, 2026-09-30):** the simulation's arc is authoritative, and Unity barrels
|
||||
derive their aim from it. The true owner of an arc is the **pivot**, not the hardpoint. The arc stays on
|
||||
the hardpoint until the moddable-ships campaign adds pivots to `HullData`. Until then, a pivot carrying
|
||||
several hardpoints turns within the **intersection** of their arcs.
|
||||
- **AI and turrets (operator, 2026-09-30):** each weapon decides for itself, not the group's first weapon.
|
||||
A fused weapon fires whenever its target is designated (visible, in range, locked), whatever the arc. A
|
||||
non-fused weapon keeps the hit-chance threshold. The AI never fires at nothing, so AI does not bomb-fish.
|
||||
- **HUD forecast (operator, 2026-09-30):** for a fused weapon, the forecast shows the outcome (Direct, Burst
|
||||
at N m, Refused). `Fire` and `Inspect` compute it with the same helper. Direct-hit weapons keep the
|
||||
percentage.
|
||||
- **A refused round is free (operator, 2026-09-30):** it spends no ammo or energy, and makes no sound, heat,
|
||||
wear or visibility. **It does not start the cooldown either** (operator, same day: "triggering cooldown on
|
||||
refusal would be mostly neutral but punishing for long cooldown weapons, worth the code to fix").
|
||||
- **Batch 5 Soul pass, 2026-09-30: fix first.** `Solve` is the one decision, and `Fire`, `Inspect` and
|
||||
`Refuses` all read it. Findings in fix batch 6 (Hands, `hands/fuse-fix2`):
|
||||
- Contact and delayed rounds detonate on the hull and ignore the arming push-out.
|
||||
- A refused beam blinks start and stop.
|
||||
- A throwing damage observer re-applies a blast every tick.
|
||||
- The AI selects refused fused weapons.
|
||||
- A single-ammo burst pays, then refuses.
|
||||
- The guided projectile's overshoot explosion ignores the simulation.
|
||||
- Two copies of the range and designation predicates remain.
|
||||
|
||||
An out-of-arc round with a selected target bursts after that target leaves. That is ruled behaviour: an
|
||||
out-of-arc target is invalid, so the round takes the no-lock path.
|
||||
- **Landed, 2026-09-29: batches 5-8 merged at `06001b57`.** 476 tests pass on the merged tree, after Soul
|
||||
passes 5-7. Recorded follow-ups:
|
||||
- The push-out follows the flight line, not the ray to the hull point.
|
||||
- The HUD's burst range is an upper bound when a no-lock round stops at an earlier hull.
|
||||
- The first-hull stop reads poses at fire time.
|
||||
- A burst whose first round fails its energy or ammo spend retries every tick, bounded by capacitor refill.
|
||||
- The first-round cooldown divides by `Cooldown` even when the magazine empties (a reload quirk that
|
||||
predates this work).
|
||||
- **A round outlives its shooter,** for targeted and no-lock shots alike. Credit and loot with no shooter go
|
||||
nowhere.
|
||||
|
||||
Soul also found two more defects:
|
||||
- A fused weapon with `Range <= BlastRadius` bursts on its shooter. The fix is to refuse it when the catalog
|
||||
opens.
|
||||
- A burst without a target reads as MISS in the debug HUD.
|
||||
|
||||
Fix batch 2 covers all six, in Hands on `hands/fuse-fix2`. The stale lines about "`BurstPosition` is read
|
||||
only for a proximity fuse" and the Apply rules below it are superseded by these rulings.
|
||||
Recorded unguarded: if a `Death` handler removes another ship mid-blast, that ship
|
||||
still takes blast damage.
|
||||
|
||||
Revised 2026-09-25, after 12.3 closed. The first draft predates 12.3's proportional-absorption and one-path
|
||||
rulings, and the parts of it those rulings overturn are listed under **History** at the end of this section.
|
||||
Anchors are against `d402283c`. **(probe)** marks claims measured in a scratch worktree at that commit (see
|
||||
|
|
|
|||
172
docs/merge-to-master-checklist.md
Normal file
172
docs/merge-to-master-checklist.md
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
# Aetheria merge checklist: `codex/fire-control-12` into `master`
|
||||
|
||||
Compiled 2026-09-29 by Eyes from the maps on the branch. Pointers are `doc:line` in `docs/` at the branch tip. "Unrecorded" means the maps do not say the check was done.
|
||||
|
||||
**What merging does.** `origin/master..codex/fire-control-12` is 257 commits. It carries the item-provenance work after 2026-09-17, stats-and-power (resolver, power bus, input capacitors, priority tiers, power-supply term and brownout, nominal requests, condition ratio, shield reserve, authored roles), fire-control Cuts 1-12.4(b), locomotion Cut 1 (restored hulls), the shield-panel interceptor, and the Addressables cuts. Self performs the git merge after you sign off. Nothing here is for the merge itself; it is what only you can check first.
|
||||
|
||||
**Correction to the brief.** `codex/cultcache-cutover`, `codex/aetheria-state-rebuild` and `codex/item-provenance` are all ancestors of the branch tip, and the first two are already on `origin/master`. Master's merge commit `9b85211f` (2026-09-17) took cultcache-cutover and item-provenance at their 09-17 tips, after your play smoke passed (`cultcache-migration-cut.md:148`). Master has two commits the branch lacks (`9b85211f`, `263ac421`, which deletes dead narrative fixtures). `git merge-tree` of the two showed no conflicts. No `aetheria-state-rebuild` doc exists.
|
||||
|
||||
## 1. Before you start
|
||||
|
||||
- Open branch `codex/fire-control-12` at its tip, `4b594e116c4063ef5ee1dcb937bab0288008e63e` (2026-09-26, in sync with `origin/codex/fire-control-12`).
|
||||
- Unity `6000.3.24f1` (`ProjectSettings/ProjectVersion.txt`).
|
||||
- Batchmode: `tasklist` on 2026-09-29 showed Unity Hub and the licensing client but no `Unity.exe`, so none was running. Batchmode refuses an open editor and the maps say to close it and not kill anything (`item-provenance-cut.md:485,519`). Recheck when you start.
|
||||
- The Unity manifest pins `cultmath-unity-v0.2.4` (`Packages/manifest.json`); the tag exists in CultLib. Unity needs network access to resolve it on first open (`fire-control-cut.md:2205-2212`).
|
||||
- **Delete or move `GameData/run.cc` and `GameData/player.cc` before the first launch.** Both are git-ignored and stale (2026-09-22, 91,580 and 1,964 bytes). The maps' fresh-launch checks assume neither exists (`cultcache-migration-cut.md:2745`), and an old run store throws on the first lot lookup (`item-provenance-cut.md:595-596`). The persisted shape has changed since (power tier slot, fuse slot 32).
|
||||
|
||||
**Your uncommitted work.** The merge happens in a separate worktree and does not touch it. `git status` lists 22 modified tracked files and 3 untracked. `git diff --stat` shows content changes in only 9; I infer the other 13 (materials, render textures) differ by line endings, from the LF/CRLF warnings.
|
||||
- Content changes: `Asset Sources/Adrasteia1.blend`, `Car Paint White.mat`, `Steel.mat`, `Map Gravity Lines.mat`, `Minimap Gravity Lines.mat`, `LiberationSans SDF - Fallback.asset`, `Assets/Scenes/ARPG.unity` (+374), `Assets/Scenes/FieldShieldTest.unity` (+263), `Assets/Scripts/AetheriaInput.cs` (+40).
|
||||
- Line-ending-only (inferred): the other Map/Sector `.mat` files, 8 `.renderTexture` files, `Stardust.mat`.
|
||||
- Untracked: `Asset Sources/Adrasteia1_ContourRoute.blend`, `Ships.blend`, `adra1.png`.
|
||||
- **Decide about three that belong to merged campaigns (my reading of the diffs):**
|
||||
- `AetheriaInput.cs` (+40) adds the `Cycle Target Item` action (key J). The branch already has that action in `Assets/Resources/Aetheria.inputactions:72,326` and reads it in `ActionGameManager.cs:412`, but not in the generated wrapper. It is the wrapper catching up to committed data. Recommend including it.
|
||||
- `FieldShieldTest.unity` (+263) adds `ShieldInterceptor`, `ShieldEnvelope`, a `Panel` with `Prototype` and `ShieldPanel`. This is the shield-panel Cut 4 rig you clicked together (`shield-panel-cut.md:840-846`). It is not on the branch. Without it the interceptor code merges with no rig.
|
||||
- `ARPG.unity` (+374) adds "Debug Info Panel" and "Debug Info Text". `ActionGameManager.DebugInfoText` (`ActionGameManager.cs:151,1287,1333`) is the fire-control debug HUD and it returns early when null. Without the scene change the HUD "hull" factor in step 10 is invisible.
|
||||
|
||||
## 2. One play session, in order
|
||||
|
||||
### 2a. Fixtures to author first
|
||||
|
||||
1. **Scratch catalog for 12.4.** Copy the catalog; do not edit `GameData/Aetheria.cc`. Author one weapon with `Fuse = Proximity` and a `BlastRadius`, and one with `Fuse = Delayed`, a `BlastRadius` and a penetration of about 2 cells (`fire-control-cut.md:3094,2656-2658`). Shipped penetration is at most 0.25 and enclosed cockpits need about 2 cells, so a penetrator authored from shipped values cannot reach the interior (`:3224-3225`). Fields are `aetheria.weaponitemdata` slot 29 (`BlastRadius`) and slot 32 (`Fuse`). Unrecorded: how to point the game at the scratch catalog, and which tool you author with (the map says only "Studio or `AetherDb`", `:2665`).
|
||||
2. **Studio open, no game running.** You need it at 2c and 2d. Batchmode-based checks are the agent's, not yours.
|
||||
|
||||
### 2b. Fresh launch (no `run.cc`, no `player.cc`)
|
||||
|
||||
3. **Launch to main menu.** Expect no Addressables errors, and the Groups window shows `Assets/Content` under `Default Local Group` (`addressables-cut.md:301`). `player.cc` appears and Continue is disabled (`cultcache-migration-cut.md:2746`). Proves: Addressables Cut 1, CultCache cutover. The 09-17 smoke covered the last two on the old tree; this is a cheap recheck on the new schema.
|
||||
4. **New Game (tutorial).** Expect the galaxy generates and the start ship is LonginusX (`settings-globals-cut.md:498`, an expectation, not a recorded check for this stack). Expect a Zenith station with a docking bay in the entrance zone every time (`locomotion-cut.md:375`). Proves: locomotion Cut 1 station rule.
|
||||
5. **Addressables, "Use Asset Database".** Ships, turret and Zenith spawn; thruster and aether-drive particles show; fire an instant weapon (Autocannon) and a charged one (ChargeBlast SG); action bar icons show (`addressables-cut.md:362-366`). Proves: Addressables Cut 2.
|
||||
|
||||
### 2c. Flight, power and economy
|
||||
|
||||
6. **Provenance in play.** Starting-ship items show tier colour; the properties panel shows Manufacturer, product name and flavour for branded gear. Dock and buy: the brand still shows in cargo. `give Lamp` (any design name): no Manufacturer row. Kill an NPC and pick up loot: brand shown (`item-provenance-cut.md:528-539`). Proves: item-provenance Cut C.
|
||||
7. **Fly a restored hull (Longinus or Djinni).** Thrusters move and turn it (`locomotion-cut.md:501`). Watch the speed cap: `VelocityLimit` is gated by the hull's `Active`, and a hull taken offline with thrusters firing loses the cap (`:377`). It did not happen in 300 s on shipped settings; report if you see runaway speed. Unrecorded: how to spawn a restored hull in play (the map names no path).
|
||||
8. **Weak reactor (O2).** Fly with a reactor too small for the loadout. Expect visible, legible starvation rather than a cooked reactor (`stats-and-power-cut.md:705-706`). Proves: power bus (map Cut 3).
|
||||
9. **Brownout and refill (O6, O4).** Brownout reads as degradation, not breakage (`:774`, `:990`). A weapon refilling under brownout stutters instead of firing full rate and cooking the ship (`:729-730`). Proves: power-supply term, brownout, input capacitors.
|
||||
10. **Memory across zones (O1).** Play across several zones with kills, open the Profiler or Task Manager, and confirm memory does not climb (`:672-673`, `:980-982`). Proves: stat resolver, the entity-leak fix (map Cut 2). Combine with steps 11 and 12.
|
||||
|
||||
### 2d. Combat (against a LonginusX-class AI), then save and Studio
|
||||
|
||||
11. **Fire-control Cut 1 arcs.** Side-mounted weapons still fire at targets abeam; a turret tracks all the way round; nothing fires through the hull (`fire-control-cut.md:397-398`).
|
||||
12. **Fire-control Cut 3 and shots.** Shots show rolled impacts and misses; a miss reads as a near-miss, not a bug; damage matches the HUD; aiming at a revealed subsystem concentrates damage; kill time is in the same order as before (`:659-661`). Reveal and selection work, kills drop loot, pickup stores it, the tractor beam still pulls (`headless-playground-cut.md:789-794`). No crash or frozen hot ship when the target vanishes (the 2026-09-20 failure, `fire-control-cut.md:1464-1470`). Recheck after the fixes: unrecorded.
|
||||
13. **12.2, bow then beam.** The HUD `hull` factor reads higher from the beam. Turn your armoured face into a slow missile and watch where it lands (`:2380-2383`).
|
||||
14. **12.3, launcher into a bow, then a flank.** Use a GT 3K or pswarm launcher. The schematic display pulses the facing edge only (`:2519-2520`).
|
||||
15. **12.4, scratch catalog.** Watch a proximity airburst beside a LonginusX and a delayed penetrator into its nose. Damage must land where the model shows the blast; this confirms the centre-of-mass anchor. Bow is already confirmed +y (`:3095-3097`, `:2028-2031`). Proves: 12.4(b) `Detonate`.
|
||||
16. **Wormhole, save, Continue.** Take a wormhole, quit, Continue: same items, same tier and brand (`item-provenance-cut.md:536-537`).
|
||||
17. **Die.** Continue is disabled and `run.cc` holds no ledger (`:540-541`).
|
||||
18. **Shield panel, `FieldShieldTest`.** Follow the numbered look in `shield-panel-cut.md:683-700`. Nothing visible on load. Click the nose: a patch grows and the field ripple runs too. Click the flank: the panel lies flat, not tilted. Click the same spot twice: it strikes the same panel. Spam far-apart clicks: at most 12 panels, oldest replaced. Let them fade: none left. Then the Cut 5 payoff: strong hits dice the patch, and repeated hits on one spot break through on a later hit (`:737-739`). Proves: shield-panel Cuts 3, 4, 5.
|
||||
19. **Studio click-through.**
|
||||
- Open `Aetheria.cc`. The fire-control behaviour union renders (`fire-control-cut.md:503-506`).
|
||||
- `LonginusX` schematic still underlays the shape drawer (`addressables-cut.md:370-371`).
|
||||
- The restored hull records open (`locomotion-cut.md:501`; the map gives no checklist beyond "the Studio click-through").
|
||||
- The scratch catalog's new `Fuse` and `BlastRadius` fields edit (from 2a; no map line).
|
||||
- Open `GameData/run.cc` after step 16. `aetheria.provenanceledger` renders `Lots` with `Attributed` origins and per-role lists. If Studio cannot draw an int-keyed dictionary of unions, that is a Studio defect to raise, not a schema change (`item-provenance-cut.md:541-544`).
|
||||
20. **Addressables, "Use Existing Build".** Run *Build > New Build > Default Build Script*, then repeat step 5. This proves the player catalog carries GUID keys. Then *Analyze*, "Check Resources to Addressable Duplicate Dependencies", and record the result; 5 known leftovers are expected (`addressables-cut.md:367-370`).
|
||||
|
||||
### 2e. Desk review (not play)
|
||||
|
||||
21. **Role content (O7).** Review `docs/stats-power-cut7-roles.md`. Rows marked "generic, needs review" are arbitrary-seed, not brand identity, and no design yet has a second product with a raised role (`:156`, `:194-202`; `stats-and-power-cut.md:797-799`, `:991`).
|
||||
|
||||
## 3. Feel calls during the session
|
||||
|
||||
Only what the maps name.
|
||||
- **Balance numbers.** `CommitHorizon` (first value 0.3 s), `SchematicCellSize` (0.35) and the targeting stat ranges are first guesses; the smoke is the arbiter (`fire-control-cut.md:664-665`, `:855-859`). `UnaidedAccuracy` is ruled "really, really bad" (`:253-259`); judge whether it reads as a last resort.
|
||||
- **Arc rule (Q2).** Arcs apply to the player as well as the AI. The map says it is a real difficulty change to be felt in the smoke (`:836-841`).
|
||||
- **AI holds fire more** once `pOnHull` prices shots. The map calls that tuning, not broken AI (`:1396-1400`).
|
||||
- **Penetration retune (F12-2)** is a ruled follow-up, "Retuning penetration is a follow up" (`:3223-3229`). The map does not tie it to a smoke. The only link is 2a step 1: shipped penetrators cannot reach interiors, so step 15 needs the scratch value.
|
||||
- **Locomotion Q6, yaw weight (w = 3 recommended).** The map says settle it in the Cut 1 play check (`locomotion-cut.md:372-373`, `:903-904`), but the weight belongs to Cut 3's solver, which has not landed. There is nothing to feel today. Ambiguity, not a merge gate.
|
||||
|
||||
## 4. Already done: do not redo
|
||||
|
||||
- Play smoke for cultcache-cutover plus item-provenance, 2026-09-17: new game, combat, loot, save and Continue with brand and quality intact, death clears the run, stance toggle, `FieldShieldTest` (`cultcache-migration-cut.md:148-153`). It ran on the old tree, so steps 3, 6, 16 and 17 are rechecks, not repeats of a gap.
|
||||
- Studio click-through for the CultCache port, 2026-09-17: AmmoType refs repointed at `515859cf`, `dangling` at 0, schematic underlay restored and checked (`cultcache-migration-cut.md:161-165`).
|
||||
- Bow is +y on the schematic, confirmed 2026-09-22 from the schematic images (`fire-control-cut.md:2028-2029`). The blast-anchor half is still open (step 15).
|
||||
- Shield-panel play evidence, 2026-09-18, rigged scene: a panel spawns, is reused and spiderwebs; it shatters only near the rim (`shield-panel-cut.md:119-124`). Partial: the Cut 5 fixes landed after, so step 18 is still open.
|
||||
- A play smoke on 2026-09-20 found the frozen-ship, no-hits and `LockWeapon` crash (`fire-control-cut.md:1464-1470`). That was a failure report, not a pass. Cuts 8 and 9 answered it and no recheck is recorded.
|
||||
- Stats-and-power Cuts 0-1 landed with Soul verification and your re-author ruling (`stats-and-power-cut.md:79-99` onward). No operator check remains from them.
|
||||
|
||||
## 5. Not part of this merge
|
||||
|
||||
- Stats-and-power tier control in the schematic UI (O5) and the deletion of `IOrderedBehavior`/`SortPosition` (O3): no `PowerTier` under `Assets/Scripts/UI` at the tip, and `SortPosition`/`IOrderedBehavior` still exist in `Reactor.cs`, `Entity.cs` (my grep). `stats-and-power-cut.md:752-753`, `:985-989`.
|
||||
- Stats-and-power UI reconciliation (O8: properties panel, trade menu, schematic HUD, Studio over a stat with terms): the map's Cut 8 has not landed; the branch's "Cut 8" commits are the condition ratio (`:819`, `:991-992`).
|
||||
- Settings-into-globals: only Cut 0 (delete 5 dead assets, `ea8b420e`) landed. Its play smoke and Studio click-through wait for Cut 1 (`settings-globals-cut.md:498-511`). The map header still says nothing landed.
|
||||
- Build delivery: the two commits are the map and a ruling (`build-delivery-cut.md:5`, operator checks `:252,324,360,404`).
|
||||
- Locomotion Cuts 2-5, including Q6 and Q4 (`locomotion-cut.md:360,905`).
|
||||
- `content-batch-one.md` is a spec that writes no catalog data (`:5-8`).
|
||||
- Fire-control follow-ups F12-2 to F12-8 (`fire-control-cut.md:3223-3250`).
|
||||
|
||||
## 6. Open questions still yours
|
||||
|
||||
- **Q12-5 (not ruled):** should the HUD show which target items are exposed from the current bearing? Recommended as a follow-up after 12.3, on the target-item cycling UI (`fire-control-cut.md:1959`, `:3215-3218`).
|
||||
- **Locomotion Q4:** heading versus aim; blocks Cut 5 only (`locomotion-cut.md:905-913`, `:372`).
|
||||
- **Locomotion Q6:** the yaw weight; open, does not block (`:372-373`).
|
||||
- **Defaults Self took in 12.4, which you may overrule** (`fire-control-cut.md:3208-3213`): a blast ignores `DamageSpread` and P sits on the centre lane; `IncomingHit` fires for the host of a contact or delayed hit only; the delayed fuse point clamps to the last reached cell's exit; `Detonate` runs a flat armour, pool, hull pass.
|
||||
- **Stale headers, not open questions:** the fire-control 12.3 "pending ruling" at `:2581` was ruled at `:2588`; Q12-9 is ruled A (`:3171`); the shield-panel Q1-Q7 block (`shield-panel-cut.md:61`, `:800-`) was not updated after Cuts 1-5 landed, Q5 being ruled C (`:839-846`).
|
||||
|
||||
## 7. What happens after you sign off
|
||||
|
||||
- **Self merges `codex/fire-control-12` to `master` with `--no-ff`**, in a separate worktree. That single merge carries item-provenance, the stats-and-power work, fire control and locomotion Cut 1. The cultcache-cutover and item-provenance merge into master already happened on 2026-09-17 (`9b85211f`, `cultcache-migration-cut.md:148`), so the maps' "merge the two together" instruction (`item-provenance-cut.md:82`) is spent. The tree merges clean today.
|
||||
- Any of section 1's three uncommitted files you want included need to be committed to the branch first, or they stay out.
|
||||
- **Soul gates outstanding:**
|
||||
- Fire-control 12.4 Soul passes: running tonight. The 12.4 section carries no "closed" status yet (`fire-control-cut.md:2602`). 12.0-12.3 are closed (`:2168-2210`, `:2253`, `:2385`, `:2522`).
|
||||
- CultMath bounded least squares is locomotion Cut 2, not in this stack (`locomotion-cut.md:508`, `:360`). It gates nothing here.
|
||||
- Unrecorded: a Unity batchmode compile at the tip `4b594e11`. 12.2 and 12.3 record clean compiles at their own heads.
|
||||
- **Soul status at merge time: Self fills in.**
|
||||
|
||||
## 8. Results: play smoke, 2026-09-30 (operator plays, agent records)
|
||||
|
||||
Tree: `codex/fire-control-12` at `113164fa` plus the fixes listed below. `run.cc` and `player.cc` moved to
|
||||
`GameData/stale-2026-09-22/` before launch.
|
||||
|
||||
**Compile.** The Unity 6000.3.24f1 batchmode compile at `113164fa` was clean (exit 0, no `error CS`). The four
|
||||
never-compiled files needed no fix. One warning, `EntityInstance._destroyed` assigned but never read, is legacy
|
||||
(`729ab0e8`).
|
||||
|
||||
**Changes made during the smoke.**
|
||||
- `e0a80208`: `AetheriaInput.cs` regenerated; Cycle Target Item bound through `Input.Player.CycleTargetItem`,
|
||||
retiring the by-name `FindAction` stopgap. Batchmode recompile clean.
|
||||
- `97edf48c`: `ARPG.unity` Debug Info Panel and `FieldShieldTest.unity` shield-panel Cut 4 rig committed.
|
||||
- Console: control characters from text input are no longer appended, and Backspace deletes (see step 6 finding).
|
||||
- `give` (operator ruling 2026-09-30): an unknown name and a full cargo bay now say so instead of doing nothing. A
|
||||
ship hull is refused unless docked; when docked it goes through `ActionGameManager.CommissionShip`, the same
|
||||
primitive `TradeMenu.Buy` now uses, and moors a bare player ship at the docked entity with no docking bay
|
||||
("mothballed ships do not require docking bays"). Non-ship hulls are refused. This is the step 7 path to a
|
||||
restored hull.
|
||||
- Scratch weapons authored in place in `GameData/Aetheria.cc` (not committed; restore with
|
||||
`git checkout -- GameData/Aetheria.cc`): `Smoke Proximity` (Proximity, blast 8), `Smoke Delayed` (Delayed,
|
||||
blast 4, penetration 2 cells), `Smoke Refused` (Proximity, blast 30, range 20). Each is a Spectra clone, energy,
|
||||
1 column by 2 rows, to fit the test ship's only energy hardpoint.
|
||||
|
||||
| Step | Result | Evidence |
|
||||
|---|---|---|
|
||||
| 3 Launch to main menu | pass | Operator reached play through step 6 with no reported Addressables errors. |
|
||||
| 4 New Game | pass | As above. |
|
||||
| 5 Addressables, Use Asset Database | partial | Charged weapon (ChargeBlast SG) unprovable: the test ship's only energy hardpoint is 1x2 and ChargeBlast SG is 2x2. Instant weapon not separately reported. |
|
||||
| 6 Provenance in play | partial | Properties panel correct for starting gear and for a purchased item. **Tier colours missing everywhere**: known defect, `settings-globals-cut.md:150` (Unity-serialised `RarityTier.Color` loads as zero); fixed by settings-globals Cut 1, not part of this merge. `give Lamp` was first refused (console finding), then silently did nothing: `Lamp` is a test-fixture name, absent from the live catalog, and `give` reported no miss (now it does). No-Manufacturer check still open with a real unbranded design. Loot brand not yet reported. |
|
||||
|
||||
**Finding, console (not fire control).** Every console command was refused with "commands take only letters,
|
||||
digits, spaces and hyphens", and Backspace inserted a glyph. Cause: `Keyboard.onTextInput` delivers control
|
||||
characters (`\b`, `\r`), and `ConsoleView` appended them to the input line. Enter's `\r` rode into every command;
|
||||
`d503f076` (2026-09-14, on master) correctly changed the parser from stripping disallowed characters to refusing
|
||||
them, which exposed it. Backspace had never been handled (only Delete), which is legacy (`7006a6b0`).
|
||||
|
||||
**Feel notes.** Engaging an AI Djinni: the player was destroyed decisively. "Game is hard."
|
||||
|
||||
**Finding, ship purchase and docking bays (design gap, not a merge gate).** The intended UX is that a purchased
|
||||
ship is assigned its own docking bay. The code does not do that:
|
||||
- `TradeMenu.Buy` (`TradeMenu.cs:373-381`) creates a bare `Ship` parented to the docked station and assigns it no
|
||||
bay. It also charges `data.Price` rather than the lot's quality price that `GetPrice` computes for other items.
|
||||
- `LoadoutGenerator` equips exactly one docking bay per station (`LoadoutGenerator.cs:84-92`), so Zenith has one.
|
||||
- The inventory panel's Current button (`InventoryPanel.cs:110-120`) sets the new ship as current and overwrites
|
||||
the single bay's `DockedShip`; the previous ship stays a station child with no bay.
|
||||
|
||||
**Smoke stopped after step 6 (operator, 2026-09-30).** The operator rejected the script as a monolithic play order
|
||||
that does not respect how the game works: step 7 alone meant spawning and fitting a whole Djinni by catalog name.
|
||||
Direction: operator checks become a list of behaviours verified over time, each set up by an authored, retained
|
||||
scenario selectable from the main menu (a Eureka cut). Steps 7-20 and handoff checks A-F are unplayed. The operator
|
||||
prefers to merge now, with those as open entries to verify through scenarios; Self rules on the merge.
|
||||
|
||||
**Stale expectations found in this checklist.** Step 6 transcribes `item-provenance-cut.md:529-537` (written
|
||||
2026-09-17 03:38, `7425ff1b`). "Starting-ship items show tier colour" was falsified by that day's smoke and recorded
|
||||
at `settings-globals-cut.md:150` (`db420981`, 17:36); the provenance map was never corrected and this checklist
|
||||
copied it despite its own section 5. "`give Lamp`" names a test fixture (`LoadoutTests.cs:289-312`), never a live
|
||||
catalog design, and `give` could not have run at all between `d503f076` (09-14) and `f935c29b`.
|
||||
674
docs/scenarios-cut.md
Normal file
674
docs/scenarios-cut.md
Normal file
|
|
@ -0,0 +1,674 @@
|
|||
# Scenarios: Cut Map
|
||||
|
||||
Date: 2026-09-30, 02:10 CEST. Imagination pass.
|
||||
|
||||
Status: cut map. Nothing has landed. The target lives in section 0 until Self splits it out into
|
||||
`docs/scenarios-target.md`; this document owns the means.
|
||||
|
||||
Anchors are against Aetheria `origin/master` `dcd7bbc5` (the fire-control merge), read in the clone
|
||||
`C:\ws72-fuse5` with `git show`/`git grep`. The operator's tree `F:\Projects\Aetheria` was not touched. No
|
||||
build ran and no Yggdrasil job ran. **(read)** marks a claim read from source at the anchor. **(probe)** marks a
|
||||
claim measured against a real file.
|
||||
|
||||
---
|
||||
|
||||
## 0. Target
|
||||
|
||||
### 0.1 The request, in the operator's words (2026-09-30)
|
||||
|
||||
> "I feel like this would be much more manageable as a list of things to verify over time rather than a
|
||||
> monolithic smoke script that doesn't respect how the game works. Move gear onto Djinni? That's a lot of items
|
||||
> to spawn, and am I expected to have the catalog memorized to spawn them? If you want me to test a bunch of
|
||||
> behaviors under specific conditions, find a way to spawn me in an arena where those conditions are present. If
|
||||
> you want me to kill a guy and loot him, spawn me next to a ship with no armor or weapons, that sort of thing. I
|
||||
> wouldn't mind a scenario affordance in the main menu for this sort of job, that way the test fixtures can be
|
||||
> authored, retained and available. But that sounds like a Eureka cut."
|
||||
|
||||
What those words settle, so no question below re-asks them:
|
||||
- **A scenario is an arena whose conditions are present at spawn.** The player's ship and every other entity are
|
||||
already fitted and placed. The operator never spawns gear by catalog name and never fits a ship by hand.
|
||||
- **The fixtures are authored and retained,** and the main menu lists them.
|
||||
- **Verification is a list of behaviours checked over time,** not a play order.
|
||||
|
||||
### 0.2 Ends
|
||||
|
||||
- The main menu lists scenarios. Picking one starts a run in its arena.
|
||||
- A scenario is typed catalog data. It is authored once, kept in git, and replayed at any later revision.
|
||||
- Every operator check is a typed **check** record: what to do, what to observe, where the rule came from, and
|
||||
the scenario that sets it up. Results accumulate as typed records carrying the revision they were observed at.
|
||||
- Checks A-F and checklist steps 7-20 are the first consumers (section 5).
|
||||
|
||||
### 0.3 Invariants
|
||||
|
||||
- **One owner decides what a new run starts with.** A plain New Game and a scenario launch share the menu path,
|
||||
the galaxy build, `StartGame` and the staging owner. Scenario launch is New Game with a scenario as input; there
|
||||
is no second boot path. A plain New Game is the absent-scenario case.
|
||||
- **One primitive admits an entity into a zone.** Zone construction, staging, warp arrival and undock all admit
|
||||
through it, and agents are created there and nowhere else.
|
||||
- **A scenario sets conditions and nothing else.** Once staged, its entities are ordinary run state. The rules
|
||||
under test run through the same code whether or not a scenario started the run. No scenario-only branch exists
|
||||
in simulation code.
|
||||
- **Fixtures are typed state.** Scenario, loadout presets and test designs are CultCache catalog records. Checks and
|
||||
results are CultCache records. No load-bearing JSON, text scripts or prose checklists.
|
||||
- **A scenario that cannot stage is refused before anything is cleared,** with its failures listed.
|
||||
- **The catalog stays read-only at runtime** (`AetheriaStores.cs:13-21`).
|
||||
|
||||
### 0.4 Not in scope
|
||||
|
||||
- The full run lifecycle owner (`Run`) of `docs/headless-playground-cut.md` Cut 1 (warp, dock, save, death as one
|
||||
ServerShared owner) and its `AetherDb play` interpreter (Cut 3). This map takes over only the new-run staging
|
||||
half. The playground map is stale (anchors `1e647953`, fork S superseded by settings-globals) and must be
|
||||
re-anchored before Hands. When it lands, its `new` command stages a `Scenario` record instead of reading a
|
||||
`.play` text line.
|
||||
- Brokkr. It is not needed for any cut here: agents author scenarios headless through `AetherDb`, and the operator
|
||||
launches them from the menu. Brokkr's Unity actions (`setEditorPlayState`, `captureEditorView`, scene edits;
|
||||
`F:\Projects\Brokkr` `1357705`, read) have no way to pick a scenario in the menu. Agent-driven Unity play would
|
||||
need an Aetheria install cut plus a "launch scenario" intent. Recorded as a follow-up, not a fork.
|
||||
- The ship-purchase docking-bay gap (checklist section 8). It is a design gap in `TradeMenu.Buy` and
|
||||
`CommissionShip`, not a verification affordance. `CommissionShip` stays; `TradeMenu.Buy` is its consumer.
|
||||
- Tier colours (settings-globals Cut 1). The check is recorded as a known failure (section 5).
|
||||
- Balance and feel tuning. A check can record a feel call; it does not tune.
|
||||
|
||||
---
|
||||
|
||||
## 1. Body findings
|
||||
|
||||
### 1.1 The new-run path today (read)
|
||||
|
||||
| Concern | Anchor | Notes |
|
||||
|---|---|---|
|
||||
| Menu | `MainMenu.cs:92-184` | Continue `:103-108`; New Game `:110-176`; Settings; Quit. The same component runs in-game (`InGame`, `:96`), so the menu reappears on death (`ActionGameManager.cs:1171`). |
|
||||
| Clear the run | `MainMenu.cs:113` | `RunSave.Clear` at click time, before the galaxy is built. |
|
||||
| Galaxy | `MainMenu.cs:124-175` | `TutorialPassed` is never set anywhere, so New Game always takes the prelude branch `:146-175`. The background noise position comes from `UnityEngine.Random` (`:128,153`). The seed defaults to the clock (`Galaxy.cs:106,158`). |
|
||||
| Handoff | statics `ActionGameManager.CurrentGalaxy`, `IsTutorial` (`:96-97`) | read by `StartGame`, `SectorMap`, and nulled by `Die` (`:1173`). |
|
||||
| Start | `StartGame` `:796-834`, called from `Start` `:491` | New run `:803-815`: `PopulateLevel(Entrance)`, `LoadoutGenerator.GenerateShipLoadout` filtered by `GameSettings.StartingHullName` (`GameSettings.cs:13`, authored `LonginusX`), unpack, `Zone.Entities.Add`, `Activate`, `BindToEntity`. Continue `:817-833`. |
|
||||
| Zone entry | `PopulateLevel` `:710-744` | generates the pack lazily (`:714-722`), moves the pilot (`:731-737`). |
|
||||
|
||||
### 1.2 What a scenario can reuse (read, one probe)
|
||||
|
||||
- **Loadout presets already exist.** `aetheria.loadout` (`Loadout.cs:13-20`) holds a hull design, per-cell slot
|
||||
designs with rotation, and weapon groups. It is a catalog type (`AetheriaStores.cs:9`), authored in Studio or by
|
||||
the editor console command `capturepreset` (`ActionGameManager.cs:624-662`, `Loadouts.Commit` `Loadout.cs:70-87`).
|
||||
`Loadouts.Materialize` (`:96-159`) builds a live `Ship` all-or-nothing, listing every failure.
|
||||
- **No game path calls `Materialize`** (`LoadoutGenerator.cs:152-153` says so; only `LoadoutTests.cs:310,899`
|
||||
call it).
|
||||
- **(probe)** The live catalog holds no preset: the schema name `aetheria.loadout` does not occur in
|
||||
`GameData/Aetheria.cc` (12,698,108 bytes at `dcd7bbc5`), while every populated type's name does (for example
|
||||
`aetheria.hulldata`, `aetheria.weaponitemdata`). Method: `grep -a -o` over the file.
|
||||
- `Materialize` always builds a `Ship` (`:131`). A turret hull cannot be materialized.
|
||||
- It resolves every design through a product (`Resolve`, `:103-115`). A design with no product fails.
|
||||
- **Unbranded lots exist.** `ItemManager.CreateLot(design, maker, quality)` (`ItemManager.cs:161`) with no maker is
|
||||
how `give` made its items (`ActionGameManager.cs:538,542`). Provenance's "no Manufacturer row" check depends on
|
||||
them.
|
||||
- **Economy exclusion follows from products.** Generation iterates products and requires
|
||||
`product.Manufacturer.IsSet()` and `design.Price > 0` (`LoadoutGenerator.cs:126-133`). A design with no product
|
||||
is never generated, stocked or sold. Loot is what a killed entity carries (`EntityInstance.cs:302-321`), so it
|
||||
cannot leak through loot either unless a scenario fits it.
|
||||
- **Prelude galaxies offer every product.** `IsAvailable` returns true when `Galaxy.IsPrelude`
|
||||
(`LoadoutGenerator.cs:154-156`). A preset materialized in a prelude arena never fails on faction availability.
|
||||
- **Agents are made only at zone construction.** `Zone`'s constructor gives every packed non-player `Ship` a
|
||||
`Minion` (`Zone.cs:120-131`, `CreateAgent` `:135-142`). An entity added later gets none. A `Minion` targets the
|
||||
first visible enemy and fights (`Minion.cs`).
|
||||
- **An entity joins a zone in four other places,** each by hand: `spawnturret` (`ActionGameManager.cs:587`),
|
||||
`PopulateLevel` (`:735`), `StartGame` (`:813`) and `Entity.TryUndock` (`Entity.cs:1006`).
|
||||
- **IFF overrides are entity-local and unsaved.** `Entity.SetIff(other, bool?)` (`Entity.cs:529-533`) decides
|
||||
`IsHostileTo` ahead of faction rules (`:535-552`). A `Materialize`d ship has no faction, so it is neutral unless
|
||||
overridden.
|
||||
- **A target that dies and a target that leaves are the same case in fire control.**
|
||||
`targetGone = shot.Target != null && !zone.Entities.Contains(shot.Target)` (`FireControl.cs:610`), and death
|
||||
removes the entity from `Zone.Entities` (`Zone.cs:93`). Check A.3 ("the target warps away") is therefore set up by
|
||||
killing a fragile target while a fused round is in flight. No departure machinery is needed.
|
||||
- **An orbital entity with no orbit stays where it is put** (`OrbitalEntity.cs` `Update`: position follows the
|
||||
orbit only when one is set). That is how `spawnturret` placed turrets (`ActionGameManager.cs:583-588`).
|
||||
- **Headless tests already open the live catalog and the authored settings**
|
||||
(`RestoredHullsTests.cs`: `AuthoredSettings.Load`, `OpenReadOnlyRealCatalog`). A staging test can generate a
|
||||
prelude galaxy, build the arena zone and stage a scenario with no Unity.
|
||||
|
||||
### 1.3 Debug affordances a scenario replaces (read)
|
||||
|
||||
| Affordance | Anchor | Added for |
|
||||
|---|---|---|
|
||||
| `give <name>` | `ActionGameManager.cs:515-544` | ad hoc items; the hull route through `CommissionShip` was added tonight in `f935c29b` for step 7 |
|
||||
| `spawnturret` | `:564-589` | a hostile turret next to the player |
|
||||
| Neutral wanderers | `ZoneGenerator.cs:342-356`, `EligibleWandererFactions` `:361-365`, `ZoneGenerationSettings.NeutralWandererCount` (`Settings.cs:156`), tests `IffAndCombatTests.cs:329-350` | commit `f732cff9` (2026-09-17): "Spawn neutral wanderers so combat has something non-hostile to target". The code comment calls it a "Testing affordance". Every generated zone carries two. |
|
||||
|
||||
Staying, because no scenario replaces them: `iff` (flip a live target's stance mid-play), `trackmissile` (camera),
|
||||
`revealzones` (map), `tow` (a verb bound to the console), `capturepreset` (the in-play authoring tool for presets).
|
||||
|
||||
### 1.4 Collisions with open branches (read)
|
||||
|
||||
- `codex/mining` rewrites `Zone.cs` (+239/-). Cut 1 edits the constructor loop and adds the admission primitive.
|
||||
Land Cut 1 after mining merges, or re-anchor.
|
||||
- `codex/moddable-ships` edits `AetheriaStores.cs` (line 9, the catalog type list). Cuts 1 and 3 edit the same
|
||||
lines.
|
||||
- `codex/item-provenance` carries the narrative map, which edits `MainMenu.cs:132,160` and the `Galaxy`
|
||||
constructors. Cut 2 edits the same New Game block.
|
||||
|
||||
---
|
||||
|
||||
## 0b. Identity, lifecycle, authority
|
||||
|
||||
No cut is mapped against an empty cell.
|
||||
|
||||
| Kind | What names it | Lifecycle | Who decides |
|
||||
|---|---|---|---|
|
||||
| **Scenario** (`aetheria.scenario`, catalog) | `CultName` `Name`; key `scenario:<Name>`, derived like `Loadouts.KeyOf` | Authored, then edited in place. A rename is a new record; the old one is deleted, and the checks that pointed at it are repointed in the same commit. A result never points at a scenario (it points at a check), so history survives. A scenario whose presets stop materializing is caught by the staging test (Cut 4), not at play time. | Authored by agents through `AetherDb` or by the operator in Studio. The operator owns what an arena contains. |
|
||||
| **Loadout preset** (`aetheria.loadout`, existing) | key `loadout:<Name>` (`Loadout.cs:62`) | Unchanged: authored, replaced only explicitly (`Commit(..., replace)`). | Unchanged. |
|
||||
| **Test design** (catalog `ItemData`, no product) | name; key minted by `Upsert` | Authored with the scenario that needs it. Lives as long as a preset references it. Per Q3. | Operator (Q3) on whether they exist at all. |
|
||||
| **Check** (`aetheria.check`, ledger store) | `CultName` `Slug`; key `check:<Slug>` | Authored. Its statement is edited in place when a ruling changes (git keeps the history). It is retired, never deleted, once any result references it: `Retired` plus a reason. | The rule's owner (a ruling or a map) decides what it says. Agents transcribe it with a source pointer. |
|
||||
| **Check result** (`aetheria.checkresult`, ledger store) | key `checkresult:<Slug>:<At as UTC ticks>` | Append-only. Never edited or deleted. A correction is a new result whose note says what it corrects. The latest by `At` is the current status. Order is carried in the data (`At`), not in delivery. | The operator's observation. Who writes the record is Q2. |
|
||||
| **Pending scenario** (runtime) | `ActionGameManager.PendingScenario`, a static | Written once by the menu's launch, read and nulled once by `StartGame`'s new-run branch. Null for Continue. Never saved. | Command-only transport. It decides nothing. |
|
||||
| **Staged entities** (runtime, then run state) | ordinary entities | Born at staging. From then on they are run state and saved with the zone like any other entity. Two things are not saved: whether a ship was left unpiloted, and scenario IFF overrides. After Continue, an unpiloted scenario ship gets a `Minion` by the constructor rule and its stance reverts to faction rules (neutral, since presets carry no faction). A scenario run is meant to be played through in one sitting. | `RunStart` at birth; the zone afterwards. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Target shape
|
||||
|
||||
### 2.1 Types (names and rules; bodies are Hands')
|
||||
|
||||
`Assets/Scripts/ServerShared/Scenario.cs`, catalog:
|
||||
|
||||
- `Scenario` (`aetheria.scenario` v1):
|
||||
- `Name` (`CultName`).
|
||||
- `Brief`: the conditions in one or two lines, shown in the menu.
|
||||
- `Seed` (`uint`): the arena galaxy and the background noise both derive from it, so the arena is the same layout
|
||||
every launch. Combat rolls are already zone-seeded (`Zone.cs:84`). Lot quality still comes from the
|
||||
clock-seeded `ItemManager.Random` (`ItemManager.cs:20`), so stats vary slightly per launch. Accepted.
|
||||
- `Ambient` (`bool`): true keeps the arena zone as generated. False keeps planets, orbits and stations but drops
|
||||
generated ships and turrets, so nothing wanders into the conditions.
|
||||
- `Player` (`ScenarioShip`).
|
||||
- `Entities` (`List<ScenarioEntity>`).
|
||||
- `ScenarioShip`: `Loadout` (`CultRecordRef<Loadout>`), `Position` (`float2`, zone xz), `Direction` (`float2`),
|
||||
`Cargo` (`List<CultRecordRef<EquippableItemData>>`, stored in the first cargo bay).
|
||||
- `ScenarioEntity : ScenarioShip`: `Stance` (`Neutral | Hostile`, applied both ways through `SetIff`) and `Piloted`
|
||||
(`bool`: a `Minion`, or no agent at all).
|
||||
- A preset's hull type picks the entity class: a ship hull gives a `Ship`; a turret hull gives an orbital entity
|
||||
with no orbit, stationary at its position. A station hull is refused as a staging failure.
|
||||
|
||||
`Assets/Scripts/ServerShared/Checks.cs`, ledger store (`GameData/Checks.cc`, committed, LFS by the existing
|
||||
`GameData/*.cc` rule):
|
||||
|
||||
- `Check` (`aetheria.check` v1): `Slug` (`CultName`), `Statement` (what to do and what must be observed),
|
||||
`Source` (the ruling or map pointer, `doc:line`), `Scenario` (`CultRecordRef<Scenario>`, optional), `Setup`
|
||||
(text, only when there is no scenario: "FieldShieldTest scene", "CultCache Studio", "Addressables play mode Use
|
||||
Existing Build"), `Retired` and `RetiredReason`.
|
||||
- `CheckResult` (`aetheria.checkresult` v1): `Check` (ref), `Result` (`Pass | Fail | Partial | Blocked`),
|
||||
`Revision` (the commit the operator played, plus `+dirty` when the tree had changes), `At` (UTC), `Note`,
|
||||
`Recorder`.
|
||||
|
||||
Naming: "check", not "behaviour". `Behavior` is already the gear-behaviour type family
|
||||
(`Assets/Scripts/ServerShared/Behaviors/`), and a document named `Behaviour` beside it reads as a typo.
|
||||
|
||||
Where they live, and why:
|
||||
- Scenarios, presets and test designs are design-side fixtures. They go in the catalog: presets are already
|
||||
catalog data, cross-type refs resolve inside one store, and Studio edits them side by side.
|
||||
- Checks and results are the verification ledger. They go in their own store. The shipped catalog carries no
|
||||
history, results never trigger a catalog write, and "one commit lands in one store" holds: recording a result
|
||||
touches the ledger only.
|
||||
|
||||
### 2.2 The staging owner
|
||||
|
||||
**Owner: `RunStart`, a static class in `Assets/Scripts/ServerShared/RunStart.cs`.** It decides what a new run
|
||||
starts with: how the arena zone is generated, the player ship, the other entities, their stance, pilot and cargo.
|
||||
It holds no Unity type.
|
||||
|
||||
- **Inputs:** `ItemManager` (and through it the catalog), the `Galaxy`, `ZoneGenerationSettings`, the optional
|
||||
`Scenario`, and, for the absent-scenario case, the default hull filter and faction `StartGame` uses today
|
||||
(`:805-809`).
|
||||
- **Outputs:**
|
||||
- the arena's `ZonePack`, with the `Ambient` rule applied inside generation (`ZoneGenerator.GenerateZone`
|
||||
gains the parameter), not generated and then pruned;
|
||||
- the admitted player `Ship`, flagged `IsPlayerShip`;
|
||||
- the admitted scenario entities;
|
||||
- a failure list. Staging is all-or-nothing, as `Materialize` is.
|
||||
- **A check entry** that validates a scenario without a zone (every preset materializes, every cargo design
|
||||
exists). The menu calls it before `RunSave.Clear`; the staging tests call it on every catalog scenario.
|
||||
- **Derived state:** `ActionGameManager.CurrentEntity` is bound to the returned player. `PendingScenario` is
|
||||
transport only.
|
||||
- **Forbidden writers:** `StartGame` may not generate, unpack or admit the player ship. `MainMenu` may not stage.
|
||||
No console command admits entities (`give` and `spawnturret` die, Q4).
|
||||
- **Shared paths:** New Game and scenario launch both run menu, galaxy, `StartGame`, `RunStart`. Continue does not
|
||||
stage.
|
||||
- **Deletion line:** `StartGame` `:805-814` (generator, unpack, add, activate). The only surviving line is the
|
||||
bind.
|
||||
|
||||
**Admission primitive: `Zone.Admit(Entity entity, bool piloted)`.** It adds the entity to `Entities`, activates it,
|
||||
and, when `piloted`, gives it the zone's `Minion` (the `CreateAgent` rule, `Zone.cs:135-142`). It is the only writer
|
||||
of `Entities.Add` and the only creator of agents.
|
||||
- The constructor loop (`:120-131`) calls it with `piloted: ship && !IsPlayerShip`. It keeps its own rule that
|
||||
moves a ship packed at the origin (`:129-130`); that is generation placement, not admission.
|
||||
- `PopulateLevel` (`ActionGameManager.cs:735`), `Entity.TryUndock` (`Entity.cs:1006-1007`) and `RunStart` call it.
|
||||
`spawnturret` (`:587`) is deleted.
|
||||
- The `Death` subscription (`Zone.cs:93`) stays on `ObserveAdd` and still covers every join.
|
||||
|
||||
**`Loadouts.Materialize` gains two rules** (`Loadout.cs:96-159`):
|
||||
- A design with **no product at all** is built unbranded, through `CreateLot(design, default, quality)` at one
|
||||
named quality constant (0.95, the quality `give` used). A design whose products are all unavailable still fails,
|
||||
as today. The rule turns "no manufacturer makes it" into "outside the economy", which generation already obeys.
|
||||
- The **hull type picks the entity class** (section 2.1).
|
||||
- The comment at `LoadoutGenerator.cs:150-153` ("No game path materializes a preset yet") is rewritten to name
|
||||
`RunStart`.
|
||||
|
||||
### 2.3 The Unity lowering
|
||||
|
||||
- `MainMenu.ShowMain` (`:92-184`) gains **Scenarios**, shown when `Debug.isDebugBuild` (editor and development
|
||||
builds). It opens a panel with one button per catalog scenario, ordered by name. Under each button is its brief
|
||||
and its checks, each with its latest result and revision, read from the ledger (display only). A scenario whose
|
||||
check entry fails shows the failures and is disabled.
|
||||
- **One launch body** is extracted from the New Game lambda (`:110-176`). New Game calls it with no scenario; a
|
||||
scenario button calls it with one. With a scenario, it runs the prelude branch (`:146-175`) with `Seed`, derives
|
||||
the noise position from `Seed` instead of `UnityEngine.Random`, sets `PendingScenario`, and loads `ARPG`. The
|
||||
check entry runs first; `RunSave.Clear` (`:113`) moves after it, so a refused scenario leaves the saved run intact.
|
||||
- `StartGame`'s new-run branch (`:803-815`) calls `RunStart`, binds the returned player and nulls
|
||||
`PendingScenario`. The Continue branch asserts it is null.
|
||||
- `AetheriaStores.Open` gains an optional ledger path. The game attaches `GameData/Checks.cc` read-only; `AetherDb`
|
||||
attaches it writable for the record commands (Cut 3).
|
||||
|
||||
### 2.4 Authoring
|
||||
|
||||
- **Agents author headless through `AetherDb`.** A seed command (Cut 4) declares the first set in C#. It writes a
|
||||
record only when the key is absent. When the key exists and differs from what it would write, it refuses and
|
||||
reports; that means Studio edited it, and Studio wins. When the key exists and matches, it does nothing. It
|
||||
validates every scenario through the `RunStart` check entry before committing. So the catalog is the authority,
|
||||
and the seed code never clobbers it.
|
||||
- **The operator authors in Studio and in play:** Studio for scenario fields; `capturepreset` for a ship fitted by
|
||||
hand in play.
|
||||
- Results are recorded per Q2.
|
||||
|
||||
---
|
||||
|
||||
## 3. Cuts
|
||||
|
||||
Build budget, every cut:
|
||||
- `Aetheria.Shared` (netstandard2.1, the Unity-independence check), `tests/Aetheria.Shared.Tests`, `tools/AetherDb`
|
||||
(net10.0), Debug.
|
||||
- CultLib is unchanged; the pins are those in `hands-fuse8/run.sh`.
|
||||
- No new project, target, package or daemon. One new store file (`GameData/Checks.cc`), three new schemas.
|
||||
- **Build host:** Yggdrasil builds the headless projects (`run.sh <rev>`). `Assembly-CSharp` is proven only by a
|
||||
Unity 6000.3.24f1 batchmode compile on Starfire, with the editor closed by the operator. Never kill Unity.
|
||||
- `run.sh` mounts a pinned `data/Aetheria.cc` over the tree's LFS file. Any cut that changes the catalog (Cut 4)
|
||||
must refresh that pin, or its content tests read the old catalog. Cut 4's tests that read the ledger mount it the
|
||||
same way. Yggdrasil's disk is saturated: one job per cut, `--artifacts-path` in the container.
|
||||
|
||||
Order: 0, 1, 2, 3, 4. Cut 0 is subtraction alone, so Soul can falsify it alone. Cuts 1 and 3 are headless. Cut 2
|
||||
is the only Unity-side cut. Cut 4 is content.
|
||||
|
||||
### Cut 0. Retire the ad hoc test affordances (Q4)
|
||||
|
||||
- **Repo/branch:** Aetheria, `codex/scenarios` from `master` `dcd7bbc5`.
|
||||
- **Deletes first** (per Q4 A; B keeps the item branch of `give` and the wanderers):
|
||||
- `ActionGameManager.cs:515-544`, `give` (30 lines).
|
||||
- `ActionGameManager.cs:564-589`, `spawnturret` (26 lines).
|
||||
- `ZoneGenerator.cs:342-356`, neutral wanderers (15 lines), and `EligibleWandererFactions` `:361-365` (5).
|
||||
- `Settings.cs:156`, `NeutralWandererCount` (1). It is absent from `Settings.asset` (settings-globals `:72`), so
|
||||
no asset edit is needed.
|
||||
- `IffAndCombatTests.cs:329-350`, the two wanderer tests (22).
|
||||
- **Keeps:** `CommissionShip` (`:898-903`) and its consumer `TradeMenu.Buy`; the console fixes in `f935c29b`.
|
||||
- **Docs:** `docs/merge-to-master-checklist.md` section 8, the `give` bullet: add "retired by the scenarios cut"
|
||||
with the commit. `docs/settings-globals-cut.md:72,348` get a one-line history note.
|
||||
- **Verification:**
|
||||
- builds: `Aetheria.Shared`, the test project. Batchmode compile (`ActionGameManager.cs` changed).
|
||||
- tests: the full suite is green. The locomotion "real enemy-count check" (`95394f78`) counts generated ships;
|
||||
if it counted wanderers, fix its expectation and say so.
|
||||
- negative: `rg -n '"give"|"spawnturret"' Assets/Scripts` is empty;
|
||||
`rg -n "NeutralWanderer|EligibleWandererFactions" Assets tests tools` is empty. Both patterns were checked to
|
||||
match only these sites today.
|
||||
- operator: none. There is nothing to see until Cut 2.
|
||||
- **Ledger:** about -99 lines; 0 added.
|
||||
|
||||
### Cut 1. `RunStart`, `Zone.Admit`, and the scenario type (headless)
|
||||
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, on Cut 0. Re-anchor `Zone.cs` if mining has merged.
|
||||
- **First:** with `AetherDb hardpoint-fit` and a scratch `Materialize` against the live catalog, confirm that
|
||||
`Djinni`, `LonginusX` and one turret hull each have a product and materialize bare. If one has no product, stop
|
||||
and report: the Q3 rule would make it unbranded, which may not be intended for a real hull.
|
||||
- **Deletes first:**
|
||||
- `ActionGameManager.cs:805-814`, the new-run spawn (it moves into `RunStart`; this cut leaves `StartGame`
|
||||
calling `RunStart` with no scenario, so behaviour is unchanged).
|
||||
- The four hand-written joins: `ActionGameManager.cs:735-736`, `Entity.cs:1006-1007`, `Zone.cs:124-125`, and the
|
||||
agent add at `Zone.cs:128`. Each becomes `Admit`.
|
||||
- **Adds:** `Scenario.cs`, `RunStart.cs`, `Zone.Admit`, the `ambient` parameter on `ZoneGenerator.GenerateZone`
|
||||
(`:38-43`; the ship loop `:334-340` and `PlaceTurrets` calls `:309,331` honour it), `Scenario` in
|
||||
`AetheriaStores.CatalogTypes` (`:9`), and the two `Materialize` rules (`Loadout.cs:103-115,131`).
|
||||
- **Authority map:** section 2.2. Owner `RunStart`; admission `Zone.Admit`; deletion line as above.
|
||||
- **Verification:**
|
||||
- builds: `Aetheria.Shared`, tests, `AetherDb`. Batchmode compile (`ActionGameManager.cs`, `Entity.cs` changed).
|
||||
- tests (new `RunStartTests`: live catalog, authored settings, a prelude galaxy at a fixed seed). Each rule
|
||||
must fail under its own mutation:
|
||||
- With no scenario, staging yields a player of the `StartingHullName` hull, `IsPlayerShip`, admitted, at the
|
||||
origin. This pins that New Game is unchanged.
|
||||
- With a scenario, the player is the preset's hull and fit at the authored position and direction, and its
|
||||
cargo holds the listed designs.
|
||||
- A piloted entity has exactly one agent in `Zone.Agents`; an unpiloted one has none and stays put over 5 s of
|
||||
`Zone.Update`.
|
||||
- `Hostile` makes both `IsHostileTo` directions true. `Neutral` makes both false.
|
||||
- `Ambient: false` leaves no ship or turret in the arena pack that the scenario did not place. Stations remain.
|
||||
- A turret preset stages as a stationary orbital entity. A station preset is a staging failure.
|
||||
- A scenario naming a missing design fails with that design named. The zone is unchanged, and no
|
||||
`RunSave` call was made (the check entry touches no store).
|
||||
- A product-less design materializes unbranded; a design whose only product is unavailable still fails.
|
||||
This is two tests, because the second case is the existing contract.
|
||||
- `Admit` is the only agent creator: after a warp (`PopulateLevel`'s join through `Admit(pilot, false)`) the
|
||||
pilot has no agent. The constructor's pack path still gives every non-player ship a `Minion`.
|
||||
- Stryker on `RunStart.cs`, `Zone.cs` (`Admit` and the constructor loop), `Loadout.cs` (`Materialize`), scoped
|
||||
to the diff. Triage survivors by name.
|
||||
- negative: `rg -n "Entities\.Add\(" Assets/Scripts --glob '!**/ZoneGenerator.cs'` matches only
|
||||
`Zone.cs` (once, inside `Admit`), `Sensor.cs:169` and `Entity.cs:242` (both are `VisibleEntities`/pings, not
|
||||
zones). `rg -n "new Minion\(" Assets/Scripts` matches only `Zone.cs`.
|
||||
- operator: none beyond the Cut 2 smoke.
|
||||
- **Ledger:** `Scenario.cs` +60; `RunStart.cs` +110; `Zone` +12 -8; `Loadout.cs` +20; `ZoneGenerator` +4;
|
||||
`ActionGameManager` -11 +4; `Entity` ±2; `AetheriaStores` ±1; tests +300.
|
||||
|
||||
### Cut 2. The main menu launches scenarios (Unity)
|
||||
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, on Cut 1.
|
||||
- **Deletes first:** the duplicated body of the two galaxy branches in the New Game lambda (`MainMenu.cs:124-175`)
|
||||
collapses into one launch body. The standard branch (`:124-145`) is live code only when `TutorialPassed` is
|
||||
true, and it is kept. Only the duplication goes.
|
||||
- **Adds:** the Scenarios panel, `PendingScenario`, the seed-derived noise, the check entry before
|
||||
`RunSave.Clear`. `StartGame` passes `PendingScenario` to `RunStart`.
|
||||
- **Authority map:**
|
||||
- Owner of what the run starts with: `RunStart` (unchanged).
|
||||
- `MainMenu` owns which scenario was picked and when the run is cleared. `PendingScenario` is a command-only
|
||||
transport, consumed once.
|
||||
- Forbidden: `MainMenu` stages nothing and admits nothing. `StartGame` reads `PendingScenario` only in the
|
||||
new-run branch.
|
||||
- Shared paths: both buttons run one launch body. In-game menu (after death) and title menu run the same one.
|
||||
- **Verification:**
|
||||
- builds: batchmode compile, editor closed.
|
||||
- negative: `rg -n "RunSave\.Clear" Assets/Scripts/UI/MainMenu.cs` appears once, after the check entry.
|
||||
`rg -n "PendingScenario\s*=" Assets/Scripts` matches the launch body and `StartGame`'s null only.
|
||||
- operator (Unity, Starfire):
|
||||
1. Title menu: Scenarios is listed. New Game still starts a LonginusX at the entrance with a Zenith station
|
||||
(the Cut 1 test pins the ship; this proves the lowering).
|
||||
2. Launch any scenario. The arena matches its brief; launch it again and the layout is the same.
|
||||
3. Die in a scenario. From the in-game menu, relaunch the same scenario.
|
||||
4. Quit mid-scenario, then Continue. The run continues (the 0b rule: unpiloted ships now patrol).
|
||||
5. Break a scenario on purpose in a scratch catalog (a missing design). It is shown disabled with the failure,
|
||||
and Continue still offers the previous run.
|
||||
- **Ledger:** `MainMenu` +45 -25; `ActionGameManager` +4; one static.
|
||||
|
||||
### Cut 3. The verification ledger (headless; Q2)
|
||||
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, on Cut 1 (independent of Cut 2).
|
||||
- **Adds:** `Checks.cs` (`Check`, `CheckResult`); `AetheriaStores.LedgerTypes` and the optional path;
|
||||
`GameData/Checks.cc` (empty, committed).
|
||||
- Under Q2 B, `AetherDb` gains two commands:
|
||||
- `checks [scenario]`: each check with its latest result, its revision, and "never" when there is none.
|
||||
- `record <slug> <pass|fail|partial|blocked> --revision <sha> [--note <text>]`. It refuses an unknown or
|
||||
retired slug. It opens the ledger writable and the catalog read-only.
|
||||
- Under Q2 A, the menu panel gains Pass/Fail/Partial and a note field per check. It writes through the same
|
||||
ledger primitive, and the game attaches the ledger writable.
|
||||
- **Authority map:**
|
||||
- Owner of results: the ledger store. The only writer is the Q2 writer, which calls one append primitive,
|
||||
`Ledger.Record`.
|
||||
- Derived, display only: the menu's latest-status line and `checks`' output.
|
||||
- Forbidden: nothing edits or deletes a `CheckResult`; nothing writes a result into the catalog.
|
||||
- **Verification:**
|
||||
- tests (new `LedgerTests`, temp stores):
|
||||
- Recording appends and never replaces: two results for one check both survive a reopen, and the latest is
|
||||
the one with the later `At`, even when written first.
|
||||
- A retired or unknown slug is refused with nothing written.
|
||||
- The catalog file is byte-identical after `record` (a catalog opened read-only cannot be written; this pins
|
||||
that the command opened it that way).
|
||||
- A result carries the revision it was given, and `record` without `--revision` is a usage error.
|
||||
- Stryker on `Checks.cs` and the `AetherDb` record path.
|
||||
- negative: `rg -n "CheckResult" Assets/Scripts --glob '!**/Checks.cs'` matches only the menu's read (and under
|
||||
Q2 A its record call).
|
||||
- **Ledger:** `Checks.cs` +50; `AetheriaStores` +4; `AetherDb` +90 (B) or `MainMenu` +50 (A); tests +120.
|
||||
|
||||
### Cut 4. The first scenarios, checks and history (content)
|
||||
|
||||
- **Repo/branch:** Aetheria `codex/scenarios`, on Cuts 2 and 3. Hands authors on the branch clone, never in
|
||||
`F:\Projects\Aetheria`.
|
||||
- **First:** tell the operator that the uncommitted smoke weapons in their tree's `GameData/Aetheria.cc` must be
|
||||
restored (`git checkout -- GameData/Aetheria.cc`, their own command) before they pull. This cut recreates them as
|
||||
committed designs.
|
||||
- **Adds:**
|
||||
- A transient `AetherDb scenario-seed [apply]` command, with the never-clobber rule of section 2.4.
|
||||
- It writes the test designs (section 5.3), the presets (5.4), the scenarios (5.2) and the checks (5.1).
|
||||
- It imports the 2026-09-30 smoke results (checklist section 8) as `CheckResult`s at revision `113164fa`,
|
||||
recorder "operator (play), recorded by agent".
|
||||
- It runs once, the data is committed, and the command is deleted in the same cut. The catalog is the authority
|
||||
from then on.
|
||||
- `ScenarioConditionTests` (live catalog; pinned catalog refreshed, see the build budget). Per scenario, stage it
|
||||
and assert the conditions its checks need, not the behaviour, which existing suites own. For example:
|
||||
- `Fused rounds`: the bare hull lies within the arc on the player's initial aim line and has no target
|
||||
selected; the close hull is nearer than `Smoke Proximity`'s `BlastRadius`; `Smoke Refused` has
|
||||
`Range < BlastRadius`; a direct-fire weapon can kill the fragile hull.
|
||||
- `Duel`: the AI is piloted, hostile both ways, and carries a slow missile weapon; the player can see it.
|
||||
- `Arcs`: the three bare hulls lie in the bow, beam and stern sectors of the player's mounts; the turret is
|
||||
hostile.
|
||||
- Every catalog scenario passes the check entry. This is the rot test.
|
||||
- Every non-retired check with a scenario points at an existing one. Every check without a scenario has a
|
||||
`Setup`.
|
||||
- Docs: `docs/merge-to-master-checklist.md` sections 2 and 8 get one line: steps 7-20 and handoff checks A-F are
|
||||
now checks in `GameData/Checks.cc`, listed by `AetherDb checks`. The prose steps stay as history.
|
||||
- **Verification:**
|
||||
- tests: `ScenarioConditionTests`, with mutation by editing a fixture. Moving the close hull outside the blast
|
||||
radius, dropping the AI's missile weapon, or flipping a stance must each fail its condition. This is a one-off
|
||||
Soul probe, not a committed suite.
|
||||
- `AetherDb checks` lists every check in section 5.1, with the imported results on 3, 4, 5, 6 and "never"
|
||||
elsewhere.
|
||||
- operator: play each scenario and report per check. That report is the first real use of the ledger.
|
||||
- **Ledger:** seed command +300 then -300; catalog +5 designs, +11 presets, +10 scenarios; ledger +44 checks, +7
|
||||
results; tests +250; docs ±4.
|
||||
|
||||
---
|
||||
|
||||
## 4. Authority map (whole campaign)
|
||||
|
||||
- **Owner of a new run's contents:** `RunStart`. It reads the scenario (or its absence) and writes the arena pack
|
||||
and the admitted entities.
|
||||
- **Owner of zone membership and agents:** `Zone.Admit`.
|
||||
- **Owner of fixtures:** the catalog (`Scenario`, `Loadout`, test designs), written by the seed, Studio or
|
||||
`capturepreset`, and read-only at runtime.
|
||||
- **Owner of verification history:** the ledger store. It is append-only and written by the Q2 writer.
|
||||
- **Derived:** menu status lines; `AetherDb checks`; `PendingScenario` (transport).
|
||||
- **Forbidden writers:** `StartGame` spawning ships; `MainMenu` staging; console commands admitting entities;
|
||||
anything editing a result; any catalog write at runtime.
|
||||
- **Shared paths:** New Game and every scenario launch: one launch body, `StartGame`, `RunStart`, `Admit`. Warp,
|
||||
undock, construction and staging: `Admit`.
|
||||
- **Deletion line:** Cut 0's affordances; `StartGame` `:805-814`; the four hand-written joins; the duplicated New
|
||||
Game branches; the transient seed command.
|
||||
|
||||
---
|
||||
|
||||
## 5. The first consumers
|
||||
|
||||
Sources: `docs/merge-to-master-checklist.md` section 2 (steps 7-20) and section 8; checks A-F from
|
||||
`F:\Projects\HANDOFF-aetheria-play-smoke-2026-09-29.md` section 3. That file sits outside the repo, so the checks
|
||||
below restate A-F and the ledger becomes their home. The rulings behind A-F are in `fire-control-cut.md`, in the
|
||||
block "Ruled (operator, 2026-09-30)" (`:2625-2690`).
|
||||
|
||||
### 5.1 Checks
|
||||
|
||||
| Slug | Statement (abridged; the record carries the full text) | Source | Setup |
|
||||
|---|---|---|---|
|
||||
| `restored-hull-flies` | Thrusters move and turn the Djinni. | step 7; `locomotion-cut.md:501` | Djinni shakedown |
|
||||
| `restored-hull-speed-cap` | Take the hull offline with thrusters firing; speed does not run away. | step 7; `:377` | Djinni shakedown |
|
||||
| `weak-reactor-starves-legibly` | A reactor too small for the loadout shows starvation, not a cooked reactor. | step 8; `stats-and-power-cut.md:705-706` | Starved reactor |
|
||||
| `brownout-degrades` | Brownout reads as degradation, not breakage. | step 9; `:774,990` | Starved reactor |
|
||||
| `brownout-refill-stutters` | A weapon refilling under brownout stutters rather than firing at full rate. | step 9; `:729-730` | Starved reactor |
|
||||
| `memory-flat-across-zones` | Several zones with kills; memory does not climb. | step 10; `:672-673,980-982` | Long haul |
|
||||
| `side-mounts-fire-abeam` | Side-mounted weapons fire at the beam target. | step 11; `fire-control-cut.md:397-398` | Arcs |
|
||||
| `turret-tracks-round` | The hostile turret tracks the player all the way round. | step 11 | Arcs |
|
||||
| `no-fire-through-hull` | Nothing fires at the stern target through the hull. | step 11 | Arcs |
|
||||
| `shots-roll` | Rolled impacts and misses; a miss reads as a near-miss; damage matches the HUD. | step 12; `:659-661` | Duel |
|
||||
| `subsystem-aim` | Reveal and selection work; aiming at a revealed subsystem concentrates damage. | step 12 | Duel |
|
||||
| `kill-drops-loot` | The kill drops its cargo; pickup stores it; the tractor beam pulls. | step 12; `headless-playground-cut.md:789-794` | Duel |
|
||||
| `loot-keeps-brand` | Picked-up loot shows its manufacturer. | step 6; `item-provenance-cut.md:528-539` | Duel |
|
||||
| `target-vanish-safe` | The target dies with shots in flight: no crash, no frozen ship. | step 12; `fire-control-cut.md:1464-1470` | Duel |
|
||||
| `beam-reads-higher` | The HUD `hull` factor reads higher from the beam than from the bow. | step 13; `:2380-2383` | Duel |
|
||||
| `armour-face-missile` | Turn the armoured face into the AI's slow missile; it lands there. | step 13 | Duel |
|
||||
| `ai-engages` | The AI still engages normally. | D; `:2658-2660` | Duel |
|
||||
| `launcher-edge-pulse` | Launcher into the bow, then a flank: the schematic pulses the facing edge only. | step 14; `:2519-2520` | Launcher angles |
|
||||
| `guided-explodes-on-detonation` | A guided round's explosion shows only when the simulation detonated. | E | Launcher angles |
|
||||
| `guided-target-left-fades` | Kill the target while a guided round flies: the round fades with no explosion. | E | Launcher angles |
|
||||
| `guided-hit-at-target` | A guided hit plays its effect at the target. | E | Launcher angles |
|
||||
| `fused-clear-line-max-range` | Nothing selected, clear line: the round bursts at max range along the arc-clamped aim. | A.1; `:2625,2636-2642` | Fused rounds |
|
||||
| `fused-first-hull-stop` | Nothing selected, aim at the bare hull: the round stops and detonates on it. | A.2; `:2632-2634` | Fused rounds |
|
||||
| `fused-target-left-no-burst` | Fire at the fragile target, kill it with the direct weapon before arrival: no burst. | A.3; `:2636-2642`, `FireControl.cs:610` | Fused rounds |
|
||||
| `fused-out-of-arc` | Select the stern target: the round fires and bursts at its range along the arc-clamped aim. | A.4; `:2643-2645` | Fused rounds |
|
||||
| `fused-arming-pushout` | Select the close hull: the burst is pushed out to `BlastRadius` from the ship's centre. | A.5; `:2646-2653` | Fused rounds |
|
||||
| `airburst-at-model` | A proximity airburst beside the LonginusX lands damage where the model shows the blast. | step 15; `:3094-3097` | Fused rounds |
|
||||
| `penetrator-reaches-interior` | A delayed penetrator into the LonginusX nose detonates inside. | step 15 | Fused rounds |
|
||||
| `hud-forecast-fused` | The HUD shows Direct, Burst at N m or Refused for fused weapons, and a percentage for direct weapons. | C; `:2661-2663` | Fused rounds |
|
||||
| `unbranded-no-manufacturer` | An unbranded smoke weapon shows no Manufacturer row. | step 6 | Fused rounds |
|
||||
| `refused-shot-free` | A refused shot costs no ammo, energy, heat, sound, visibility or cooldown. | B; `:2664-2666` | Refused rounds |
|
||||
| `refused-beam-no-flicker` | A refused beam never starts. | B | Refused rounds |
|
||||
| `refused-charge-never-charges` | A refused charged weapon never starts charging. | B | Refused rounds |
|
||||
| `instant-and-charged-fire` | Autocannon and ChargeBlast SG fire; effects, particles and action-bar icons show. | step 5; `addressables-cut.md:362-366` | Weapon feel |
|
||||
| `burst-cadence` | Burst cadence is unchanged. | F | Weapon feel |
|
||||
| `charge-release-press` | A fast release-and-press on a charged weapon starts no second charge. | F | Weapon feel |
|
||||
| `existing-build-play` | Under "Use Existing Build", the Weapon feel checks hold (GUID keys in the player catalog). | step 20; `addressables-cut.md:367-370` | Weapon feel, Setup: play mode Use Existing Build |
|
||||
| `ai-never-fires-refused` | The hostile AI whose only weapon is refused never fires it. | D | AI fused discipline |
|
||||
| `ai-never-bomb-fishes` | The neutral AI carrying a fused weapon never fires it. | D | AI fused discipline |
|
||||
| `continue-keeps-items` | Warp, quit, Continue: same items, same tier and brand. | step 16; `item-provenance-cut.md:536-537` | Long haul |
|
||||
| `death-ends-run` | Die: Continue is disabled and `run.cc` holds no ledger. | step 17; `:540-541` | Long haul |
|
||||
| `shield-panel-rig` | The numbered shield-panel look, including the Cut 5 dicing and break-through. | step 18; `shield-panel-cut.md:683-700,737-739` | Setup: FieldShieldTest scene |
|
||||
| `studio-*` (5 checks) | The fire-control union renders; the schematic underlay; restored hull records; the fuse fields edit; the provenance ledger renders from a real `run.cc`. | step 19 | Setup: CultCache Studio |
|
||||
| `addressables-duplicates` | Analyze the duplicate dependencies: 5 known leftovers. | step 20 | Setup: Addressables Analyze |
|
||||
| `new-game-start`, `purchase-keeps-brand`, `tier-colour` | New Game; buying keeps the brand; tier colours show. | steps 3, 4, 6 | Setup: New Game |
|
||||
|
||||
Imported results (checklist section 8, revision `113164fa`, 2026-09-30):
|
||||
- `new-game-start`: pass.
|
||||
- `purchase-keeps-brand`: pass.
|
||||
- `instant-and-charged-fire`: partial ("charged weapon unprovable: 1x2 hardpoint").
|
||||
- `tier-colour`: fail ("known defect, `settings-globals-cut.md:150`; fixed by settings-globals Cut 1").
|
||||
- `unbranded-no-manufacturer`: blocked ("`give Lamp` named a test fixture").
|
||||
- `loot-keeps-brand`: no result ("not yet reported").
|
||||
|
||||
### 5.2 Scenarios
|
||||
|
||||
All use `Ambient: false` except Long haul. Positions are authored in the seed and pinned by the condition tests.
|
||||
|
||||
| Scenario | Player | Entities | Checks |
|
||||
|---|---|---|---|
|
||||
| Djinni shakedown | Djinni, full fit | none | 2 |
|
||||
| Starved reactor | a combat hull with an undersized reactor, energy weapons and a shield | 1 unpiloted bare hull ahead, neutral | 3 |
|
||||
| Arcs | a hull with side mounts | 3 unpiloted bare hulls (bow, beam, stern), neutral; 1 turret preset, hostile | 3 |
|
||||
| Duel | combat fit | 1 piloted LonginusX, hostile, carrying a slow missile weapon, cargo holding a branded item | 8 |
|
||||
| Launcher angles | GT 3K or pswarm plus a direct weapon | 1 unpiloted LonginusX, hostile; 1 fragile bare hull | 4 |
|
||||
| Fused rounds | Smoke Proximity, Smoke Delayed, a direct weapon | unpiloted: LonginusX mid range, hostile; bare hull on the clear bearing; fragile bare hull; close bare hull inside `BlastRadius`; stern target | 9 |
|
||||
| Refused rounds | Smoke Refused (instant, beam, charged) plus one working weapon | 1 unpiloted bare hull | 3 |
|
||||
| Weapon feel | a hull with a 2x2 energy hardpoint: ChargeBlast SG, Autocannon, a burst weapon | 1 unpiloted bare hull | 4 |
|
||||
| AI fused discipline | a sturdy hull | 1 piloted neutral with a fused weapon; 1 piloted hostile whose only weapon is refused | 2 |
|
||||
| Long haul | standard combat fit, `Ambient: true` | none | 3 |
|
||||
|
||||
### 5.3 Test designs (Q3)
|
||||
|
||||
None has a product. They are unbranded and outside the economy.
|
||||
- `Smoke Proximity`: Proximity, blast 8.
|
||||
- `Smoke Delayed`: Delayed, blast 4, penetration 2 cells.
|
||||
- `Smoke Refused`: Proximity, blast 30, range 20.
|
||||
|
||||
These three are the operator's own designs from tonight, Spectra clones, energy, 1x2.
|
||||
- `Smoke Refused Beam` and `Smoke Refused Charge`: a constant weapon and a charged weapon with a fuse and
|
||||
`Range < BlastRadius`.
|
||||
- All must pass `CultRecordRefs.Validate` (R-heat, stat modifiers, roles).
|
||||
|
||||
### 5.4 Presets
|
||||
|
||||
About eleven, named after their scenarios. The seed author picks designs with `AetherDb hardpoint-fit`. The only
|
||||
hard constraints are those the condition tests pin.
|
||||
|
||||
---
|
||||
|
||||
## 6. Subtraction ledger
|
||||
|
||||
| Cut | Removed | Added | Targets, schemas, stores |
|
||||
|---|---|---|---|
|
||||
| 0 | `give` 30, `spawnturret` 26, wanderers 20, setting 1, tests 22 | 0 | no change |
|
||||
| 1 | `StartGame` spawn 10, joins 6 | `Scenario.cs` 60, `RunStart.cs` 110, `Admit` 12, `Materialize` 20, `GenerateZone` 4; tests 300 | +1 schema (`aetheria.scenario`) |
|
||||
| 2 | duplicated New Game body about 25 | menu panel and launch body about 45; 1 static | none |
|
||||
| 3 | none | `Checks.cs` 50, stores 4, `AetherDb` 90 (or the menu 50); tests 120 | +2 schemas, +1 store file |
|
||||
| 4 | the seed command, once spent (300) | seed 300; condition tests 250; catalog and ledger data | catalog content, ledger content |
|
||||
|
||||
Net production code is about +250. That buys:
|
||||
- the main-menu scenario affordance;
|
||||
- typed checks with history;
|
||||
- one staging owner and one admission primitive (from five hand-written joins);
|
||||
- the first game consumer of the presets that already existed.
|
||||
|
||||
It removes three ad hoc test affordances and the wanderers that ran in every zone.
|
||||
|
||||
---
|
||||
|
||||
## 7. Operator questions
|
||||
|
||||
Each question stands alone. The first is what the scenario request leaves open.
|
||||
|
||||
**Q1. Is a scenario arena part of a real run?**
|
||||
Your words settle what an arena holds. They leave open what surrounds it. Checks 16 and 17 (warp, save,
|
||||
Continue, death) need a real run. Every other check needs only the arena.
|
||||
- **A.** The arena is the entrance zone of a small prelude galaxy built from the scenario's seed. Stations,
|
||||
planets and wormholes are there, and the run saves on warp and quit, continues and ends at death like any run.
|
||||
Launching a scenario replaces your saved run, as New Game does. Scenario-only details (unpiloted ships, forced
|
||||
stances) do not survive a Continue.
|
||||
- **B.** A sealed arena: one zone, no galaxy, no saving. Launching never touches your saved run. Checks 16 and 17
|
||||
go back to plain New Game play. This is a second zone-entry path with no galaxy under it, which `PopulateLevel`
|
||||
and the sector map do not support today.
|
||||
- **Recommended: A.** It is the same New Game path with an input, so there is no second boot path. Every rule
|
||||
under test then runs exactly as it does in a real run. Replacing the saved run seems harmless for a dev
|
||||
affordance.
|
||||
- **Depends on it:** Cut 2's launch body; the 0b lifecycle row for staged entities; whether Long haul exists.
|
||||
|
||||
**Q2. Who records a check's result, and where?**
|
||||
You play and observe. Something has to write "pass at `abc123`, note ...".
|
||||
- **A.** In game. The Scenarios panel gets Pass/Fail/Partial and a note per check. The game writes the ledger file
|
||||
in your working tree, and you commit it with your other work.
|
||||
- **B.** The agent. You tell the session what you saw, and it records typed results with `AetherDb record` on a
|
||||
branch and pushes. The menu shows each check's latest result, read-only.
|
||||
- **C.** No typed results. Checks are typed, and results go in a prose ledger doc, as checklist section 8 does now.
|
||||
- **Recommended: B.** It matches how tonight's smoke already worked: you play, the agent records. Nothing in the
|
||||
game writes a file that git tracks, and no agent needs to touch your tree. The menu still shows what is stale.
|
||||
A can be added later on the same append primitive.
|
||||
- **Depends on it:** Cut 3's writer and whether the game attaches the ledger writable.
|
||||
|
||||
**Q3. Where do test-only item designs live?**
|
||||
Checks A-C need fused weapons the catalog does not ship. Tonight they were authored in place and left
|
||||
uncommitted.
|
||||
- **A.** Committed catalog designs with no product. With no product nothing makes them, so they are never
|
||||
generated, stocked, sold or looted. A preset builds them unbranded (a new `Materialize` rule). Studio lists them
|
||||
beside real content.
|
||||
- **B.** Committed designs with a product and price 0. Generation skips price 0 today, but only through a filter
|
||||
written for another reason, so the exclusion is a coincidence.
|
||||
- **C.** A scratch catalog swapped in per session, as checklist step 2a proposed. Scenarios would then depend on
|
||||
which catalog is loaded, and the fixtures would not be retained.
|
||||
- **Recommended: A.**
|
||||
- **Depends on it:** the `Materialize` rule in Cut 1; section 5.3.
|
||||
|
||||
**Q4. Which ad hoc test affordances do scenarios retire?**
|
||||
`give` got its hull route tonight (your ruling: "mothballed ships do not require docking bays"), and step 7 was its
|
||||
reason. `spawnturret` places a turret. Neutral wanderers spawn two non-hostile ships in every generated zone, "so
|
||||
combat has something non-hostile to target" (`f732cff9`).
|
||||
- **A.** Delete all three. Scenarios cover ships, cargo, turrets and neutral targets. `CommissionShip` stays for
|
||||
purchases.
|
||||
- **B.** Delete the hull route and `spawnturret`. Keep `give` for items (ad hoc poking outside scenarios) and keep
|
||||
the wanderers.
|
||||
- **C.** Keep everything.
|
||||
- **Recommended: A.** Each one is a second way to create what scenarios now author, and the wanderers change every
|
||||
zone of real play for a testing reason. `iff`, `trackmissile`, `revealzones`, `tow` and `capturepreset` stay.
|
||||
- **Depends on it:** Cut 0.
|
||||
|
||||
Defaults Self took, which you may overrule:
|
||||
- Scenarios show only in editor and development builds.
|
||||
- The ledger is its own committed store, `GameData/Checks.cc`, not the catalog.
|
||||
- "Check", not "behaviour", because `Behavior` is the gear type family.
|
||||
- Brokkr is not installed in this campaign (section 0.4).
|
||||
- The scenario record holds no "start docked" field. No first consumer needs one.
|
||||
|
||||
---
|
||||
|
||||
## 8. Follow-ups outside this campaign
|
||||
|
||||
- Re-anchor `docs/headless-playground-cut.md`. Its Cut 1 now builds on `RunStart` and `Zone.Admit`; its `new`
|
||||
command stages a `Scenario`.
|
||||
- Brokkr install plus a "launch scenario" intent, if agents should drive Unity play.
|
||||
- A durable agent authoring command for presets (fit by design name with validation), instead of transient seed
|
||||
commands.
|
||||
- `AetherDb` carries spent one-shot migration commands (`targeting-catalog-6c`, `-6d`, `firing-arc-migrate`, and
|
||||
others; `Program.cs` is 1,477 lines). This is a subtraction pass of its own.
|
||||
- `ItemManager`'s clock seed (`ItemManager.cs:20`) makes lot quality vary per scenario launch. It is recorded,
|
||||
not fixed here.
|
||||
Loading…
Reference in a new issue