Repository navigation
refactor(arch): architectural entropy reduction and CI governance gates - #265
scrimshawlife-ctrl wants to merge 17 commits into
Conversation
…strict scalar contracts (Batch 1)
…ks, and cache 60 Hz paths (Batch 2)
…tion DAG, and decompose Simulation/GameScene (Batch 3)
…inistic ReceiptArchive ordering (Batch 4)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9cb8c8a7ca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let key = currentIdleDrawKey() | ||
| if idleDrawKey != key { | ||
| idleDrawKey = key | ||
| redraw() | ||
| } | ||
| return |
There was a problem hiding this comment.
Drain transient presentation effects before skipping redraws
When a run ends or reaches upgrade selection with presentation effects still active, this return stops advancing them indefinitely. VFXRenderer.render() advances the frame counter and expires pooled effects, while cameraPosition() advances the 12-frame shake; both are called only by redraw(). For example, lethal damage starts a shake whose duration exceeds its hit-stop, so the terminal screen retains an offset camera, and static VFX nodes can remain past their declared lifetimes. Keep advancing presentation until these effects settle, or explicitly clear them before entering the render-once idle state.
Useful? React with 👍 / 👎.
| SOURCE = ( | ||
| RUNTIME_ASSETS / '[email protected]' | ||
| if (RUNTIME_ASSETS / '[email protected]').exists() | ||
| else RUNTIME_ASSETS / '[email protected]' | ||
| ) |
There was a problem hiding this comment.
Bind registration landmarks to the selected source image
With the checked-in assets, this now selects the 688×656 @4x building, but main() still uses the hand-observed @1x landmarks [145,172], [60,120], and [201,133] with a two-pixel uncertainty. Those coordinates do not mark slab corners in the selected image. Running the script succeeds and attributes the resulting scale and registration errors to the new image's SHA, producing misleading measurement evidence. Supply separately verified landmarks for the selected source, or fail closed when the original landmark source is unavailable.
Useful? React with 👍 / 👎.
…, VFX idle drain, receipt metadata, and dynamic DAG gates (Batch 5)
…tart until playback
…icates, and sync gate/profiler telemetry
…-003 emitter cap (16)
…ate exporter, and Linux Docker parity
…ty contrast, and headless audio mute
… 14 2.5D buildings project upright
Summary
Stacked on #264 (
feat/stage2-rules-015-runtime@76a79da). Reduces architectural entropy acrossSurveillanceCore,SurveillanceAutopilot, andApp/with zero gameplay, contract, or replay-digest drift (SS-specspin91631e59e9afa1d053c5a62775ca4adb35286a22unchanged).Evidence
Sources/SurveillanceCoredomain layers (World/,Events/,Determinism/) depended upward onPresentation/HUDLayout.swiftandCamera/.project.ymlcompiledTests/SurveillanceCoreTests/PacingProbe/ProbePilot.swiftdirectly into theSSRuntimeapp target.BossSystem,EnemySystem,TelegraphProjection, andLethalWarningduplicatedcombat-content-010boss/elite timing and damage literals 4x, andIsolatedKernel.daemonCyclehardcoded staleeliteHP = 300(vs450).GameScene.update(_:)stepped idle terminal/upgrade gates at 60 Hz, leakedNotificationCenterobserver tokens, and failed to pause ifscenePhasewent inactive during the D-098 intro.GhostStore,MedalStore,ReceiptStore, andReleaseEvidenceStorehardcoded process-globalApplication Support/Documentspaths (MedalStorealso reportedNEWmedals when disk persistence failed).python3 -B scripts/test_architecture_governance.py -v->Ran 6 tests in 0.375s — OK(including negative mutation self-tests for Core purity, layer DAG, version parity, Release benchmark gating,try!/ observer safety, and<= 2,000LOC file ceilings).python3 -B scripts/test_runtime_audit_guards.py->OK(5/5).python3 -B scripts/test_spec_parity_isolation.py->OK(2/2).swift,spec-parity,app (Debug),app (Release),device-sitting) verifies zero replay/vector/sitting drift and passes newPersistenceLifecycleTests,InterruptionTests,RunTelemetryTests,CombatContentFailClosedTests, andReceiptArchiveCompatibilityTests.Merge Danger
Door: two-way
Pure internal architectural refactoring, bug fixes, and additive CI governance checks stacked cleanly on
#264; zero persisted schema changes, zeroSS-specscontract mutations, and zero replay digest changes.Blast Radius: medium
Touches module targets (
Package.swift,project.yml),Simulationfile layout,CombatContentdecoding,GameSession/GameScenelifecycle, and persistence store initializers (all defaulted tobaseDirectory: URL? = nilfor source compatibility).