From 0c8c3246602acbcf174db52a3316921a4485c0ef Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:24:24 -0700 Subject: [PATCH 01/42] docs(agents): stage shared scientific-project safeguards --- projects/AGENTS.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/AGENTS.md diff --git a/projects/AGENTS.md b/projects/AGENTS.md new file mode 100644 index 00000000..19329448 --- /dev/null +++ b/projects/AGENTS.md @@ -0,0 +1,36 @@ +# Projects — shared agent instructions + +Scope: files under `projects/`. This is a provider-neutral working contract for scientific project content, not a replacement for source manifests or the technical specifications. The existing `projects/CLAUDE.md` remains unchanged while instruction routing is validated. + +## Project structure + +Each project combines small, authored JSON state with potentially large scientific inputs, processed outputs, visual assets, rasters, and provenance. + +- `base-gui/`: base GUI scene. +- `case-study-b/`: Case Study B. +- `utah-forge/`: Utah FORGE Phase 3, including a particularly large `data/` tree. +- `woodjam/`: Woodjam. + +Treat this directory map as a navigation aid, not as evidence that all inputs are distributable or scientifically verified. + +## Search and data boundaries + +- Do not recursively search `projects/*/data/**` unless the task specifically requires source-data inspection. These folders contain huge GeoJSON coordinate arrays, binary scalar/position tiles, WebP/JPG/TIFF rasters, and manifests, statistics, and scientific provenance records. +- Search the smallest relevant project, dataset and product subtree. For example, scope work on Utah FORGE resistivity to `projects/utah-forge/data/geosee_processed/utah_forge_phase_3/electrical_resistivity/` rather than searching every project. +- Avoid interpreting generated visual assets as independent source evidence. Check the corresponding data/provenance manifests before making a spatial or geophysical accuracy claim. +- Review `docs/LICENSING.md`, `docs/GEODE-publication-manifest.md`, and relevant project manifests before republishing or extracting source material. The project software licence does not automatically cover external datasets, reports or imagery. + +## Authoring persistence + +- Project authoring state persists on disk under `projects//` through the development-only Vite endpoint `/api/write-file`, registered in `vite.config.ts`. +- Preserve existing `project.json`, `environment.json`, page/overlay and project authoring state unless the task explicitly requires editing it. +- Do not silently replace this persistence model with IndexedDB, LocalStorage or a new backend. Changing persistence architecture needs explicit owner direction. +- The live Utah FORGE page deck is disposable *authoring state*, not a fixture for generic application behavior tests. Use synthetic fixtures for app-level behavior; keep deck-specific checks labeled as such. Refer to `docs/dev-context/Verification-Routing.md` and `docs/dev-context/Transition-Runtime-Operating-Spec.md`. + +## Upstream source and archive provenance + +- Historical upstream/raw source buckets are separate from the tracked application repository. +- Resolve historical repo-relative source identifiers through `docs/archive-map.md` and `docs/archive-manifest.json`. A path recorded in historical provenance is not authorization to switch working trees, alter archives, or assume access to a local drive. +- Preserve traceability to the original scientific source and explicitly label missing or unverified source members. + +Source-preservation reference: [`projects/CLAUDE.md`](CLAUDE.md). Consolidation and provider-specific routing remain pending review. From 7f6c6cf5399e5871fc7e9e9f88b5bda13f74998a Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:24:41 -0700 Subject: [PATCH 02/42] docs(agents): stage shared editor safeguards and source map --- src/editor/AGENTS.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/editor/AGENTS.md diff --git a/src/editor/AGENTS.md b/src/editor/AGENTS.md new file mode 100644 index 00000000..68756cc6 --- /dev/null +++ b/src/editor/AGENTS.md @@ -0,0 +1,27 @@ +# Editor — shared agent instructions + +Scope: `src/editor/`. Preserve the established editing, control-manifest, authoring and verification discipline. These instructions are provider-neutral; the prior `src/editor/CLAUDE.md` remains intact during staged migration. + +## Source map and large-file safety + +- The editor's R1 extraction reduced the former `LayerPanel.tsx` monolith and distributed controls across focused modules. Preserve the extraction pattern; **do not create an extracted editor file larger than 800 lines** without explicit review. +- Large or historically growing files include `EnvironmentScenePanel.tsx` (environment, lighting, fog, sky/sun), `PagePanel.tsx` (page and cinematic authoring), `topoMap/TopoMapPanel.tsx` (topography, draping, gradients), `EditorContext.tsx` (selection, state, dispatch, persistence), `LayerPanel.tsx`, and `UtahForgeAddToProjectDrop.tsx` (asset drop-in). Do not read those files in full merely to locate a change: first search symbols, then inspect bounded ranges. +- R1 extraction references include `layerControls/style/StyleControls.tsx`, `layerControls/scalar/ScalarControls.tsx` (barrel; scalar controls are in separate files), and `layerControls/mt/`, `env/`, `page/`, `overlays/`, `layout/`, `seismic/`, `workingArea/`, `geology/`. Shared constants include `layerControls/labelKindOptions.ts` and `layerControls/scalarSourceRange.ts`. +- Historically smaller files include `EditorRoot.tsx`, `EditorChrome.tsx`, `OverlayPanel.tsx`, `SiteDetailsPanel.tsx`, `CollapsibleSection.tsx`, `InlineEditableTitle.tsx`, `styleControls.tsx`, `styles.ts`, `types.ts` and `save.ts`. Verify size before whole-file reads; do not depend on old line-count estimates. +- Dev Mode Inspector (the `d` key) has a thin `DevModeInspector.tsx` entry and `devMode/` modules: `constants.ts`, `types.ts`, `util.ts`, `text.ts`, `boxModel.ts`, `inspect.ts`, `styles.ts`, `controls.tsx`, `textControls.tsx`, `labelLayout.ts` (pure label-collision packing), and `containerOutlines.tsx` (clickable non-stacking labels). Pure functions in `inspect`, `boxModel`, `labelLayout`, `util`, `text` can be tested without React. `DevModeInspector.tsx` is **not** in the manifest `protectedSourceFiles` list. + +## Protected editor controls + +- Before changing sidebar bars, groups, subsections, commands, controls, page actions, or editor-backed persisted fields, read `docs/dev-context/editor-control-manifest.json` and `docs/dev-context/Editor-Control-Manifest-Policy.md`. +- Preserve existing manifest IDs when moving controls between groups or source files. Register IDs for new controls before adding them. Removal, rename, hide and restructure actions require the manifest's applicable approval metadata and checks; do not bypass its reorder rules. +- In large component files, search for the exact intended panel and use sufficiently distinctive context in replacements or patches. Repeated sub-panel structures can make an insufficiently scoped edit modify the wrong control. +- User-facing scene, render, layer, page and environment variables must be exposed through the appropriate editor surface unless properly classified and justified as internal-only. A feature is not complete until runtime application, editor access, saving, reloading and human-visible verification are addressed. Read `docs/06-editor-exposure-rules.md`. +- For quick legends and render-preset authoring, read `docs/dev-context/UI-Visual-Standards.md`; use shared helper geometry and preserve both project-level and selected-page preset access rather than introducing page-specific workarounds. + +## Persistence and transition safety + +- Editor authoring writes flow through `save.ts` and the development-only Vite plugin endpoint registered in `vite.config.ts`; retain the existing storage mechanism unless the owner explicitly directs otherwise. +- Before modifying page transitions, editor/save transition gating, section/ISO controls, opacity or page navigation, read `docs/dev-context/Transition-Runtime-Operating-Spec.md` and its required companion documents. +- Fix reusable state-resolution or runtime behavior, not the observed Utah FORGE page ID, title or page pair. Use synthetic fixtures for general behavior tests; treat human visual acceptance as a separate gate. + +Source-preservation reference: [`src/editor/CLAUDE.md`](CLAUDE.md). This shared file does not retire or overwrite that source during the review phase. From adb024323f54be994d58818c08a99fe806f40af6 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:24:54 -0700 Subject: [PATCH 03/42] docs(agents): stage shared Three.js runtime safeguards --- src/scene/AGENTS.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/scene/AGENTS.md diff --git a/src/scene/AGENTS.md b/src/scene/AGENTS.md new file mode 100644 index 00000000..0c1001f5 --- /dev/null +++ b/src/scene/AGENTS.md @@ -0,0 +1,21 @@ +# Scene runtime — shared agent instructions + +Scope: `src/scene/`. These provider-neutral rules preserve the scene-runtime guardrails documented in `src/scene/CLAUDE.md`; that original remains unchanged while routing and preservation are reviewed. + +## Architecture and bounded reads + +- The Three.js R2 extraction moved scene responsibilities into focused helpers. `SceneManager.ts` and `section/sceneSectionController.ts` have since grown beyond their original post-split targets. Both require scoped, symbol-first inspection rather than whole-file reads. `terrainMaterial.ts` is also large; inspect only relevant shader/material ranges. +- `SceneManager.ts` owns scene lifecycle and the public runtime-facing orchestration. `section/sceneSectionController.ts` handles scene-section apply, helpers and opacity. Historical R2 targets were about 2,550 lines for `SceneManager.ts` and a 1,200-line cap for `sceneSectionController.ts`; these are **historic extraction targets**, not current measurements or permission to disregard safety rules. +- Relevant extracted helpers: `handles/sceneHandleControllers.ts`, `isoOverlays/volumeCutIsoOverlays.ts`, `terrain/terrainStyleController.ts`, `workingArea/workingAreaFocusController.ts`, `transitions/layerTweenRuntime.ts`. +- Other source-navigation anchors: `heightSampler.ts` for terrain height, `postprocessing.ts` for effects, `disposeObjectTree.ts` for Three.js cleanup, `layerDiagnostics.ts` for diagnostics, `layerLoaderRegistry.ts` for registration, `layerLoaders.ts` for per-kind loaders, and `scalarFocus.ts` for focus and clipping. Confirm current file sizes and implementations rather than trusting historical counts. + +## Required editing discipline + +- Layer registration, opacity and transition handling in `SceneManager.ts` is product-aware. Inspect the precise affected code and its contract before changing behavior. Historical implementation context is recorded in commits `15d3c66`, `bb29e23` and `e326e23`. +- **Keep the transition-opacity regression test passing** after any change affecting product base opacity, page transitions or visual opacity. Read `docs/dev-context/Transition-Runtime-Operating-Spec.md`, `docs/dev-context/Transition-Continuity-Contract.md`, and transition guardrails for broader changes. +- Route Three.js object/geometry/material cleanup through `disposeObjectTree.ts`; do not introduce independent ad-hoc disposal loops. +- Register additional layer types through `layerLoaderRegistry.ts`; do not add inline registration inside `SceneManager.ts`. +- Preserve product-owned shader opacity and derived ISO overlay opacity when composing page/layer transitions. A generic fade must not reveal scientifically hidden products or make section-derived visuals flash. +- Fix generic runtime behavior rather than matching a particular project deck, page ID, page title or page pair. Preserve the distinction between synthetic app-behavior evidence and human visual acceptance. + +Source-preservation reference: [`src/scene/CLAUDE.md`](CLAUDE.md). This staged copy does not change the existing Claude instruction-loading path. From 22cf28ef571c98426405b0600b212ac9b6b96829 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:25:13 -0700 Subject: [PATCH 04/42] docs(agents): add shared documentation and evidence safeguards --- docs/AGENTS.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/AGENTS.md diff --git a/docs/AGENTS.md b/docs/AGENTS.md new file mode 100644 index 00000000..41540a76 --- /dev/null +++ b/docs/AGENTS.md @@ -0,0 +1,28 @@ +# Documentation — shared agent instructions + +Scope: `docs/`. This file describes safe documentation work across coding agents. It routes to existing technical and decision records; it **does not create a new authority ranking** or permit changing an unresolved engineering decision. + +## Read the owning document, not the whole archive + +- For the purpose, alpha scope and architecture, consult `docs/00-purpose.md`, `docs/01-scope.md`, and `docs/02-architecture.md`. +- For durable design decisions and supersession history, consult `docs/03-decisions.md`. Preserve existing entries; record an approved change as a new entry that explicitly identifies any superseded decision. Do not silently reword history. +- For task-specific current routing and evidence, use `docs/dev-context/Active-Build-Context.md` and `docs/dev-context/Verification-Routing.md`. Follow links to the smallest relevant technical area; do not search all archives, receipts, generated reports or screenshots by default. +- For editor controls and persisted authoring fields, consult `docs/dev-context/Editor-Control-Manifest-Policy.md` and `docs/dev-context/editor-control-manifest.json`. For editor completeness claims and GUI exposure, consult `docs/06-editor-exposure-rules.md`. +- For transition descriptions, consult `docs/dev-context/Transition-Constitution.md`, `docs/dev-context/Transition-Continuity-Contract.md`, `docs/dev-context/Transition-Decision-Log.md`, `docs/dev-context/Transition-Guardrails.md` and `docs/dev-context/Transition-Runtime-Operating-Spec.md`; preserve the status of draft clauses and existing contradictions rather than assigning a new hierarchy here. +- For visual conventions, consult `docs/dev-context/UI-Visual-Standards.md` and `docs/dev-context/Visual-Review-Current.md`. +- For public distribution and scientific provenance, consult `docs/LICENSING.md`, `docs/GEODE-publication-manifest.md`, `docs/dev-context/Dataset-Map.md` and the actual data/source manifests. + +## Preservation and evidence discipline + +- Preserve established engineering methods, exclusions, exceptions, source paths, historical rationale, test commands and negative-regression guards when reconciling documentation. Consolidate only genuinely equivalent requirements. Maintain a source-to-destination crosswalk for substantive restructuring. +- Label claims according to the available evidence: implemented/verified, observed but not independently verified, proposed, historical, or unresolved. A design specification, draft plan, demo screenshot or source-path reference is not evidence that the runtime behavior or scientific interpretation has been verified. +- Do not present GEODE's proposed independently reusable common spine as a separately delivered runtime until source and tests substantiate it. Retain the research/software-development alpha boundary and avoid unsupported geospatial accuracy, medical clearance, validated depth or source-registration claims. +- Do not promote third-party scientific data, satellite imagery, reports, research figures, photographs, provenance records or derivative products to Apache-2.0 merely because they appear inside a public repository. Preserve source attribution and verify permissions before republication; see `docs/LICENSING.md`. +- Documentation describing a user-facing configuration feature must account for where the field lives, applies, appears in the editor, saves/reloads, and is visually verified. An implementation that is still missing these steps must not be documented as complete; see `docs/06-editor-exposure-rules.md`. +- Do not equate automated tests, synthetic fixtures, page/deck snapshots or automated screenshots with the user's required human visual acceptance for presentation or visual-quality changes. +- When source behavior, an active specification and historical prose disagree, **record the competing evidence and hold the resolution**. Do not silently rewrite a decision, alter code to fit a possibly stale document, or promote observed current implementation into an approved requirement. +- For docs-only edits, verify changed links and references, check the Git diff, and follow the applicable focused checks in `docs/dev-context/Verification-Routing.md`. Never claim tests or runtime checks ran if they were not executed. + +## Scope limits during instruction consolidation + +The current consolidation audit and held discrepancies live in `docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. This file is a new scoped instruction candidate, not a replacement for existing specification detail or a resolution of the held authority conflicts. No repository history, local archive, third-party dataset, user-authored project scene, or other active agent instruction file is implicitly authorized for modification. From 18f35e4f3bfa2751e9a73e60233c62e8792c81fa Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:26:07 -0700 Subject: [PATCH 05/42] docs(agents): record lossless crosswalk and unresolved migration holds --- .../Agent-Instruction-Consolidation-Plan.md | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 docs/dev-context/Agent-Instruction-Consolidation-Plan.md diff --git a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md new file mode 100644 index 00000000..03600064 --- /dev/null +++ b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md @@ -0,0 +1,127 @@ +# Agent instruction consolidation: preservation-first staging plan + +**Status:** review-only migration plan; no authorization to merge, remove original instructions, alter runtime behavior or resolve conflicting policies. **Baseline:** `main` at `29d9c4c7eee77ac1b104289b09b1382c574145d0` (13 November 2026). + +**Owner intent:** GEODE is a multi-provider engineering project. Shared engineering knowledge must not be owned exclusively by Claude. `AGENTS.md` is the proposed common instruction interface. A provider file such as `CLAUDE.md` should eventually be a *thin importer/router only*, never an alternate source of substantive policy. Existing unique workflows and regression safeguards must survive migration without being flattened. + +## Phase boundary and current changes + +This **first non-destructive chunk** adds four scoped shared instruction candidates: + +| Added file | Preserve and expose | Original source kept unchanged | +| --- | --- | --- | +| `projects/AGENTS.md` | Project/data search limits, project map, persistence endpoint, raw-source provenance, project/deck-test boundaries | `projects/CLAUDE.md` | +| `src/editor/AGENTS.md` | R1 extraction, large-file reading, Dev Mode Inspector map, editor-control manifest and IDs, save and editor exposure, transition guardrails | `src/editor/CLAUDE.md` | +| `src/scene/AGENTS.md` | R2 extraction, scene helper map, product-aware opacity, mandated regression test, centralized disposal and loader registration | `src/scene/CLAUDE.md` | +| `docs/AGENTS.md` | Documentation provenance, evidence status, DEC append/supersede, scientific/public claims, human visual acceptance, active spec routing | `docs/` existing technical contracts | + +**Not changed:** root `AGENTS.md`, root `CLAUDE.md`, all three nested `CLAUDE.md`, app code, data, source preparation, snapshots, Git history, existing decisions and user-authored project content. No `docs/CLAUDE.md` was introduced. **Agent-runtime discovery has not been tested or certified.** This staged branch is not the completed provider-neutral migration. + +## Existing root contract: preservation crosswalk before any edits + +The root files remain the source of their original wording during this review. Each category below must be reconciled into the common contract or a clearly linked owning document before shrinking `CLAUDE.md`. + +| Original lines (`AGENTS.md` unless noted) | Rules and distinct exceptions | Potential durable owner | +| --- | --- | --- | +| 8–16 | Selective active-context first read; receipt/archive exception for audits | Shared root | +| 18–30 | Factual output rail, prose restrictions and quoted/UI/API exceptions | Shared root; style scope **held** | +| 32–43; `CLAUDE.md` 30–42 | Purpose/scope/architecture/DEC/verification/editor docs; Claude-only page-transition source link | Shared root router and documentation owner | +| 45–52, 189–196 | Old canonical working tree, stale root, external archive map | **Held:** unsafe worktree authority; preserve historical provenance | +| 53–62 | UI_EDITOR separation, exact-path staging, workspace check, protect excluded dirty user files | Shared root | +| 63–75 | Manifest approval and stable IDs; project/page preset access; compact legend helpers | Editor owner and existing visual/manifest contracts | +| 76–82 | MT full-density-only modes, 1.5-second animation, exact two persisted fields | Existing MT/visual and transition owners | +| 83–86 | Ignore/cancel stale RAF ticks on page-context change | Existing transition owner | +| 87–96 | Global Settings preview retains visibility and MT Log10 fields; forbidden mutation-based false fixes | Existing MT/visual contract | +| 97–106 | Target-mode header, transition-time isolines, narrow post-settle refresh without broad replay | Existing MT/transition contract | +| 107–112 | Explicit MT all-off boundary maps authoritative; DEC-145 supersession | Existing technical contract and decision log | +| 113–131 | SEG-Y custom CMP byte offsets, 2D/3D geometry, L5/L11 registration caveat, CRC source gate, surrogate permission, three tests | Scientific project/source contract | +| 132–157 | No page-specific legend fixes, no project-page edits for app behavior, bounded search and excluded large paths | Shared search method and scoped scientific/transition owners | +| 159–171 | Large files: symbol-first limited reads; dated line-count list | Shared method and scoped editor/scene maps | +| 173–178 | Stop on doc contradiction; preserve DEC history and explicit supersession | Shared root + docs; precedence **held** | +| 180–187 | Dev-only Vite project persistence and no unilateral storage re-architecture | Shared root plus editor/projects | +| 199–211 | Disposable page fixtures, synthetic generic tests, deck-state distinction, reusable transition families | Transition + verification contracts | +| 213–219 | Required transition runtime specification and historical evidence distinction | Shared task routing + transition owner | + +Root `AGENTS.md` is 220 lines; root `CLAUDE.md` is 217. They are largely equivalent but not identical. The current mirror check validates only the `mirror:monoliths` section, **not overall parity**. Do not replace root `CLAUDE.md` with an import until the Claude-only document reference and all current obligations are verifiably represented. + +## Nested original-to-shared preservation crosswalk + +| Original | Unique preserved content | New scoped owner | +| --- | --- | --- | +| `projects/CLAUDE.md` 3–13 | Mixed small authoring state versus bulk project data; four project navigational anchors | `projects/AGENTS.md` / structure | +| `projects/CLAUDE.md` 15–28 | Huge GeoJSON, binary, raster and manifest search hazard; specific Utah resistivity subtree example | `projects/AGENTS.md` / search | +| `projects/CLAUDE.md` 30–35 | Exact `/api/write-file` endpoint and Vite on-disk persistence; no IndexedDB/backend substitution | `projects/AGENTS.md` / persistence | +| `projects/CLAUDE.md` 37–41 | External upstream origin and archive provenance resolution | `projects/AGENTS.md` / upstream | +| `src/editor/CLAUDE.md` 3–35 | R1 monolith extraction, extracted clusters, constants and **800-line new-extraction cap** | `src/editor/AGENTS.md` / navigation | +| `src/editor/CLAUDE.md` 37–52 | Historically smaller files; `d` inspector; pure-unit-test modules; `DevModeInspector.tsx` protected-file exception | `src/editor/AGENTS.md` / navigation | +| `src/editor/CLAUDE.md` 54–62 | Manifest gate, stable control IDs, new-ID sequencing and approval metadata for moves/hides/renames/removals | `src/editor/AGENTS.md` / protected controls | +| `src/editor/CLAUDE.md` 63–67 | Targeted reads and unique edit context in repeated large-panel markup | `src/editor/AGENTS.md` / edits | +| `src/editor/CLAUDE.md` 68–70 | `save.ts`, Vite endpoint and preserved persistence architecture | `src/editor/AGENTS.md` / persistence | +| `src/scene/CLAUDE.md` 3–19 | R2 split and re-grown monoliths; section-controller historic 1,200-line cap | `src/scene/AGENTS.md` / source map | +| `src/scene/CLAUDE.md` 21–32 | Specific scene helper, shader, diagnostics, loader, disposal and focus module map | `src/scene/AGENTS.md` / source map | +| `src/scene/CLAUDE.md` 34–41 | Product-aware transition/opacity context, historic commits and mandatory regression test | `src/scene/AGENTS.md` / edits | +| `src/scene/CLAUDE.md` 42–43 | Mandatory centralized disposal through `disposeObjectTree.ts`; no ad-hoc loops | `src/scene/AGENTS.md` / disposal | +| `src/scene/CLAUDE.md` 44–45 | New layer kinds via `layerLoaderRegistry.ts`, never inline manager registration | `src/scene/AGENTS.md` / registration | + +Vendor-specific historical tool verbs (such as `Read` with `offset`/`limit`, `Grep` and `Edit` with unique `old_string`) are preserved in the unmodified Claude originals. The new shared instructions express the same safety requirements in provider-neutral terms: search first, inspect limited ranges, patch with unambiguous context. Current line counts should be measured, not copied from stale estimates. + +## Existing documentation knowledge must remain in owning specifications + +| Existing technical owner | Distinctive rule not to flatten | +| --- | --- | +| `docs/03-decisions.md` | Recorded accepted decisions, rationale and superseding history | +| `docs/06-editor-exposure-rules.md` | Every user-facing field must have an editor surface, persistence and visible confirmation; distinct internal-only reasons | +| `docs/dev-context/Editor-Control-Manifest-Policy.md` | Exact manifest ID, page action, reorder and approval mechanics | +| `docs/dev-context/Verification-Routing.md` | Local sketch versus committed-state evidence; targeted checks; human launcher and port safety | +| `docs/dev-context/Transition-Constitution.md` | Synthetic-fixture rule, user visual sign-off, symptom-to-invariant diagnostic funnel | +| `docs/dev-context/Transition-Continuity-Contract.md` | Resolved render-graph diff, stable identity and channel assignment, idempotent final commit | +| `docs/dev-context/Transition-Decision-Log.md` | Specific transition decisions and phased implementation history | +| `docs/dev-context/Transition-Guardrails.md` | Tripwires, issue report fields and limited test budget | +| `docs/dev-context/Transition-Runtime-Operating-Spec.md` | Detailed matching/compatibility/opacity/readiness/derived-entity rules | +| `docs/dev-context/Page-Transitions-And-Section-Frames.md` | Frame compatibility, ISO opacity, visual helper and MT exception detail | +| `docs/dev-context/UI-Visual-Standards.md` | Shared quick-legend geometry, global/page render preset semantics, MT controls | +| `docs/dev-context/Runtime-Loading-Policy.md` | Load-class research/proposals and computed-asset quality prerequisites | +| `docs/dev-context/Visual-Review-Current.md` | Human visual acceptance and bounded browser verification | +| `docs/LICENSING.md` and `docs/GEODE-publication-manifest.md` | Software rights versus third-party scientific sources, claims and provenance | + +## Duplications identified for a later semantic merge + +1. Root Claude/Codex operating contracts (root pair). +2. Utah FORGE disposable-page rule and page-specific false-fix prohibition (root, transition, verification). +3. Vite `projects/` authoring persistence (root, editor, projects). +4. Manifest changes and stable control IDs (root, editor, manifest policy). +5. MT mode/isoline/tween/page preview behavior (root, UI, transitions). +6. Bounded search and monolith reads (root and each subsystem). +7. SEG-Y source gate, geometric registration and surrogate boundary (root, active context, verification). +8. Transition pre-read documents (root, active context, transition guardrails). +9. Human visual acceptance versus technical evidence (transition, visual review and editor exposure). +10. Dev-server/launcher precautions (verification, visual review, active context). + +These are **consolidation candidates**, not instructions to delete the long-form specifications or lose any subcondition. + +## Unresolved holds — intentionally not decided in this pass + +| Hold | Unresolved issue | +| --- | --- | +| H01 | Old `C:\GeoSee\GeoSee_Dev` automatic routing conflicts with the sanitized public checkout. Do not switch into unsanitized ancestry during release work. | +| H02 | Root `/docs` contradiction stop versus Active-Build current source/project observed-authority statement. | +| H03 | Transition Constitution 'draft source of truth' versus active Runtime Operating Spec and the Active-Build authority description. | +| H04 | Claimed full root mirror versus CI-only monolith-section comparison and Claude-only linked document. | +| H05 | Referenced mandatory Transition Page Fixture Evidence Register missing from the published Git tree. | +| H06 | June historic handoffs labeled 'current' and stale command/source references. | +| H07 | Human launcher port 5194 versus Verification-Routing text naming 5173 (plus separate `.claude/launch.json` 5273). | +| H08 | Observed page-pair visual reproduction versus no page-pair coupling in app-behavior tests. | +| H09 | Root's universal pronoun/writing restriction versus user-audience/editor/public documentation work. | +| H10 | Product-aware runtime adapters versus prohibition on product-name-based top-level transition policy. | +| H11 | How each provider loads root and nested `AGENTS.md` when parallel `CLAUDE.md` files exist; **not tested**. | + +Other discovered document-reference errors and stale size estimates remain listed in the canonical audit; they are not silently repaired here. + +## Next gated chunks (not performed) + +1. Review content parity, especially every unique negative safeguard in the existing `CLAUDE.md` files. Confirm where detailed rules should live, without silently settling H01–H11. +2. Prepare a shared root `AGENTS.md` that preserves both existing root contracts' unique clauses. Only then stage root and nested `CLAUDE.md` as pure provider-specific import/router files, plus any necessary `docs/CLAUDE.md`. +3. Test actual Claude/Codex discovery for root, `projects/`, `src/editor/`, `src/scene/` and `docs/`. Do not assume nested import semantics; use controlled self-reports and static CI checks. Run code tests as applicable and review diffs. +4. Present held contradictions for an owner decision before any substantial policy change or merge. + +**Source audit / full rule-by-rule trace:** [GEODE agent-instruction audit, 13 Nov 2026](https://app.notion.com/p/417fb0993276814991e1c7463e20491d). The unchanged GitHub originals remain the verifiable source text. This staged branch must not be merged until agent loading and unresolved authority/safety questions are reviewed. From 116adff0f89a60c841a7f0a997b90a7cc9cbf0c1 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:49:36 -0700 Subject: [PATCH 06/42] docs(agents): preserve original projects/AGENTS.md constraints and pinned provenance --- projects/AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/AGENTS.md b/projects/AGENTS.md index 19329448..9c7f5d7e 100644 --- a/projects/AGENTS.md +++ b/projects/AGENTS.md @@ -8,7 +8,7 @@ Each project combines small, authored JSON state with potentially large scientif - `base-gui/`: base GUI scene. - `case-study-b/`: Case Study B. -- `utah-forge/`: Utah FORGE Phase 3, including a particularly large `data/` tree. +- `utah-forge/`: Utah FORGE Phase 3. The original project contract recorded approximately 116 MB under `utah-forge/data/`; this is a historical estimate, not a current measurement. - `woodjam/`: Woodjam. Treat this directory map as a navigation aid, not as evidence that all inputs are distributable or scientifically verified. @@ -29,8 +29,8 @@ Treat this directory map as a navigation aid, not as evidence that all inputs ar ## Upstream source and archive provenance -- Historical upstream/raw source buckets are separate from the tracked application repository. +- Historical upstream/raw source buckets are separate from the tracked application repository. The original local source location was recorded as `C:\GeoSee\GeoSee_Archive\`; this is provenance, not a portable instruction or an assertion that the path exists in any current environment. - Resolve historical repo-relative source identifiers through `docs/archive-map.md` and `docs/archive-manifest.json`. A path recorded in historical provenance is not authorization to switch working trees, alter archives, or assume access to a local drive. - Preserve traceability to the original scientific source and explicitly label missing or unverified source members. -Source-preservation reference: [`projects/CLAUDE.md`](CLAUDE.md). Consolidation and provider-specific routing remain pending review. +Historical source (immutable Git baseline): [`projects/CLAUDE.md` at 29d9c4c, lines 1–41](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/projects/CLAUDE.md#L1-L41). The source remains available if a future `CLAUDE.md` becomes a provider-specific router. Consolidation status and held decisions are tracked in [the migration plan](../docs/dev-context/Agent-Instruction-Consolidation-Plan.md). From 0ebcdcbc84f403cf30336ae5150d67497f640c74 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:49:38 -0700 Subject: [PATCH 07/42] docs(agents): preserve original src/editor/AGENTS.md constraints and pinned provenance --- src/editor/AGENTS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/editor/AGENTS.md b/src/editor/AGENTS.md index 68756cc6..848f41d2 100644 --- a/src/editor/AGENTS.md +++ b/src/editor/AGENTS.md @@ -1,11 +1,11 @@ # Editor — shared agent instructions -Scope: `src/editor/`. Preserve the established editing, control-manifest, authoring and verification discipline. These instructions are provider-neutral; the prior `src/editor/CLAUDE.md` remains intact during staged migration. +Scope: `src/editor/`. Preserve the established editing, control-manifest, authoring and verification discipline. These instructions are provider-neutral. ## Source map and large-file safety -- The editor's R1 extraction reduced the former `LayerPanel.tsx` monolith and distributed controls across focused modules. Preserve the extraction pattern; **do not create an extracted editor file larger than 800 lines** without explicit review. -- Large or historically growing files include `EnvironmentScenePanel.tsx` (environment, lighting, fog, sky/sun), `PagePanel.tsx` (page and cinematic authoring), `topoMap/TopoMapPanel.tsx` (topography, draping, gradients), `EditorContext.tsx` (selection, state, dispatch, persistence), `LayerPanel.tsx`, and `UtahForgeAddToProjectDrop.tsx` (asset drop-in). Do not read those files in full merely to locate a change: first search symbols, then inspect bounded ranges. +- The editor's R1 extraction reduced the former `LayerPanel.tsx` monolith and distributed controls across focused modules. Preserve the extraction pattern; **no new editor extraction file exceeds 800 lines**. This is the original rule, with no added discretionary exception. +- Large or historically growing files include `EnvironmentScenePanel.tsx` (environment, lighting, fog, sky/sun), `PagePanel.tsx` (page and cinematic authoring), `topoMap/TopoMapPanel.tsx` (topography, draping, gradients), `EditorContext.tsx` (selection, state, dispatch, persistence), `LayerPanel.tsx`, and `UtahForgeAddToProjectDrop.tsx` (asset drop-in). **Never read those large files in full**: first search symbols, then inspect bounded ranges. - R1 extraction references include `layerControls/style/StyleControls.tsx`, `layerControls/scalar/ScalarControls.tsx` (barrel; scalar controls are in separate files), and `layerControls/mt/`, `env/`, `page/`, `overlays/`, `layout/`, `seismic/`, `workingArea/`, `geology/`. Shared constants include `layerControls/labelKindOptions.ts` and `layerControls/scalarSourceRange.ts`. - Historically smaller files include `EditorRoot.tsx`, `EditorChrome.tsx`, `OverlayPanel.tsx`, `SiteDetailsPanel.tsx`, `CollapsibleSection.tsx`, `InlineEditableTitle.tsx`, `styleControls.tsx`, `styles.ts`, `types.ts` and `save.ts`. Verify size before whole-file reads; do not depend on old line-count estimates. - Dev Mode Inspector (the `d` key) has a thin `DevModeInspector.tsx` entry and `devMode/` modules: `constants.ts`, `types.ts`, `util.ts`, `text.ts`, `boxModel.ts`, `inspect.ts`, `styles.ts`, `controls.tsx`, `textControls.tsx`, `labelLayout.ts` (pure label-collision packing), and `containerOutlines.tsx` (clickable non-stacking labels). Pure functions in `inspect`, `boxModel`, `labelLayout`, `util`, `text` can be tested without React. `DevModeInspector.tsx` is **not** in the manifest `protectedSourceFiles` list. @@ -24,4 +24,4 @@ Scope: `src/editor/`. Preserve the established editing, control-manifest, author - Before modifying page transitions, editor/save transition gating, section/ISO controls, opacity or page navigation, read `docs/dev-context/Transition-Runtime-Operating-Spec.md` and its required companion documents. - Fix reusable state-resolution or runtime behavior, not the observed Utah FORGE page ID, title or page pair. Use synthetic fixtures for general behavior tests; treat human visual acceptance as a separate gate. -Source-preservation reference: [`src/editor/CLAUDE.md`](CLAUDE.md). This shared file does not retire or overwrite that source during the review phase. +Historical source (immutable Git baseline): [`src/editor/CLAUDE.md` at 29d9c4c, lines 1–70](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L1-L70). This reference remains valid if the current `CLAUDE.md` later becomes a provider-specific router. Migration status belongs in [the migration plan](../../docs/dev-context/Agent-Instruction-Consolidation-Plan.md). From 266a93aae9dbfca718b2111cd991649de038712d Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:49:40 -0700 Subject: [PATCH 08/42] docs(agents): preserve original src/scene/AGENTS.md constraints and pinned provenance --- src/scene/AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scene/AGENTS.md b/src/scene/AGENTS.md index 0c1001f5..65deb12a 100644 --- a/src/scene/AGENTS.md +++ b/src/scene/AGENTS.md @@ -1,11 +1,11 @@ # Scene runtime — shared agent instructions -Scope: `src/scene/`. These provider-neutral rules preserve the scene-runtime guardrails documented in `src/scene/CLAUDE.md`; that original remains unchanged while routing and preservation are reviewed. +Scope: `src/scene/`. These provider-neutral rules preserve the established scene-runtime guardrails. ## Architecture and bounded reads - The Three.js R2 extraction moved scene responsibilities into focused helpers. `SceneManager.ts` and `section/sceneSectionController.ts` have since grown beyond their original post-split targets. Both require scoped, symbol-first inspection rather than whole-file reads. `terrainMaterial.ts` is also large; inspect only relevant shader/material ranges. -- `SceneManager.ts` owns scene lifecycle and the public runtime-facing orchestration. `section/sceneSectionController.ts` handles scene-section apply, helpers and opacity. Historical R2 targets were about 2,550 lines for `SceneManager.ts` and a 1,200-line cap for `sceneSectionController.ts`; these are **historic extraction targets**, not current measurements or permission to disregard safety rules. +- `SceneManager.ts` owns scene lifecycle and the public runtime-facing orchestration. `section/sceneSectionController.ts` handles scene-section apply, helpers and opacity. The original R2 notes recorded a post-split ~2,550-line target for `SceneManager.ts` and a **stated 1,200-line cap** for `sceneSectionController.ts`. The latter is already reported as exceeded. **Do not silently reclassify or relax the stated cap**; its current application is held for review. Neither number is a current source measurement. - Relevant extracted helpers: `handles/sceneHandleControllers.ts`, `isoOverlays/volumeCutIsoOverlays.ts`, `terrain/terrainStyleController.ts`, `workingArea/workingAreaFocusController.ts`, `transitions/layerTweenRuntime.ts`. - Other source-navigation anchors: `heightSampler.ts` for terrain height, `postprocessing.ts` for effects, `disposeObjectTree.ts` for Three.js cleanup, `layerDiagnostics.ts` for diagnostics, `layerLoaderRegistry.ts` for registration, `layerLoaders.ts` for per-kind loaders, and `scalarFocus.ts` for focus and clipping. Confirm current file sizes and implementations rather than trusting historical counts. @@ -18,4 +18,4 @@ Scope: `src/scene/`. These provider-neutral rules preserve the scene-runtime gua - Preserve product-owned shader opacity and derived ISO overlay opacity when composing page/layer transitions. A generic fade must not reveal scientifically hidden products or make section-derived visuals flash. - Fix generic runtime behavior rather than matching a particular project deck, page ID, page title or page pair. Preserve the distinction between synthetic app-behavior evidence and human visual acceptance. -Source-preservation reference: [`src/scene/CLAUDE.md`](CLAUDE.md). This staged copy does not change the existing Claude instruction-loading path. +Historical source (immutable Git baseline): [`src/scene/CLAUDE.md` at 29d9c4c, lines 1–45](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/scene/CLAUDE.md#L1-L45). This reference remains valid if the current `CLAUDE.md` later becomes a provider-specific router. Migration status belongs in [the migration plan](../../docs/dev-context/Agent-Instruction-Consolidation-Plan.md). From e3dc0d8f39f6c5f75d5546f7d87116cf43c4e536 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:49:43 -0700 Subject: [PATCH 09/42] docs(agents): preserve original docs/AGENTS.md constraints and pinned provenance --- docs/AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 41540a76..de732bba 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -8,7 +8,7 @@ Scope: `docs/`. This file describes safe documentation work across coding agents - For durable design decisions and supersession history, consult `docs/03-decisions.md`. Preserve existing entries; record an approved change as a new entry that explicitly identifies any superseded decision. Do not silently reword history. - For task-specific current routing and evidence, use `docs/dev-context/Active-Build-Context.md` and `docs/dev-context/Verification-Routing.md`. Follow links to the smallest relevant technical area; do not search all archives, receipts, generated reports or screenshots by default. - For editor controls and persisted authoring fields, consult `docs/dev-context/Editor-Control-Manifest-Policy.md` and `docs/dev-context/editor-control-manifest.json`. For editor completeness claims and GUI exposure, consult `docs/06-editor-exposure-rules.md`. -- For transition descriptions, consult `docs/dev-context/Transition-Constitution.md`, `docs/dev-context/Transition-Continuity-Contract.md`, `docs/dev-context/Transition-Decision-Log.md`, `docs/dev-context/Transition-Guardrails.md` and `docs/dev-context/Transition-Runtime-Operating-Spec.md`; preserve the status of draft clauses and existing contradictions rather than assigning a new hierarchy here. +- For transition descriptions, consult `docs/dev-context/Transition-Constitution.md`, `docs/dev-context/Transition-Continuity-Contract.md`, `docs/dev-context/Transition-Decision-Log.md`, `docs/dev-context/Transition-Guardrails.md`, `docs/dev-context/Transition-Runtime-Operating-Spec.md` and `docs/dev-context/Page-Transitions-And-Section-Frames.md`; preserve the status of draft clauses and existing contradictions rather than assigning a new hierarchy here. - For visual conventions, consult `docs/dev-context/UI-Visual-Standards.md` and `docs/dev-context/Visual-Review-Current.md`. - For public distribution and scientific provenance, consult `docs/LICENSING.md`, `docs/GEODE-publication-manifest.md`, `docs/dev-context/Dataset-Map.md` and the actual data/source manifests. @@ -25,4 +25,4 @@ Scope: `docs/`. This file describes safe documentation work across coding agents ## Scope limits during instruction consolidation -The current consolidation audit and held discrepancies live in `docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. This file is a new scoped instruction candidate, not a replacement for existing specification detail or a resolution of the held authority conflicts. No repository history, local archive, third-party dataset, user-authored project scene, or other active agent instruction file is implicitly authorized for modification. +The consolidation plan and outstanding review holds are documented in `docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. These scoped instructions do not replace existing specification detail or resolve held authority conflicts. No repository history, local archive, third-party dataset, user-authored project scene, or other active agent instruction file is implicitly authorized for modification. From b12c81cefd759cbd3473bff976fc2b362d2af88d Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 18:51:11 -0700 Subject: [PATCH 10/42] docs(agents): pin 61-rule self-contained preservation crosswalk and review gates --- .../Agent-Instruction-Consolidation-Plan.md | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md index 03600064..20b52b17 100644 --- a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md +++ b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md @@ -125,3 +125,81 @@ Other discovered document-reference errors and stale size estimates remain liste 4. Present held contradictions for an owner decision before any substantial policy change or merge. **Source audit / full rule-by-rule trace:** [GEODE agent-instruction audit, 13 Nov 2026](https://app.notion.com/p/417fb0993276814991e1c7463e20491d). The unchanged GitHub originals remain the verifiable source text. This staged branch must not be merged until agent loading and unresolved authority/safety questions are reviewed. + + +## Full self-contained original-to-owner rule-group crosswalk (61 entries) + +**Scope and authority:** This matrix is a preservation *inventory*, not a declaration that every clause has already been proven semantically equivalent. It copies the 61 rule-group IDs used in the original audit into this public repository so other coding agents can inspect the source without a Notion connection. Each original is pinned to immutable `29d9c4c` file/line references; GitHub history keeps the source text available when provider files later become routers. The existing owning technical specs remain authoritative for their detailed content. Proposed destinations are **review candidates**, not permission to change priority or resolve the eleven holds. + +| ID | Immutable original source | Specific rule and protected content | Candidate owner or existing contract | Preservation condition | +| --- | --- | --- | --- | --- | +| R01 | [AGENTS.md:8-16](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L8-L16) | Selective active-context first read; archived evidence only when needed | `root AGENTS + active router` | No routine full archive reads | +| R02 | [AGENTS.md:18-30](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L18-L30) | Factual handoff/output rail; pronoun restriction and exact exceptions | `root AGENTS [H09]` | Preserve all exceptions; writing scope unresolved | +| R03 | [AGENTS.md:32-43](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L32-L43) | Product/scope/architecture/DEC/verification/manifest route | `root AGENTS + docs AGENTS` | All original routes retained | +| R04 | [AGENTS.md:45-52](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L45-L52) | Old required worktree and auto-switch | `root AGENTS [H01]` | Conflict held; no implicit route to old ancestry | +| R05 | [AGENTS.md:53-55](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L53-L55) | Do not merge UI_EDITOR prototype/packages into main | `root AGENTS` | Only user-scoped standalone package excepted | +| R06 | [AGENTS.md:56-62](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L56-L62) | Check workspace; stage exact paths; protect dirty/excluded user work | `root AGENTS + Verification-Routing` | Distinguish report/commit/broad modes | +| R07 | [AGENTS.md:63-65](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L63-L65) | Manifest approval before editor bar/control changes | `editor AGENTS + manifest owner` | Include hide/move/rename/remove cases | +| R08 | [AGENTS.md:66-71](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L66-L71) | Single render-preset surface; project and page selectors together | `editor AGENTS + UI Visual Standards` | No Global Settings-only or separate mode workaround | +| R09 | [AGENTS.md:72-75](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L72-L75) | Compact quick-legend helpers; no local geometry tuning | `editor AGENTS + UI Visual Standards` | Document explicit exceptions | +| R10 | [AGENTS.md:76-82](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L76-L82) | MT full-density-only mode semantics; 1.5-s scalar mode transition | `UI Visual Standards + transition spec` | Final persistence only scalarLegendVisible and scalarInclusionMode | +| R11 | [AGENTS.md:83-86](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L83-L86) | Cancel/ignore stale RAF mode ticks on page-context change | `transition spec + UI Visual Standards` | Do not repair via authored fixture edits | +| R12 | [AGENTS.md:87-96](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L87-L96) | Global Settings preview preserves page visibility and authored Log10 fields | `UI Visual Standards + transition spec` | No scalarInclusionFilterActive/SCALAR_TRANSITION_STYLE_FIELDS/full-density-scalar mutation | +| R13 | [AGENTS.md:97-102](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L97-L102) | Target authored mode in header; full-density tween drives isolines | `transition spec + UI Visual Standards` | No final-commit target-style replay | +| R14 | [AGENTS.md:103-106](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L103-L106) | Narrow post-settle full-density style refresh only if no tween | `transition spec + UI Visual Standards` | Never replay broad page visibility/styles | +| R15 | [AGENTS.md:107-112](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L107-L112) | Explicit all-off MT boundary flags authoritative (DEC-145) | `UI/transition specs + DEC-145` | Default only if all visibility flags absent | +| R16 | [AGENTS.md:113-119](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L113-L119) | SEG-Y trace-header geometry and Miller CMP fields | `projects scientific owner + source tests` | IBM real CMP_X at byte 189, CMP_Y 193; inline 9-10, crossline 13-14 | +| R17 | [AGENTS.md:120-131](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L120-L131) | L5/L11 unverified registration; enhanced PSDM gate; surrogate exception | `projects scientific owner + DEC-148` | Retain canClaimPreciseRegistration:false, CRC gate, three regression commands | +| R18 | [AGENTS.md:132-135](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L132-L135) | No page- or fixture-specific quick legends or project file edits | `editor AGENTS + UI Visual Standards` | Prohibited pages/overlays/project/environment paths | +| R19 | [AGENTS.md:137-157](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L137-L157) | Bounded search, exclude bulk input/generated/archive directories | `root AGENTS + projects AGENTS` | Explicit subtree searches only when task needs excluded material | +| R20 | [AGENTS.md:159-171](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L159-L171) | Monolith list and symbol-first bounded reads | `root AGENTS + editor/scene AGENTS` | File size estimates historical; not reason to drop read limits | +| R21 | [AGENTS.md:173-178](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L173-L178) | Stop on doc contradiction; append DEC with explicit supersession | `root AGENTS + docs AGENTS [H02]` | Do not overwrite decisions; authority held | +| R22 | [AGENTS.md:180-187](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L180-L187) | Dev-only Vite persistence; no automatic storage rearchitecture | `root AGENTS + projects/editor AGENTS` | Must not replace with IndexedDB/LocalStorage/backend | +| R23 | [AGENTS.md:189-196](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L189-L196) | Raw archive historical provenance and path map | `projects AGENTS + docs provenance` | Historical Windows path informational, not checkout directive | +| R24 | [AGENTS.md:199-201](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L199-L201) | Disposable Utah authoring pages; synthetic app-behavior tests | `transition spec + Verification-Routing` | Deck state checks labeled separately | +| R25 | [AGENTS.md:203-211](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L203-L211) | No page-pair false fixes; reusable behavior families | `transition spec + verification owner` | No live pageOrder as application test proof | +| R26 | [AGENTS.md:213-219](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/AGENTS.md#L213-L219) | Required runtime-transition operating spec pre-read | `root/scene/editor AGENTS + transition specs` | Older audits/matrices evidence, not active runtime contract | +| R27 | [CLAUDE.md:30-42](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/CLAUDE.md#L30-L42) | Claude-only Page-Transitions-And-Section-Frames route | `root/docs AGENTS + transition docs` | Unique route MUST survive conversion to router | +| P01 | [projects/CLAUDE.md:3-13](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/projects/CLAUDE.md#L3-L13) | Four project anchors and mixed authoring/bulk content | `projects/AGENTS.md` | Original ~116MB Utah estimate recorded as historical | +| P02 | [projects/CLAUDE.md:15-28](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/projects/CLAUDE.md#L15-L28) | No blanket grep/glob in scientific data folders | `projects/AGENTS.md` | Binary, raster, coordinate and manifest search hazards; narrow Utah subtree example | +| P03 | [projects/CLAUDE.md:30-35](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/projects/CLAUDE.md#L30-L35) | /api/write-file and Vite disk persistence | `projects/AGENTS.md` | No silent IndexedDB/LocalStorage/backend replacement | +| P04 | [projects/CLAUDE.md:37-41](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/projects/CLAUDE.md#L37-L41) | Upstream local archive and historical source path mapping | `projects/AGENTS.md` | Pin old C:\GeoSee\GeoSee_Archive\ as historical provenance only | +| E01 | [src/editor/CLAUDE.md:3-35](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L3-L35) | R1 split, large editor files, extracted control clusters | `src/editor/AGENTS.md` | Source map preserved; sizes intentionally not assumed current | +| E02 | [src/editor/CLAUDE.md:23-32](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L23-L32) | No new extracted editor file over 800 lines | `src/editor/AGENTS.md` | Exact original hard cap; no discretionary review exception | +| E03 | [src/editor/CLAUDE.md:37-52](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L37-L52) | Small editor components, d-key inspector, pure testable modules | `src/editor/AGENTS.md` | Module map and React-free test subset retained | +| E04 | [src/editor/CLAUDE.md:44-52](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L44-L52) | DevModeInspector not manifest-protected source file | `src/editor/AGENTS.md` | Explicit exception retained | +| E05 | [src/editor/CLAUDE.md:54-62](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L54-L62) | Manifest IDs, add-before-usage, approval for restructure | `src/editor/AGENTS.md + manifest owner` | Preserve ID continuity and allowed removal metadata | +| E06 | [src/editor/CLAUDE.md:63-67](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L63-L67) | Grep and bounded Read; unique patch context for repeated panels | `src/editor/AGENTS.md` | Never full-read monolith to locate edit; do not mutate wrong panel | +| E07 | [src/editor/CLAUDE.md:68-70](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/editor/CLAUDE.md#L68-L70) | save.ts and Vite persistence | `src/editor/AGENTS.md` | Architecture change requires owner | +| S01 | [src/scene/CLAUDE.md:3-19](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/scene/CLAUDE.md#L3-L19) | R2 split and regrown SceneManager/section controller | `src/scene/AGENTS.md [REV-11]` | Record stated 1200-line cap separately from historical file counts | +| S02 | [src/scene/CLAUDE.md:21-32](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/scene/CLAUDE.md#L21-L32) | Extracted scene helper, loader, disposal, diagnostic and terrain map | `src/scene/AGENTS.md` | Specific module paths preserved | +| S03 | [src/scene/CLAUDE.md:34-41](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/scene/CLAUDE.md#L34-L41) | Product-aware opacity/transition code and regression test | `src/scene/AGENTS.md` | Historic commits and mandatory opacity test | +| S04 | [src/scene/CLAUDE.md:42-43](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/scene/CLAUDE.md#L42-L43) | Three.js disposeObjectTree central cleanup | `src/scene/AGENTS.md` | No ad-hoc disposal loops | +| S05 | [src/scene/CLAUDE.md:44-45](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/src/scene/CLAUDE.md#L44-L45) | Register layer kinds via layerLoaderRegistry | `src/scene/AGENTS.md` | No inline registration in SceneManager | +| D01 | [docs/dev-context/Active-Build-Context.md:1-274](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Active-Build-Context.md#L1-L274) | Current work router and engineering source map | `docs/AGENTS.md routes to active owner` | Volatile deck state not a generic runtime invariant | +| D02 | [docs/dev-context/Verification-Routing.md:5-44](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Verification-Routing.md#L5-L44) | Committed, local sketch, excluded work and accepted snapshot evidence modes | `docs/AGENTS.md and existing verification owner` | No broad test result as accepted-deck proof without clean state | +| D03 | [docs/dev-context/Verification-Routing.md:52-56](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Verification-Routing.md#L52-L56) | Human launcher/process safety | `existing Verification-Routing [H07]` | Port mismatch held; do not kill user dev server | +| D04 | [docs/dev-context/Transition-Constitution.md:3-44](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Transition-Constitution.md#L3-L44) | Transition authority claim, visual owner acceptance, page-independent policy | `docs/AGENTS.md routes to transition owner [H03]` | Draft versus active rank unresolved | +| D05 | [docs/dev-context/Transition-Constitution.md:46-53](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Transition-Constitution.md#L46-L53) | Symptom -> fixture -> family -> invariant -> decision -> target -> test -> human | `existing transition owner` | Preserve diagnostic workflow | +| D06 | [docs/dev-context/Transition-Continuity-Contract.md:10-91](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Transition-Continuity-Contract.md#L10-L91) | Resolved graphs, stable identity, per-channel one assignment, idempotent commit | `existing transition owner` | Do not replace with product-name special cases | +| D07 | [docs/dev-context/Transition-Guardrails.md:8-78](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Transition-Guardrails.md#L8-L78) | Tripwires, pre-reads, issue report fields, cheapest tests | `existing transition owner` | No page ID branches, fixture fixes or agent visual signoff | +| D08 | [docs/dev-context/Page-Transitions-And-Section-Frames.md:10-395](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Page-Transitions-And-Section-Frames.md#L10-L395) | Frame/ISO/opacity/MT compatibility and visual regression recipes | `docs/AGENTS.md plus existing transition owner` | Unique former Claude-only route now explicit | +| D09 | [docs/dev-context/Transition-Runtime-Operating-Spec.md:7-289](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Transition-Runtime-Operating-Spec.md#L7-L289) | Detailed transition entities, readiness, opacity, edit gating and final commit | `existing transition owner` | No broad replay or fixture-coupled fixes | +| D10 | [docs/dev-context/UI-Visual-Standards.md:1-595](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/UI-Visual-Standards.md#L1-L595) | Compact legends, global/page presets, visual transitions, handles | `existing UI spec + editor route` | No local quick legend hand-tuning | +| D11 | [docs/dev-context/Editor-Control-Manifest-Policy.md:10-119](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Editor-Control-Manifest-Policy.md#L10-L119) | Protected IDs, page archive, drag-reorder and approval metadata | `existing manifest owner + editor route` | No bypass of approvals and validation | +| D12 | [docs/06-editor-exposure-rules.md:13-146](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/06-editor-exposure-rules.md#L13-L146) | Editor completeness and five-question requirement for user-facing config | `docs/AGENTS.md + editor AGENTS` | Not feature-complete without GUI, persistence, visible human QA | +| D13 | [docs/dev-context/Runtime-Loading-Policy.md:11-197](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Runtime-Loading-Policy.md#L11-L197) | Load-class proposals, source-quality and computed-asset protections | `existing runtime policy + scene/projects` | Proposal marked not yet authorized for implementation | +| D14 | [docs/dev-context/Visual-Review-Current.md:5-115](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Visual-Review-Current.md#L5-L115) | Human visual acceptance distinct from browser/build checks | `existing visual-review owner` | No agent test as final visual acceptance | +| D15 | [docs/dev-context/Current-State.md:3-110](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/dev-context/Current-State.md#L3-L110) | Observed/proposed/unverified distinctions and parked paths | `docs/AGENTS.md routing + historical evidence [H06]` | Do not elevate stale 'current' labels | +| D16 | [docs/00-purpose.md:1](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/00-purpose.md#L1) | Purpose, non-diagnostic alpha and scientific-boundary claims | `docs/AGENTS.md plus product owner` | Do not claim independent GEODE common-spine runtime | +| D17 | [docs/03-decisions.md:1](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/03-decisions.md#L1) | Accepted decision history, explicit supersession and rationale | `docs/AGENTS.md plus DEC owner` | Keep DEC-049/051/145/148/179/184 traceable | +| D18 | [docs/LICENSING.md:1-36](https://github.com/jamespatrickjackson-lang/GEODE/blob/29d9c4c7eee77ac1b104289b09b1382c574145d0/docs/LICENSING.md#L1-L36) | Apache-2 software versus third-party data, external rights and sources | `docs/AGENTS.md and projects/AGENTS.md` | Preserve distribution/provenance boundary | + +### Gating findings from the independent review + +- **No root/Claude routing conversion in this chunk.** The root `AGENTS.md` and root/nested `CLAUDE.md` still have original substance. A provider-neutral root contract and import-only Claude router are pending full clause parity review; never delete original source text on the assumption that an AGENTS filename alone guarantees loading. +- **No automatic nested provider loading guarantee.** Scoping instructions in `src/editor/AGENTS.md`, `src/scene/AGENTS.md`, `projects/AGENTS.md` or `docs/AGENTS.md` does not by itself prove that agents started from the repository root read them before editing nested files. Scope routing and runtime loading tests remain pending; provider-specific adapters must not contain unique engineering rules. +- **Changed-rule corrections recorded:** Editor source says *no new extracted file exceeds 800 lines*, not “except after review”; large editor files remain bounded-read only. Original scene source says a stated 1,200-line controller cap, not merely an optional historic target. Archive root path is preserved as historical provenance and not a working-tree instruction. The missing Page Transitions and Section Frames route was added. Original Claude sources are now linked at immutable baseline revisions rather than current paths which would become routers. +- **CI limitations:** Existing mirror validation checks only `mirror:monoliths`, and `check:agent-drag` does not scan root `AGENTS.md`. Green CI cannot certify parity, full link graph, nested discovery or independent agent execution. No code/runtime test or actual Claude/Codex instruction-loading test was conducted in this phase. + +**Status after these corrective edits:** Original existing files and all H01–H11 owner decision holds stay unchanged. Keep the PR in draft. Before an operational agent migration, independently audit every protected negative rule against its final owner, verify provider loading, and resolve/explicitly accept safety and authority blockers. From a3eb63b09bf312121db59a8fa050d838391f6d1b Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:02:22 -0700 Subject: [PATCH 11/42] docs(agents): reconcile shared root routing without changing legacy safeguards --- AGENTS.md | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 886ad221..06ac184c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,9 +1,16 @@ -# GeoSee Agent Operating Contract — Codex CLI +# GeoSee / GEODE Agent Operating Contract — Shared Engineering Instructions -This file is the operating contract for Codex CLI and other agent runtimes -that auto-load `AGENTS.md`. Claude Code reads `CLAUDE.md` instead; the two -files mirror each other. Source of truth is `CLAUDE.md` — update both when -either changes. +This is the provider-neutral engineering contract for agents working in this +repository. Read the relevant scoped `AGENTS.md` before changing its subtree. +A provider-specific entry file such as `CLAUDE.md` is not intended to own +separate engineering policy. + +**Migration boundary:** The existing root and nested `CLAUDE.md` files still +contain substantive original instructions and remain unchanged during this +review stage. Do not shrink, remove, or replace those instructions until every +unique rule is preserved and provider loading is verified. The migration plan +and unresolved holds are recorded in +`docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. ## First Read @@ -15,6 +22,18 @@ Do not route through old receipt archives, screenshots, staged-intake records, or older root docs unless the task explicitly needs audit history, verification evidence, intake/drop review, or visual QA evidence. +For work under a scoped area, also read its shared instructions **before** +changing files in that area: + +- `projects/AGENTS.md`: project authoring, bulk scientific data and provenance. +- `src/editor/AGENTS.md`: editor controls, persistence, UI and safe edits. +- `src/scene/AGENTS.md`: Three.js runtime, loaders, opacity and transitions. +- `docs/AGENTS.md`: documentation evidence, decisions, source rights and claims. + +Read these explicitly if the current agent runtime does not automatically +discover nested instructions. Do not assume all providers load the same files +or that an abbreviated scoped rule supersedes its detailed technical owner. + ## Output Rail Agent responses use system/dev context transfer: facts, commands, files, @@ -41,6 +60,12 @@ APIs. - Editor sidebar control manifest and approval policy: `docs/dev-context/editor-control-manifest.json` and `docs/dev-context/Editor-Control-Manifest-Policy.md` +- Page transitions and section-frame helpers: + `docs/dev-context/Page-Transitions-And-Section-Frames.md` +- Editor feature completion and user-facing field exposure: + `docs/06-editor-exposure-rules.md` +- Public-release, provenance and third-party data rights: + `docs/LICENSING.md` ## Workspace Rules @@ -145,7 +170,7 @@ following paths unless the task explicitly requires them: - `data/**` — root vector data (includes `hydrography_streams.geojson` at 17 MB). - `dist/**`, `dist-tsbuild/**`, `node_modules/**` — build output and - dependencies. + dependencies; gitignored files may still be reachable by some Glob/file-discovery tools. - `docs/dev-context/Archive/**`, `docs/dev-context/Change-Receipts/**`, `docs/dev-context/Verification-Receipts/**`, From b81ffa45f85444af69500d9e3e7c815e23fc69e0 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:02:53 -0700 Subject: [PATCH 12/42] docs(agents): retain Claude-only human and stable-orientation routes --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 06ac184c..17d5ec9f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -50,6 +50,8 @@ APIs. ## Source Of Truth +- Human repository landing page: `README.md` +- Stable product/system orientation: `docs/START-HERE.md` - Product purpose and alpha boundaries: `docs/00-purpose.md` - Scope: `docs/01-scope.md` - Architecture and locked stack decisions: `docs/02-architecture.md` From d4c1c89efb1bf9a8d5a9c100f78876e2dc84300c Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:03:34 -0700 Subject: [PATCH 13/42] docs(agents): record exact root parity review and draft-only Claude adapter design --- .../Agent-Instruction-Consolidation-Plan.md | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md index 20b52b17..a98f4fab 100644 --- a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md +++ b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md @@ -203,3 +203,43 @@ Other discovered document-reference errors and stale size estimates remain liste - **CI limitations:** Existing mirror validation checks only `mirror:monoliths`, and `check:agent-drag` does not scan root `AGENTS.md`. Green CI cannot certify parity, full link graph, nested discovery or independent agent execution. No code/runtime test or actual Claude/Codex instruction-loading test was conducted in this phase. **Status after these corrective edits:** Original existing files and all H01–H11 owner decision holds stay unchanged. Keep the PR in draft. Before an operational agent migration, independently audit every protected negative rule against its final owner, verify provider loading, and resolve/explicitly accept safety and authority blockers. + + +## Phase 2 review: shared root contract reconciled, Claude routers still held — 13 November 2026 + +**Branch-only change:** `AGENTS.md` is now titled a **shared engineering contract**, rather than identifying Codex as the sole audience and `CLAUDE.md` as the canonical author. This follows the owner's explicitly approved provider-neutral architecture. **It does not imply that any provider's existing instruction loader has been switched.** Root and nested `CLAUDE.md` files are intentionally unchanged; the 11 preexisting contradictions H01–H11 remain unresolved. + +**Semantic comparison at baseline 29d9c4c7eee77ac1b104289b09b1382c574145d0:** Both original root contracts have 12 headings/sections when the intro is counted. The only non-whitespace differences between the baseline root `AGENTS.md` and root `CLAUDE.md` were in their intro, source-of-truth routing and search-hygiene details. All other sections had matching normalized content. The current root `AGENTS.md` preserves **all eight unchanged technical/operational sections exactly byte-for-byte**, including the lengthy MT, seismic, project-fixture and transition special cases. + +| Source section | Exact Phase 2 treatment | Preservation result | +| --- | --- | --- | +| Intro / provider policy | Rewrite the provider-specific “CLAUDE is source of truth” statement to describe the requested **shared root**. Clearly state the parallel Claude file is *still substantive* until tested and converted. | Owner's target architecture stated; no premature import switch | +| First Read | Add explicit routing to `projects/AGENTS.md`, `src/editor/AGENTS.md`, `src/scene/AGENTS.md`, `docs/AGENTS.md` for agents launched outside those directories. Retain the original selective-first-read and historical-archive exceptions verbatim. | Original rule plus explicit scoped discovery | +| Source Of Truth | Preserve existing links and add the unique Claude routes: `README.md` as human landing, `docs/START-HERE.md` as stable orientation, and `docs/dev-context/Page-Transitions-And-Section-Frames.md`. Also route editor exposure and licensing to their existing owners. | No previously unique Claude-only route omitted | +| Search Hygiene | Preserve original excluded path list; incorporate Claude's nuance that gitignored build/dependency files may still be reachable through Glob/discovery. | Same bounded-search obligation, stronger explanatory exception | +| Output Rail | **No edit** | Exact original preserved, disputed writing scope remains H09 | +| Workspace Rules | **No edit** | Exact original preserved, unsafe hard-coded working tree remains H01 | +| Decision Discipline | **No edit** | Exact original preserved, code/document authority remains H02 | +| Authoring Persistence | **No edit** | Exact original preserved | +| Working Tree And Archive | **No edit** | Exact original preserved, historical/archive location remains | +| Disposable Page Fixture Rule | **No edit** | Exact original preserved | +| Page-to-page false-fix ban | **No edit** | Exact original preserved | +| Transition Runtime Operating Spec | **No edit** | Exact original preserved | + +**Explicit safety warning:** The original root `AGENTS.md` and `docs/dev-context/Active-Build-Context.md` still direct agents into `C:\GeoSee\GeoSee_Dev`. Because this path can refer to an unsanitized internal checkout, do **not** merge PR #2 or declare public-checkout routing safe until the owner approves a source-preserving portable-root strategy (H01). Likewise the original document-vs-code and transition precedence disputes (H02/H03) were not settled. + +### Draft future Claude adapter files — NOT WRITTEN OR ENABLED + +The proposed future content for each `CLAUDE.md` file is a single import of the same-directory shared `AGENTS.md`. Each is a **candidate snippet for future review, not a tested runtime mechanism**: + +| Proposed adapter path | Candidate complete content after verified conversion | +| --- | --- | +| root `CLAUDE.md` | `@AGENTS.md` | +| `projects/CLAUDE.md` | `@AGENTS.md` | +| `src/editor/CLAUDE.md` | `@AGENTS.md` | +| `src/scene/CLAUDE.md` | `@AGENTS.md` | +| `docs/CLAUDE.md` (if required) | `@AGENTS.md` | + +**Conversion blockers:** Do not update any of those files until original-to-shared rule parity is independently established, the owner-reviewed holds affecting routing and source-of-truth are addressed, and actual Claude behavior for nested imports is verified. Other providers may require their own tiny adapters rather than treating Claude's syntax as portable. The current `CLAUDE.md` files must remain authoritative for Claude's actual execution until a verified switchover; no partial route-only transition. + +**Verification evidence for this phase:** Static comparison establishes preservation of the eight untouched root sections and the previously Claude-only routing/search details. It is not a live Claude/Codex test, not a Windows local-worktree inspection, and not a full semantic equivalence certification of the future thin-router setup. GitHub CI must be inspected at the new branch HEAD separately. Keep this PR in **draft/unmerged** state. From cdba7b0b4306cadae3504a7126c921e75e0b9224 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:56:37 -0700 Subject: [PATCH 14/42] docs(agents): apply approved H01 H02 H09 policy to AGENTS.md --- AGENTS.md | 64 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 17d5ec9f..7ee05e7d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,9 +6,11 @@ A provider-specific entry file such as `CLAUDE.md` is not intended to own separate engineering policy. **Migration boundary:** The existing root and nested `CLAUDE.md` files still -contain substantive original instructions and remain unchanged during this -review stage. Do not shrink, remove, or replace those instructions until every -unique rule is preserved and provider loading is verified. The migration plan +contain substantive original instructions and have not been converted into +import-only routers. Only owner-approved workspace, authority, and writing +policy corrections are made during this review stage. Do not shrink, remove, +or replace those instructions until their unique rules are preserved and +provider loading is verified. The migration plan and unresolved holds are recorded in `docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. @@ -36,17 +38,18 @@ or that an abbreviated scoped rule supersedes its detailed technical owner. ## Output Rail -Agent responses use system/dev context transfer: facts, commands, files, -risks, decisions, verification, and outcomes. +Agent engineering handoffs use factual system/development reporting: +commands, files, risks, decisions, verification evidence, and outcomes. +Avoid praise, reassurance, motivational framing, apology loops, and +unnecessary personal framing. Keep first/second-person wording restrained +when a concise technical status report does not need it. -Avoid praise, reassurance, motivational framing, apology loops, personal -framing, and first/second-person posture. Avoid first/second-person -pronouns in assistant-authored prose, including `I`, `me`, `my`, `we`, -`our`, `you`, and `your`. - -Exceptions: quoted source text, code identifiers, commands, file content, -UI copy under review, and required wording from tools, tests, or external -APIs. +This reporting convention does **not** dictate the language of user-facing +README content, tutorials, documentation, UX copy, or requested writing. +Write appropriately for the intended audience, including natural first- and +second-person language when useful. Quoted source text, code identifiers, +commands, file content, UI copy, and tool/test/API wording retain their +original form. ## Source Of Truth @@ -71,12 +74,15 @@ APIs. ## Workspace Rules -- The canonical active repo root is `C:\GeoSee\GeoSee_Dev\`. -- If the current working directory is missing the repo, switch to - `C:\GeoSee\GeoSee_Dev\` before inspecting, testing, editing, or - committing. -- `C:\GeoSee_Dev\` is obsolete/stale and must not be treated as the - current working tree. +- Work in the Git checkout explicitly authorized for the current task. + Verify its root with `git rev-parse --show-toplevel`; verify the intended + repository identity and branch before modifying files or committing. +- If no Git checkout is present or its identity is ambiguous, stop and report + rather than selecting a different checkout. Never automatically switch to a + remembered local path. +- Historical `C:\GeoSee\GeoSee_Dev\` and `C:\GeoSee_Dev\` are + local-context references, not universal locations or instructions to enter + those trees. - `UI_EDITOR` prototype/package work stays separate from this active app tree. Do not merge or resurrect `UI_EDITOR/` or `UI_EDITOR_v1_0/` content into `main` unless a request explicitly asks for that standalone package. @@ -199,7 +205,15 @@ range (approximate current line counts): ## Decision Discipline -- If a change would contradict `/docs`, stop and surface it before acting. +- Accepted requirements and dated decisions govern intended behavior; active + approved specifications explain that intent. Current code, tests, project + manifests, and artifacts are evidence of what is implemented, not automatic + approval of a change in requirements. +- If observed implementation and accepted intent disagree, document the + competing clauses and evidence, then stop the affected change for review. + A stale, proposed, or historical document does not automatically override + current observed behavior; current behavior does not silently override an + accepted requirement. - New durable decisions belong in `docs/03-decisions.md`. - Do not rewrite earlier decision entries; add a new entry with a `supersedes DEC-NNN` note when replacing an older decision. @@ -215,9 +229,13 @@ unless the user explicitly asks for a persistence architecture change. ## Working Tree And Archive -- The active working tree is `C:\GeoSee\GeoSee_Dev\`. -- Large raw/source buckets are outside the active repo at - `C:\GeoSee\GeoSee_Archive\`. +- The active working tree is the authorized checkout verified with + `git rev-parse --show-toplevel`, not a fixed machine directory. +- Historical local working-tree path: `C:\GeoSee\GeoSee_Dev\` (reference + only; do not switch to it automatically). +- Historical large raw/source buckets were held outside that tree at + `C:\GeoSee\GeoSee_Archive\`. This is provenance information, not + permission to inspect or modify an archive. - Treat old repo-relative source paths in provenance as historical identifiers and resolve them through `docs/archive-map.md` and `docs/archive-manifest.json`. From 5addef6e4ec4b42c57716de5c79df0edf4fb2288 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:56:40 -0700 Subject: [PATCH 15/42] docs(agents): apply approved H01 H02 H09 policy to CLAUDE.md --- CLAUDE.md | 56 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 4f68216b..71b42fd7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,16 +16,18 @@ verification evidence, intake/drop review, or visual QA evidence. ## Output Rail -Agent responses use system/dev context transfer: facts, commands, files, risks, -decisions, verification, and outcomes. - -Avoid praise, reassurance, motivational framing, apology loops, personal -framing, and first/second-person posture. Avoid first/second-person pronouns in -assistant-authored prose, including `I`, `me`, `my`, `we`, `our`, `you`, and -`your`. - -Exceptions: quoted source text, code identifiers, commands, file content, UI -copy under review, and required wording from tools, tests, or external APIs. +Agent engineering handoffs use factual system/development reporting: +commands, files, risks, decisions, verification evidence, and outcomes. +Avoid praise, reassurance, motivational framing, apology loops, and +unnecessary personal framing. Keep first/second-person wording restrained +when a concise technical status report does not need it. + +This reporting convention does **not** dictate the language of user-facing +README content, tutorials, documentation, UX copy, or requested writing. +Write appropriately for the intended audience, including natural first- and +second-person language when useful. Quoted source text, code identifiers, +commands, file content, UI copy, and tool/test/API wording retain their +original form. ## Source Of Truth @@ -43,11 +45,15 @@ copy under review, and required wording from tools, tests, or external APIs. ## Workspace Rules -- The canonical active repo root is `C:\GeoSee\GeoSee_Dev\`. -- If the current working directory is missing the repo, switch to - `C:\GeoSee\GeoSee_Dev\` before inspecting, testing, editing, or committing. -- `C:\GeoSee_Dev\` is obsolete/stale and must not be treated as the current - working tree. +- Work in the Git checkout explicitly authorized for the current task. + Verify its root with `git rev-parse --show-toplevel`; verify the intended + repository identity and branch before modifying files or committing. +- If no Git checkout is present or its identity is ambiguous, stop and report + rather than selecting a different checkout. Never automatically switch to a + remembered local path. +- Historical `C:\GeoSee\GeoSee_Dev\` and `C:\GeoSee_Dev\` are + local-context references, not universal locations or instructions to enter + those trees. - `UI_EDITOR` prototype/package work stays separate from this active app tree. Do not merge or resurrect `UI_EDITOR/` or `UI_EDITOR_v1_0/` content into `main` unless a request explicitly asks for that standalone package. @@ -170,7 +176,15 @@ range (approximate current line counts): ## Decision Discipline -- If a change would contradict `/docs`, stop and surface it before acting. +- Accepted requirements and dated decisions govern intended behavior; active + approved specifications explain that intent. Current code, tests, project + manifests, and artifacts are evidence of what is implemented, not automatic + approval of a change in requirements. +- If observed implementation and accepted intent disagree, document the + competing clauses and evidence, then stop the affected change for review. + A stale, proposed, or historical document does not automatically override + current observed behavior; current behavior does not silently override an + accepted requirement. - New durable decisions belong in `docs/03-decisions.md`. - Do not rewrite earlier decision entries; add a new entry with a `supersedes DEC-NNN` note when replacing an older decision. @@ -185,9 +199,13 @@ the user explicitly asks for a persistence architecture change. ## Working Tree And Archive -- The active working tree is `C:\GeoSee\GeoSee_Dev\`. -- Large raw/source buckets are outside the active repo at - `C:\GeoSee\GeoSee_Archive\`. +- The active working tree is the authorized checkout verified with + `git rev-parse --show-toplevel`, not a fixed machine directory. +- Historical local working-tree path: `C:\GeoSee\GeoSee_Dev\` (reference + only; do not switch to it automatically). +- Historical large raw/source buckets were held outside that tree at + `C:\GeoSee\GeoSee_Archive\`. This is provenance information, not + permission to inspect or modify an archive. - Treat old repo-relative source paths in provenance as historical identifiers and resolve them through `docs/archive-map.md` and `docs/archive-manifest.json`. From d3e86e5f83d88764572887fb35a5587b7fc18d8f Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:57:46 -0700 Subject: [PATCH 16/42] docs(agents): apply approved GEODE authority and workspace policy in docs/dev-context/Active-Build-Context.md --- docs/dev-context/Active-Build-Context.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/dev-context/Active-Build-Context.md b/docs/dev-context/Active-Build-Context.md index 40386a63..69a8836c 100644 --- a/docs/dev-context/Active-Build-Context.md +++ b/docs/dev-context/Active-Build-Context.md @@ -2,14 +2,18 @@ Status: active entry point for software-build work -Canonical active repo root: `C:\GeoSee\GeoSee_Dev`. If a shell opens in -`C:\GeoSee_Dev` or another path that is missing the repo, change to the -canonical root before running project commands. +Authorized workspace: the Git checkout explicitly supplied for the current task. +Use `git rev-parse --show-toplevel` to locate its root and verify the intended +repository identity and branch before edits or commits. If it is missing or +ambiguous, stop and report; do not automatically switch to another checkout. +Historical local paths `C:\GeoSee\GeoSee_Dev` and `C:\GeoSee_Dev` +are not universal or authorized working roots. Entry hierarchy: - `README.md`: human repo landing page -- `CLAUDE.md`: agent operating contract +- `AGENTS.md`: shared provider-neutral agent operating contract +- `CLAUDE.md`: current Claude-specific entry, still substantive until its separately verified router conversion - `docs/START-HERE.md`: stable product/system orientation - `docs/dev-context/Active-Build-Context.md`: active software-work router @@ -19,7 +23,7 @@ GeoSee is in software-build mode. Start from the requested runtime, editor, visu Do not route normal work through staged-intake records, old review-route artifacts, historical receipts, generated report folders, or old screenshots unless the task explicitly needs that history. -Large raw/source inputs are archived outside the active repo at `C:\GeoSee\GeoSee_Archive`. When current provenance, prep scripts, or generated metadata mention old repo-relative source paths, resolve them through `docs/archive-map.md` and `docs/archive-manifest.json`. +Historical raw/source inputs were kept in a separate local archive at `C:\GeoSee\GeoSee_Archive`. This path is provenance, not permission to enter or modify a different local tree. For historical repo-relative source paths in provenance, prep scripts or metadata, consult `docs/archive-map.md` and `docs/archive-manifest.json`; do not infer local access. Standalone `UI_EDITOR` prototype/package history stays separate from the active GeoSee app. Do not merge or resurrect `UI_EDITOR/` or `UI_EDITOR_v1_0/` content @@ -49,7 +53,7 @@ Core runtime/project surfaces: - `src/scene/SceneManager.ts`: also owns the current product-aware transition envelope, section-window interpolation, and render-entity opacity handling -Treat current project/source files as the authority over older prose. +Current project/source files, tests, manifests and artifacts establish observed implementation and data state; accepted requirements and dated decisions govern intended behavior. Historical prose and draft plans do not silently override observations. If observed behavior contradicts accepted intent, record the discrepancy and stop the affected change for review. ## Current Utah FORGE Reality @@ -124,8 +128,7 @@ tooling, or section-frame helper visuals, read: - `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md` - `docs/dev-context/Page-Transitions-And-Section-Frames.md` -The constitution and decision log are the source of truth for transition -intent. Historical logs and matrix artifacts are evidence only. +Accepted entries in `docs/03-decisions.md` and the relevant accepted transition decision records govern transition intent. The Constitution and Continuity Contract remain draft proposals, not operative precedence over accepted decisions. `docs/dev-context/Transition-Runtime-Operating-Spec.md` is active guidance for current transition implementation, subject to accepted decisions. When these documents genuinely conflict, record the clauses and hold the affected change. Historical logs and matrix artifacts are evidence only. Current MT threshold-surface rendering separates overlay stability from surface opacity semantics. Section ISO lines are late readability overlays, while MT @@ -292,7 +295,7 @@ Receipt and audit subdirs (`Archive/`, `Change-Receipts/`, ## Default Guardrails - Run `npm run check:workspace` before commits or broad verification. -- Follow the output posture in `CLAUDE.md`: system/dev context transfer, not social framing. +- For engineering handoffs, follow the shared `AGENTS.md` factual reporting convention; human-facing writing follows its own audience-appropriate style. - Use the cheapest verification that matches the changed surface. - Prefer targeted browser checks over full Utah regression during iteration. - For transition changes, include at least one focused browser check around the From b16de58cbe655cfb2b8f8f107f92a5c8854f5cae Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:57:48 -0700 Subject: [PATCH 17/42] docs(agents): apply approved GEODE authority and workspace policy in docs/dev-context/Transition-Constitution.md --- docs/dev-context/Transition-Constitution.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/dev-context/Transition-Constitution.md b/docs/dev-context/Transition-Constitution.md index b55bc7fe..5e3db0a3 100644 --- a/docs/dev-context/Transition-Constitution.md +++ b/docs/dev-context/Transition-Constitution.md @@ -1,12 +1,17 @@ # Transition Constitution -Status: draft source of truth. +Status: draft transition-constitution proposal. It is not approved as an overriding authority over accepted decisions or the active Runtime Operating Spec. Read before transition runtime, editor/save, show/hide, legend, page-state, or -matrix/tooling work. This document states durable intent. Historical prep logs -and matrix artifacts are evidence, not authority. +matrix/tooling work. This document records proposed invariant principles and their historical rationale; individual provisions are authoritative only where separately accepted in dated decisions. Historical prep logs and matrix artifacts are evidence, not authority. -## Authority Order +## Proposed Authority Order (draft; not operative precedence) + +The historical draft ranking below is retained for traceability, **not** +as an approved rule for resolving conflicts. Accepted decisions govern intended +behavior; the active `docs/dev-context/Transition-Runtime-Operating-Spec.md` +guides current implementation subject to those decisions. Constitution and +Continuity Contract clauses remain proposals unless separately accepted. 1. This constitution. 2. `docs/dev-context/Transition-Continuity-Contract.md`. @@ -16,8 +21,7 @@ and matrix artifacts are evidence, not authority. 6. `docs/dev-context/Transition-Implementation-Changelog.md`. 7. Historical prep/audit logs and generated artifacts. -When documents disagree, use the highest item in this list and add or update a -decision record before implementing behavior. +When documents disagree, **do not use this draft list to choose a winner**. Identify the exact competing clauses and accepted decision records, hold the affected implementation, and obtain an explicit decision before changing requirements or behavior. ## Core Rules From d390d54baba7b00699e61918e99c0e66818e1c74 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:57:50 -0700 Subject: [PATCH 18/42] docs(agents): apply approved GEODE authority and workspace policy in docs/dev-context/Transition-Continuity-Contract.md --- docs/dev-context/Transition-Continuity-Contract.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dev-context/Transition-Continuity-Contract.md b/docs/dev-context/Transition-Continuity-Contract.md index a4084479..1cb03d56 100644 --- a/docs/dev-context/Transition-Continuity-Contract.md +++ b/docs/dev-context/Transition-Continuity-Contract.md @@ -1,8 +1,8 @@ # Transition Continuity Contract -Status: draft source-of-truth contract. +Status: draft proposed continuity contract. It does not override accepted decisions or the active Runtime Operating Spec unless explicitly adopted. -This document defines transition continuity intent. It is not a page-transition +This document proposes transition continuity intent. Accepted decision records and the active Runtime Operating Spec govern their respective intent and implementation roles; unresolved conflicts must be surfaced rather than silently ranked. It is not a page-transition fix plan and does not authorize visual tuning, camera smoothing, opacity changes, contour cadence changes, section-helper changes, page JSON edits, or fixture-specific remediation. From fc9d3a37f5119257574b58643a3fe830fda38812 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:57:52 -0700 Subject: [PATCH 19/42] docs(agents): apply approved GEODE authority and workspace policy in docs/dev-context/Transition-Runtime-Operating-Spec.md --- docs/dev-context/Transition-Runtime-Operating-Spec.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/dev-context/Transition-Runtime-Operating-Spec.md b/docs/dev-context/Transition-Runtime-Operating-Spec.md index 454ba407..15f62cfd 100644 --- a/docs/dev-context/Transition-Runtime-Operating-Spec.md +++ b/docs/dev-context/Transition-Runtime-Operating-Spec.md @@ -2,6 +2,8 @@ Status: active transition-system operating spec. +This is current implementation guidance, subject to accepted requirements and dated decisions. It does not automatically approve draft Constitution or Continuity Contract clauses. When a proposed draft invariant conflicts with this active guidance or an accepted decision, record the evidence and hold the affected change for owner review. + Purpose: define the intended page-to-page transition model before runtime code changes. ## Non-negotiable rules From ca4289034eec6d73396b6851697d0b0af7792947 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:57:54 -0700 Subject: [PATCH 20/42] docs(agents): apply approved GEODE authority and workspace policy in docs/dev-context/Visual-Review-Current.md --- docs/dev-context/Visual-Review-Current.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev-context/Visual-Review-Current.md b/docs/dev-context/Visual-Review-Current.md index 2fe15b3d..64ba5e16 100644 --- a/docs/dev-context/Visual-Review-Current.md +++ b/docs/dev-context/Visual-Review-Current.md @@ -83,7 +83,7 @@ narrow patch - Do not revisit unless asked: - Intake directives or intake drops for normal software-build work. - Full broad Utah FORGE smoke runs during visual iteration. - - Killing or restarting the user's `5173` app session unless a stale dev-server/module state blocks visual validation and the active process is confirmed to be running from `C:\GeoSee\GeoSee_Dev`. + - Killing or restarting the user's `5173` app session unless a stale dev-server/module state blocks visual validation and the process is confirmed to belong to the explicitly authorized Git checkout (verify with `git rev-parse --show-toplevel`). ## Screenshot Path From aa1d0285ede04fab7e7a26cfda05856a6dd2ebf9 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:57:56 -0700 Subject: [PATCH 21/42] docs(agents): apply approved GEODE authority and workspace policy in docs/AGENTS.md --- docs/AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/AGENTS.md b/docs/AGENTS.md index de732bba..21d69747 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -20,7 +20,7 @@ Scope: `docs/`. This file describes safe documentation work across coding agents - Do not promote third-party scientific data, satellite imagery, reports, research figures, photographs, provenance records or derivative products to Apache-2.0 merely because they appear inside a public repository. Preserve source attribution and verify permissions before republication; see `docs/LICENSING.md`. - Documentation describing a user-facing configuration feature must account for where the field lives, applies, appears in the editor, saves/reloads, and is visually verified. An implementation that is still missing these steps must not be documented as complete; see `docs/06-editor-exposure-rules.md`. - Do not equate automated tests, synthetic fixtures, page/deck snapshots or automated screenshots with the user's required human visual acceptance for presentation or visual-quality changes. -- When source behavior, an active specification and historical prose disagree, **record the competing evidence and hold the resolution**. Do not silently rewrite a decision, alter code to fit a possibly stale document, or promote observed current implementation into an approved requirement. +- Accepted requirements and dated decisions govern intended behavior; source code, tests, and project files establish observed implementation. When observations and accepted intent diverge, **record both and hold the affected change**. Do not silently rewrite decisions, follow a stale proposal over observations, or promote current behavior into an approved requirement. The active Transition Runtime Operating Spec guides implementation; draft Constitution and Continuity Contract clauses remain proposals unless separately accepted. - For docs-only edits, verify changed links and references, check the Git diff, and follow the applicable focused checks in `docs/dev-context/Verification-Routing.md`. Never claim tests or runtime checks ran if they were not executed. ## Scope limits during instruction consolidation From a9855ba4cd03f115d74602bfc4da0d8f835f59f7 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:58:35 -0700 Subject: [PATCH 22/42] docs(decisions): record owner-approved GEODE agent governance as DEC-189 --- docs/03-decisions.md | 65 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/docs/03-decisions.md b/docs/03-decisions.md index 5150e884..8a3a5d42 100644 --- a/docs/03-decisions.md +++ b/docs/03-decisions.md @@ -3938,3 +3938,68 @@ flip via `setForceMaxDetail`, clean revert, no console errors. Live framerate (off vs on) was NOT measurable in the preview harness: the preview tab is `document.hidden`, so `requestAnimationFrame` is throttled to zero frames. FPS delta must be measured on a visible display. + +## DEC-189 - Provider-neutral agent workspace, authority and writing scope + +Status: approved 2026-11-13 by the repository owner. Applies to the GEODE +agent operating contract, working-copy routing, document/evidence +interpretation, and engineering communication. **No application/runtime, +project authoring, source-data, or transition behavior change is authorized +by this governance decision.** + +**H01 — authorized working tree:** An agent must work in the checkout +explicitly supplied for the task, find its root using +`git rev-parse --show-toplevel`, and confirm repository identity and the +intended branch before modifying files or committing. If an authorized +checkout is missing or ambiguous, stop and report. **Never automatically +switch** to `C:\GeoSee\GeoSee_Dev\`, `C:\GeoSee_Dev\` or another +remembered local tree. Retain the original workspace safeguards: +`npm run check:workspace`, focused staging and protection of unrelated +dirty/user files. The historical raw archive path +`C:\GeoSee\GeoSee_Archive\` and archive map remain provenance only, +not authorization for local traversal. + +**H02 — intent versus observation:** Accepted requirements and dated +decisions govern intended behavior, with active approved subsystem specs +providing detail. Current code, tests, project files, manifests and +artifacts are evidence of observed implementation and data state, not +automatic approval of a requirement change. Draft/historical prose does +not silently override observed implementation. If accepted intent and +observed implementation conflict, record both and stop the affected +change for explicit review. Earlier decision records remain immutable; +approved supersession is recorded as a new decision. + +**H03 — transition authority:** The +`docs/dev-context/Transition-Runtime-Operating-Spec.md` is the active +operating guide for current transition implementation, subject to +accepted decision records. `Transition-Constitution.md` and +`Transition-Continuity-Contract.md` remain **draft** proposals unless +particular provisions are separately accepted by a dated decision. +The Constitution's existing numbered ranking is preserved as a +historical *draft* proposal, not operative precedence. Accepted +transition decisions govern approved intent; a real contradiction +between accepted intent, active guidance and proposed invariants is +documented and held for owner resolution. This decision does **not** +reject previously accepted transition invariants or authorize their +runtime reimplementation. + +**H09 — audience-appropriate writing:** Engineering handoffs favor +factual descriptions of commands, evidence, decisions, risk and outcome +without unnecessary social framing. The former universal prohibition +on first- or second-person prose does **not** apply to public README +copy, documentation, tutorials, UX content, requested writing or other +human-facing material; language should serve the intended reader. +Preserve exact wording in quoted text, source code, tools and APIs. + +**Supersession scope:** This decision replaces contradictory +non-decision *agent/documentation wording* requiring a single +Windows checkout path, treating any current source file as an +automatic approved requirement, asserting draft transition precedence, +or applying the engineering handoff writing convention to every +document. It does **not** supersede any numbered technical DEC. + +**Migration holds unaffected:** H04, H05, H06, H07, H08, H10 and H11 +remain pending; no provider adapter has become import-only, no actual +Claude/Codex instruction-loading test is claimed, and no merge is +authorized. Preserve the original source-text and rule crosswalk in +`docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. From cf97b5774c826d79735581872150201b00e543e7 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:59:10 -0700 Subject: [PATCH 23/42] docs(agents): record H01 H02 H03 H09 approvals; preserve 61-group crosswalk --- .../Agent-Instruction-Consolidation-Plan.md | 40 ++++++++++++++++++- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md index a98f4fab..27a396bc 100644 --- a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md +++ b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md @@ -1,6 +1,6 @@ # Agent instruction consolidation: preservation-first staging plan -**Status:** review-only migration plan; no authorization to merge, remove original instructions, alter runtime behavior or resolve conflicting policies. **Baseline:** `main` at `29d9c4c7eee77ac1b104289b09b1382c574145d0` (13 November 2026). +**Status:** review-only migration plan. The owner approved **only H01, H02, H03 and H09** in DEC-189 (13 November 2026); this does not authorize merging, Claude router conversion, runtime changes, or resolving the seven remaining holds. **Baseline:** `main` at `29d9c4c7eee77ac1b104289b09b1382c574145d0` (13 November 2026). **Owner intent:** GEODE is a multi-provider engineering project. Shared engineering knowledge must not be owned exclusively by Claude. `AGENTS.md` is the proposed common instruction interface. A provider file such as `CLAUDE.md` should eventually be a *thin importer/router only*, never an alternate source of substantive policy. Existing unique workflows and regression safeguards must survive migration without being flattened. @@ -99,7 +99,7 @@ Vendor-specific historical tool verbs (such as `Read` with `offset`/`limit`, `Gr These are **consolidation candidates**, not instructions to delete the long-form specifications or lose any subcondition. -## Unresolved holds — intentionally not decided in this pass +## Holds identified in Phase 1 — original audit status (current approvals below) | Hold | Unresolved issue | | --- | --- | @@ -243,3 +243,39 @@ The proposed future content for each `CLAUDE.md` file is a single import of the **Conversion blockers:** Do not update any of those files until original-to-shared rule parity is independently established, the owner-reviewed holds affecting routing and source-of-truth are addressed, and actual Claude behavior for nested imports is verified. Other providers may require their own tiny adapters rather than treating Claude's syntax as portable. The current `CLAUDE.md` files must remain authoritative for Claude's actual execution until a verified switchover; no partial route-only transition. **Verification evidence for this phase:** Static comparison establishes preservation of the eight untouched root sections and the previously Claude-only routing/search details. It is not a live Claude/Codex test, not a Windows local-worktree inspection, and not a full semantic equivalence certification of the future thin-router setup. GitHub CI must be inspected at the new branch HEAD separately. Keep this PR in **draft/unmerged** state. + + +## Phase 3: approved authority/workspace/writing changes — 13 November 2026 + +**Approved by the owner:** H01, H02, H03 and H09, as recorded in +[`DEC-189`](../../03-decisions.md). This section updates the *status* of +the historical Phase 1 holds table above; the historical table and the 61-group +original-source crosswalk remain preserved for auditing. No unapproved +conflict is resolved by implication. + +| Hold | Approved change | Where the draft PR implements it | +| --- | --- | --- | +| H01 | Use the explicitly authorized checkout, find its root with `git rev-parse --show-toplevel`, verify identity/branch, never auto-switch to remembered Windows paths; preserve local archive path as provenance only | Root `AGENTS.md`, root `CLAUDE.md`, `Active-Build-Context.md`, `Visual-Review-Current.md`; `DEC-189` | +| H02 | Separate approved intended requirements from observed source/tests/manifests; record and hold any contradiction instead of automatically treating one as approved truth | Root `AGENTS.md`, root `CLAUDE.md`, `Active-Build-Context.md`, `docs/AGENTS.md`; `DEC-189` | +| H03 | Accepted DEC entries govern transition intent; active Runtime Operating Spec guides implementation; draft Constitution and Continuity Contract have no implicit overriding precedence, including their historical draft ranking | `Active-Build-Context.md`, `Transition-Constitution.md`, `Transition-Continuity-Contract.md`, `Transition-Runtime-Operating-Spec.md`, `docs/AGENTS.md`; `DEC-189` | +| H09 | Keep factual technical handoff style; allow appropriate natural language in README, tutorials, documentation, UX and other human-facing writing | Root `AGENTS.md`, root `CLAUDE.md`, `Active-Build-Context.md`; `DEC-189` | + +**Why the root `CLAUDE.md` was narrowly edited:** It still contains a +substantive working contract, and Claude may load it ahead of `AGENTS.md`. +Leaving the old automatic checkout-switch instruction or universal writing +restriction in that active file would contradict the approved decisions. +Its substantive non-approved rules, and all three nested `CLAUDE.md` files, +remain intact. **No file has been converted into an importer or router.** + +**Remaining holds (not approved here):** +H04 root mirror CI/provider parity; H05 missing transition evidence register; +H06 stale historical current-state references; H07 human launcher port +mismatch; H08 fixture reproduction versus generic test enforcement; +H10 product-aware adapters versus generic transition policy; H11 actual +cross-provider root/nested instruction discovery. Existing evidence for these +remains unchanged; do not silently fix them in this stage. + +**Verification gate:** Review the full GitHub diff, run static documentation +and CI checks, preserve the original 61-row matrix and historical file links, +and leave the PR in **draft/unmerged** state. There are no actual Claude/Codex +loading tests and no application-level behavior changes in this phase. From 9f3123c342503c1b9d6dcbaf09034ed2dc498053 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Fri, 13 Nov 2026 19:59:34 -0700 Subject: [PATCH 24/42] docs(agents): correct relative DEC-189 link in Phase 3 record --- docs/dev-context/Agent-Instruction-Consolidation-Plan.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md index 27a396bc..4c84f80e 100644 --- a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md +++ b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md @@ -248,7 +248,7 @@ The proposed future content for each `CLAUDE.md` file is a single import of the ## Phase 3: approved authority/workspace/writing changes — 13 November 2026 **Approved by the owner:** H01, H02, H03 and H09, as recorded in -[`DEC-189`](../../03-decisions.md). This section updates the *status* of +[`DEC-189`](../03-decisions.md). This section updates the *status* of the historical Phase 1 holds table above; the historical table and the 61-group original-source crosswalk remain preserved for auditing. No unapproved conflict is resolved by implication. From 34dc0f15339beb4a6f44f75298a3980b82fa2b50 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:00:05 -0700 Subject: [PATCH 25/42] test(agents): specify preservation, router atomicity and crosswalk gates (red) --- .../agent-instruction-contracts.test.mjs | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 tests/tools/agent-instruction-contracts.test.mjs diff --git a/tests/tools/agent-instruction-contracts.test.mjs b/tests/tools/agent-instruction-contracts.test.mjs new file mode 100644 index 00000000..5cd587fb --- /dev/null +++ b/tests/tools/agent-instruction-contracts.test.mjs @@ -0,0 +1,82 @@ +import assert from "node:assert/strict"; +import test from "node:test"; + +import { inspectAgentContracts } from "../../tools/checks/lib/agent-contract-check.mjs"; + +const root = "AGENTS.md"; +const scoped = ["projects", "src/editor", "src/scene", "docs"]; +const legacyClaudePaths = ["CLAUDE.md", ...scoped.slice(0, 3).map((s) => `${s}/CLAUDE.md`)]; +const baseline = "29d9c4c7eee77ac1b104289b09b1382c574145d0"; +const groups = [ + ...Array.from({ length: 27 }, (_, i) => `R${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 4 }, (_, i) => `P${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 7 }, (_, i) => `E${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 5 }, (_, i) => `S${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 18 }, (_, i) => `D${String(i + 1).padStart(2, "0")}`), +]; + +function fixture() { + const files = { + [root]: "# Shared agent contract\n\nUse authorized checkout with git rev-parse --show-toplevel.", + }; + for (const scope of scoped) { + files[`${scope}/AGENTS.md`] = `# ${scope} shared contract\n\nPreserve engineering safeguards.`; + } + for (const path of legacyClaudePaths) { + files[path] = "# Legacy Claude contract\n\n## Scope\n" + + "Keep established workspace and verification instructions. ".repeat(4) + + "\n## Safety\nKeep protective rules intact."; + } + files["docs/dev-context/Agent-Instruction-Consolidation-Plan.md"] = groups.map((g) => + `| ${g} | [source](https://github.com/example/GEODE/blob/${baseline}/AGENTS.md#L1-L4) | rule | owner | preserved |` + ).join("\n"); + return files; +} + +test("accepts a fully preserved legacy Claude stage before verified router conversion", () => { + assert.deepEqual(inspectAgentContracts(fixture()), []); +}); + +test("accepts a complete import-only Claude stage when every counterpart is converted", () => { + const files = fixture(); + for (const path of legacyClaudePaths) files[path] = "@AGENTS.md\n"; + assert.deepEqual(inspectAgentContracts(files), []); +}); + +test("rejects a partial import conversion, even if every file exists", () => { + const files = fixture(); + files["CLAUDE.md"] = "@AGENTS.md\n"; + assert.match(inspectAgentContracts(files).join("\n"), /partial Claude conversion/); +}); + +test("rejects a mixed import and substantive-policy file", () => { + const files = fixture(); + for (const path of legacyClaudePaths) files[path] = "@AGENTS.md\n"; + files["src/editor/CLAUDE.md"] = "@AGENTS.md\n## Extra engineering policy\n"; + assert.match(inspectAgentContracts(files).join("\n"), /non-router content/); +}); + +test("rejects missing scoped contracts and duplicate or missing source groups", () => { + const files = fixture(); + delete files["src/scene/AGENTS.md"]; + files["docs/dev-context/Agent-Instruction-Consolidation-Plan.md"] = + files["docs/dev-context/Agent-Instruction-Consolidation-Plan.md"].replace("| D18 |", "| D17 |"); + const errors = inspectAgentContracts(files).join("\n"); + assert.match(errors, /missing shared agent contract.*src\/scene\/AGENTS.md/); + assert.match(errors, /61 unique rule groups/); +}); + +test("rejects crosswalk links to moving branches or unpinned original sources", () => { + const files = fixture(); + files["docs/dev-context/Agent-Instruction-Consolidation-Plan.md"] = + files["docs/dev-context/Agent-Instruction-Consolidation-Plan.md"].replace( + `/blob/${baseline}/`, "/blob/main/" + ); + assert.match(inspectAgentContracts(files).join("\n"), /immutable original-source/); +}); + +test("rejects active auto-switch instructions in shared contract", () => { + const files = fixture(); + files[root] += "\nIf missing, switch to C:\\GeoSee\\GeoSee_Dev before editing."; + assert.match(inspectAgentContracts(files).join("\n"), /legacy checkout auto-switch/); +}); From 9c13c8d2bac3505451d95a38d5080f173a99f9c9 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:00:53 -0700 Subject: [PATCH 26/42] feat(agents): add static preservation checker tools/checks/lib/agent-contract-check.mjs --- tools/checks/lib/agent-contract-check.mjs | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 tools/checks/lib/agent-contract-check.mjs diff --git a/tools/checks/lib/agent-contract-check.mjs b/tools/checks/lib/agent-contract-check.mjs new file mode 100644 index 00000000..978374b2 --- /dev/null +++ b/tools/checks/lib/agent-contract-check.mjs @@ -0,0 +1,93 @@ +// Pure static policy checker. Agent-runtime discovery is NOT established by this check. +export const sharedAgentPaths = [ + "AGENTS.md", + "projects/AGENTS.md", + "src/editor/AGENTS.md", + "src/scene/AGENTS.md", + "docs/AGENTS.md", +]; + +export const legacyClaudePaths = [ + "CLAUDE.md", + "projects/CLAUDE.md", + "src/editor/CLAUDE.md", + "src/scene/CLAUDE.md", +]; + +const crosswalkPath = "docs/dev-context/Agent-Instruction-Consolidation-Plan.md"; +const sourceBaseline = "29d9c4c7eee77ac1b104289b09b1382c574145d0"; + +const expectedIds = [ + ...Array.from({ length: 27 }, (_, i) => `R${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 4 }, (_, i) => `P${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 7 }, (_, i) => `E${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 5 }, (_, i) => `S${String(i + 1).padStart(2, "0")}`), + ...Array.from({ length: 18 }, (_, i) => `D${String(i + 1).padStart(2, "0")}`), +]; + +function normalized(file) { + return (file ?? "").replace(/^\uFEFF/, "").trim(); +} + +export function inspectAgentContracts(files) { + const errors = []; + for (const file of sharedAgentPaths) { + if (!normalized(files[file])) { + errors.push(`missing shared agent contract: ${file}`); + } + } + + const root = normalized(files["AGENTS.md"]); + if (/\bswitch to[^\n]*C:\\GeoSee\\GeoSee_Dev/i.test(root)) { + errors.push("legacy checkout auto-switch still present in shared AGENTS.md"); + } + + let routerCount = 0; + for (const file of legacyClaudePaths) { + const body = normalized(files[file]); + if (!body) { + errors.push(`missing Claude entry: ${file}`); + continue; + } + if (body === "@AGENTS.md") { + routerCount += 1; + continue; + } + if (body.includes("@AGENTS.md")) { + errors.push(`non-router content mixed with @AGENTS.md import in ${file}`); + continue; + } + // During migration, the unconverted Claude contract remains substantive. + if (body.length < 120 || !/^## /m.test(body)) { + errors.push(`unrecognized substantive Claude contract: ${file}`); + } + } + if (routerCount > 0 && routerCount < legacyClaudePaths.length) { + errors.push(`partial Claude conversion: ${routerCount}/${legacyClaudePaths.length} router entries; convert atomically only after runtime validation`); + } + const optionalDocsClaude = normalized(files["docs/CLAUDE.md"]); + if (optionalDocsClaude && optionalDocsClaude !== "@AGENTS.md") { + errors.push("non-router content in optional docs/CLAUDE.md"); + } + + const plan = normalized(files[crosswalkPath]); + if (!plan) { + errors.push(`missing preservation crosswalk: ${crosswalkPath}`); + } else { + const rows = plan.split(/\r?\n/).filter((line) => + /^\|\s*[RPESD]\d{2}\s*\|/.test(line) + ); + const ids = rows.map((row) => row.match(/^\|\s*([RPESD]\d{2})\s*\|/)[1]); + const idSet = new Set(ids); + if (ids.length !== 61 || idSet.size !== 61 || + expectedIds.some((id) => !idSet.has(id))) { + errors.push(`expected 61 unique rule groups (R27/P04/E07/S05/D18); got ${ids.length} rows / ${idSet.size} unique`); + } + for (const row of rows) { + if (!row.includes(`/blob/${sourceBaseline}/`)) { + errors.push(`missing immutable original-source link in crosswalk row ${row.slice(0, 12).trim()}`); + } + } + } + return errors; +} From 669f8b4fa39468344fb6ba121053e29fd9089c60 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:00:55 -0700 Subject: [PATCH 27/42] feat(agents): add static preservation checker tools/checks/check-agent-contracts.mjs --- tools/checks/check-agent-contracts.mjs | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/checks/check-agent-contracts.mjs diff --git a/tools/checks/check-agent-contracts.mjs b/tools/checks/check-agent-contracts.mjs new file mode 100644 index 00000000..78a134c7 --- /dev/null +++ b/tools/checks/check-agent-contracts.mjs @@ -0,0 +1,30 @@ +#!/usr/bin/env node +// Static preservation gate. Does not launch Claude or Codex, and does not +// assert actual instruction discovery. Must pass before router conversion. +import { existsSync, readFileSync } from "node:fs"; +import { resolve } from "node:path"; +import { + inspectAgentContracts, + sharedAgentPaths, + legacyClaudePaths, +} from "./lib/agent-contract-check.mjs"; + +const names = [ + ...sharedAgentPaths, + ...legacyClaudePaths, + "docs/CLAUDE.md", + "docs/dev-context/Agent-Instruction-Consolidation-Plan.md", +]; +const files = Object.fromEntries(names.map((name) => { + const p = resolve(process.cwd(), name); + return [name, existsSync(p) ? readFileSync(p, "utf8") : ""]; +})); +const issues = inspectAgentContracts(files); +if (issues.length) { + console.error("Agent-contract preservation check failed:"); + for (const issue of issues) console.error(" - " + issue); + process.exitCode = 1; +} else { + console.log("Agent-contract static preservation check passed (61 source groups; scoped contracts; Claude migration state)."); + console.log("Provider instruction loading has NOT been tested by this command."); +} From 4b49e4d76a73bc076480811803ff92204a687fc0 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:15 -0700 Subject: [PATCH 28/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in docs/dev-context/Active-Build-Context.md --- docs/dev-context/Active-Build-Context.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/dev-context/Active-Build-Context.md b/docs/dev-context/Active-Build-Context.md index 69a8836c..e8d914eb 100644 --- a/docs/dev-context/Active-Build-Context.md +++ b/docs/dev-context/Active-Build-Context.md @@ -125,9 +125,10 @@ tooling, or section-frame helper visuals, read: - `docs/dev-context/Transition-Continuity-Contract.md` - `docs/dev-context/Transition-Guardrails.md` - `docs/dev-context/Transition-Decision-Log.md` -- `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md` - `docs/dev-context/Page-Transitions-And-Section-Frames.md` +Historical evidence note: `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md` is referenced in older transition material but is absent from the public Git tree inspected on 14 November 2026. It is **not a mandatory pre-read**; do not invent it or claim it was verified. Request the original and a rights/provenance decision if its evidence is needed. + Accepted entries in `docs/03-decisions.md` and the relevant accepted transition decision records govern transition intent. The Constitution and Continuity Contract remain draft proposals, not operative precedence over accepted decisions. `docs/dev-context/Transition-Runtime-Operating-Spec.md` is active guidance for current transition implementation, subject to accepted decisions. When these documents genuinely conflict, record the clauses and hold the affected change. Historical logs and matrix artifacts are evidence only. Current MT threshold-surface rendering separates overlay stability from surface From b6e5a34d281d2375957a546533618e6f5537b18d Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:17 -0700 Subject: [PATCH 29/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in docs/dev-context/Transition-Constitution.md --- docs/dev-context/Transition-Constitution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev-context/Transition-Constitution.md b/docs/dev-context/Transition-Constitution.md index 5e3db0a3..411d2d1a 100644 --- a/docs/dev-context/Transition-Constitution.md +++ b/docs/dev-context/Transition-Constitution.md @@ -17,7 +17,7 @@ Continuity Contract clauses remain proposals unless separately accepted. 2. `docs/dev-context/Transition-Continuity-Contract.md`. 3. `docs/dev-context/Transition-Decision-Log.md`. 4. `docs/dev-context/Transition-Guardrails.md`. -5. `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md`. +5. `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md` (historical missing-public-source reference; not an available pre-read or a current authority). 6. `docs/dev-context/Transition-Implementation-Changelog.md`. 7. Historical prep/audit logs and generated artifacts. From bcb5a1653bbf983532535bfce72f71ccab1b6e58 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:19 -0700 Subject: [PATCH 30/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in docs/dev-context/Transition-Guardrails.md --- docs/dev-context/Transition-Guardrails.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/dev-context/Transition-Guardrails.md b/docs/dev-context/Transition-Guardrails.md index cfd42048..afa1fce7 100644 --- a/docs/dev-context/Transition-Guardrails.md +++ b/docs/dev-context/Transition-Guardrails.md @@ -26,9 +26,10 @@ file before editing and again before reporting. - `docs/dev-context/Transition-Constitution.md` - `docs/dev-context/Transition-Continuity-Contract.md` - `docs/dev-context/Transition-Decision-Log.md` -- `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md` - Relevant entries in `docs/dev-context/Transition-Implementation-Changelog.md` +The historical `docs/dev-context/Transition-Page-Fixture-Evidence-Register-2026-05-31.md` is absent from the public checkout. Its provenance and distributability are unverified; do not fabricate a replacement or block work on this missing *historical* attachment. If a particular claim depends on it, mark the evidence unavailable and seek the original before asserting verification. + ## Required Framing Every report or implementation note should name: @@ -73,9 +74,7 @@ captures, or video capture unless explicitly requested. ## Allowed Fixture Use -Fixtures may be used to reproduce, observe, and record evidence. Fixture details -must stay in evidence registers, generated artifacts, or content-regression -tests. They must not become runtime branches or remediation criteria. +Three evidence roles are distinct: (1) real authored page pairs may be used to reproduce and observe a symptom, but not as its generic fix target; (2) synthetic in-memory fixtures or fixture builders verify reusable application behavior independently of live deck order; (3) named deck-state checks document a particular authored presentation, not general app health. Human visual acceptance is a separate gate for visual quality. Reproduction paths belong in evidence reports or content checks, never in product runtime branches or universal success criteria. ## Transition Runtime Operating Spec From e07f04a8afae61c6f071a60a0c11be3d1264e946 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:21 -0700 Subject: [PATCH 31/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in docs/dev-context/Verification-Routing.md --- docs/dev-context/Verification-Routing.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/dev-context/Verification-Routing.md b/docs/dev-context/Verification-Routing.md index ffadd299..40089f81 100644 --- a/docs/dev-context/Verification-Routing.md +++ b/docs/dev-context/Verification-Routing.md @@ -49,11 +49,13 @@ Run `npm run check:workspace` before commits or broad verification. A dirty tree The former check:utah-snapshot deck-snapshot check has been retired: Utah pages are disposable authoring state, so deck-order snapshotting is no longer a routed command. Deck-order content must not be asserted by app-behavior tests or included in `test:utah-forge`. +**Three evidence classes:** A real page pair may reproduce a bug and support diagnosis; a synthetic fixture is required for a test claiming reusable application behavior; a clearly labeled deck snapshot/matrix describes that particular authored deck only. Human visual acceptance is independent of all three. Never promote page-order observations to a generic fix or verification gate. + ## Dev Server Rule -Agents should not run `Launch GeoSee.bat`. It is a human-facing launcher and it force-kills any process listening on port `5173`, which may interrupt the user's live app session. +Agents should not run `Launch GeoSee.bat`. The human-facing launcher currently uses port **5194** and forcibly terminates the process listening on that port (`APP_PORT=5194` in the batch file). Do not assume that process belongs to the agent or terminate it. The `.claude/launch.json` development configuration uses **5273**. Existing human visual-review instructions refer to a user session on **5173**; these are separate configurations, not a single required port. -For agent-run checks, prefer a scoped dev server command such as `npm run dev -- --host 127.0.0.1 --port ` and report the URL. If port `5173` is already in use, assume it may belong to the user unless the user explicitly asks to restart it. +For agent-run checks, prefer a scoped dev server command such as `npm run dev -- --host 127.0.0.1 --port ` and report the URL. Do not kill an existing listener on **any** port for convenience; assume it may be user-owned unless its identity is verified and the user has authorized restart. ## Disposable Page Fixture Rule From 6b17a19a6487bcaf9e1a406dce8f0a613927e4f9 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:23 -0700 Subject: [PATCH 32/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in docs/dev-context/Current-State.md --- docs/dev-context/Current-State.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/dev-context/Current-State.md b/docs/dev-context/Current-State.md index 47a0270b..6f318736 100644 --- a/docs/dev-context/Current-State.md +++ b/docs/dev-context/Current-State.md @@ -1,12 +1,14 @@ # Current State +**Historical snapshot:** This document records an earlier May–June 2026 state review. Sections using “current” describe the state observed at that time, not an authoritative November 2026 backlog or a command to revive retired workflows. For current work, consult `docs/dev-context/Active-Build-Context.md`, accepted decisions and observed source/tests; independently verify any old status before acting. + ## Authority - Observed: This file is a docs/dev-context population record, not accepted scope, not app runtime, and not official DHF. - Observed: Deterministic state lives in source files, project manifests, generated data artifacts, tests, and explicit human acceptance records. -- Observed: Current project files and generated artifacts are the authority for runtime/data state. +- Observed at time of snapshot: project files and generated artifacts evidenced runtime/data state. Under DEC-189, accepted decisions govern intent and current source/tests/manifests establish observed implementation; neither automatically overrides the other. -## Current Human Priority +## Human Priority at Time of Snapshot - Observed: Current priority is GeoVox data/system/app structural refinement before further implementation. - Observed: Current operating mode is software-build mode. Normal work should start from the requested subsystem and current source/project files, not from stale staged-intake traces. @@ -39,7 +41,7 @@ | Woodjam remains a real/reference project with public terrain, drilling, geochem, geology, hydrography, roads, and related layers. | Observed | `projects/woodjam/project.json`, `docs/woodjam/` | | Shahbazi Gravel Pit / Case Study B has source-derived preview layers plus placeholder/future targets. | Observed | `projects/case-study-b/project.json`, `projects/case-study-b/data/processed/shahbazi_gravel_pit/README.md` | | Utah FORGE manifests now include Phase 3 MT, public context, scalar volume/threshold/top-surface records, and a Phase 3 seismic browser record. | Observed | `projects/utah-forge/project.json`, `projects/utah-forge/environment.json` | -| Utah FORGE verification is split across runtime validators, presentation snapshot checks, and focused browser suites. | Observed | `tools/validate-utah-derived-assets.mjs`, `tools/validate-utah-presentation-snapshot.mjs`, `tests/utah-forge/`, `package.json` | +| Utah FORGE validation used runtime/derived-asset checks and focused browser suites; the formerly referenced presentation snapshot validator is no longer in the tracked repository. | Historical observation, corrected against the published tree on 2026-11-14 | `tools/validate-utah-derived-assets.mjs`, `tests/utah-forge/`, `package.json`. Historical reference: `tools/validate-utah-presentation-snapshot.mjs` (absent; do not invoke). | | A layer/artifact/computed-artifact classification matrix now exists for Utah FORGE, Case Study B / Shahbazi, and Woodjam. | Observed | `docs/dev-context/Layer-Artifact-Classification.md` | | A computed-artifact pipeline guardrail now exists and explicitly protects raw-to-derived analytical/render-ready output generation. | Observed | `docs/dev-context/Computed-Artifact-Pipeline.md` | | Utah FORGE now has a project-local data/layer status guide. | Observed | `projects/utah-forge/DATA_LAYER_STATUS.md`; covers source/client/archived, processed/browser-ready, render-ready, QA/validation, provenance/status wrappers, MT, seismic, public context, and unclear/future artifacts; docs only, no runtime behavior change. Created 2026-05-26 after earlier session entries incorrectly listed this as already present. | From d914bc574b917e512cc0ce362e5270e8392c2dcf Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:26 -0700 Subject: [PATCH 33/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in src/scene/AGENTS.md --- src/scene/AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scene/AGENTS.md b/src/scene/AGENTS.md index 65deb12a..9575750a 100644 --- a/src/scene/AGENTS.md +++ b/src/scene/AGENTS.md @@ -12,6 +12,7 @@ Scope: `src/scene/`. These provider-neutral rules preserve the established scene ## Required editing discipline - Layer registration, opacity and transition handling in `SceneManager.ts` is product-aware. Inspect the precise affected code and its contract before changing behavior. Historical implementation context is recorded in commits `15d3c66`, `bb29e23` and `e326e23`. +- **Adapter boundary:** Product-aware MT, seismic and other renderer adapters may define representation identity, readiness, compatibility, supported channels, masks, scientific visibility and material/source opacity constraints. The common transition policy consumes those normalized facts and must not branch on project names, product names, page IDs, page pairs or editor labels. Specialization at the adapter is not permission to invent competing top-level transition/visibility policies. Preserve existing validated behavior; this clarification does not authorize runtime refactoring. - **Keep the transition-opacity regression test passing** after any change affecting product base opacity, page transitions or visual opacity. Read `docs/dev-context/Transition-Runtime-Operating-Spec.md`, `docs/dev-context/Transition-Continuity-Contract.md`, and transition guardrails for broader changes. - Route Three.js object/geometry/material cleanup through `disposeObjectTree.ts`; do not introduce independent ad-hoc disposal loops. - Register additional layer types through `layerLoaderRegistry.ts`; do not add inline registration inside `SceneManager.ts`. From 1fe66476f7acba4afc6e7deb674e481b56835177 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:28 -0700 Subject: [PATCH 34/42] docs(agents): clarify approved H05 H06 H07 H08 H10 in docs/dev-context/Transition-Runtime-Operating-Spec.md --- docs/dev-context/Transition-Runtime-Operating-Spec.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/dev-context/Transition-Runtime-Operating-Spec.md b/docs/dev-context/Transition-Runtime-Operating-Spec.md index 15f62cfd..fbe4c0bb 100644 --- a/docs/dev-context/Transition-Runtime-Operating-Spec.md +++ b/docs/dev-context/Transition-Runtime-Operating-Spec.md @@ -16,6 +16,8 @@ Purpose: define the intended page-to-page transition model before runtime code c ## Core model +**Product-aware adapters, generic policy:** A scientific renderer may supply domain-specific representation identity, compatibility, channel capability, readiness and owned opacity/visibility constraints. The generic transition classifier must operate on normalized render-entity and channel facts; it must not depend on named products, tools, case studies, page identifiers or a specific authored page pair. This documents the boundary of existing behavior and does **not** authorize changes to loader, geometry, material, scientific thresholds or transition semantics. + A page transition is a deterministic diff between: 1. Source live render graph: From 3afc39416e9d39d89f440c9abe663e5ecbaa779e Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:50 -0700 Subject: [PATCH 35/42] ci(agents): enforce approved static preservation gate in package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d028a1fd..d466b3f0 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,9 @@ "check:editor-controls": "node tools/check-editor-control-manifest.mjs", "check:routes": "node tools/checks/check-routes-resolve.mjs", "check:mirror": "node tools/checks/check-mirror-diff.mjs", + "check:agent-contracts": "node tools/checks/check-agent-contracts.mjs", "test:tools": "node tools/checks/run-source-tests.mjs", - "check:gate": "npm run check:workspace && npm run check:agent-drag && npm run check:routes && npm run check:mirror", + "check:gate": "npm run check:workspace && npm run check:agent-drag && npm run check:routes && npm run check:mirror && npm run check:agent-contracts", "check:workspace": "node tools/check-workspace-state.mjs && node tools/check-editor-control-manifest.mjs", "check:visual-qa-clean": "node tools/check-workspace-state.mjs --broad", "check:startup-console": "node tools/check-startup-console.mjs", From daa2f9296b8dc6f05d83e3a35d453cef1b505163 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:53 -0700 Subject: [PATCH 36/42] ci(agents): enforce approved static preservation gate in .github/workflows/checks.yml --- .github/workflows/checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 02293ece..f9466705 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,6 +21,9 @@ jobs: # Blocking — currently green: - run: npm run check:routes - run: npm run check:mirror + # Validates 61 preserved source groups and the staged Claude contract state. + # check:mirror stays active until the actual adapter switchover. + - run: npm run check:agent-contracts - run: npm run check:editor-controls - run: npm run check:agent-drag - run: npm run check:pages From 04688b0b1467d23fc365004fb00b2fa0ef694960 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:02:54 -0700 Subject: [PATCH 37/42] ci(agents): enforce approved static preservation gate in tools/check-agent-drag.mjs --- tools/check-agent-drag.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-agent-drag.mjs b/tools/check-agent-drag.mjs index e3a45f5b..a507fa93 100644 --- a/tools/check-agent-drag.mjs +++ b/tools/check-agent-drag.mjs @@ -2,7 +2,7 @@ import { readdirSync, readFileSync, statSync } from "node:fs"; import path from "node:path"; const rootDir = process.cwd(); -const scanRoots = ["README.md", "CLAUDE.md", "docs", "projects", "src", "tests"]; +const scanRoots = ["README.md", "AGENTS.md", "CLAUDE.md", "docs", "projects", "src", "tests"]; const allowedExtensions = new Set([ ".css", ".html", From 897da7548c01537aabf9f49378d4c6e2b3568550 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:04:09 -0700 Subject: [PATCH 38/42] docs(decisions): record seven approved GEODE agent-contract dispositions as DEC-190 --- docs/03-decisions.md | 77 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/docs/03-decisions.md b/docs/03-decisions.md index 8a3a5d42..b85b9ce2 100644 --- a/docs/03-decisions.md +++ b/docs/03-decisions.md @@ -4003,3 +4003,80 @@ remain pending; no provider adapter has become import-only, no actual Claude/Codex instruction-loading test is claimed, and no merge is authorized. Preserve the original source-text and rule crosswalk in `docs/dev-context/Agent-Instruction-Consolidation-Plan.md`. + +## DEC-190 - Agent-contract preservation gates, evidence classes, and provider-loading review + +Status: approved 2026-11-14 by the repository owner as the disposition of +H04, H05, H06, H07, H08, H10, H11. Supersedes the *administrative hold status* +for these seven items, **not** any existing scientific or rendering requirement. +This decision authorizes narrow repository documentation and agent-contract +verification work in draft PR #2, without merging or changing application +runtime, scientific datasets, authored project pages, or historical decisions. + +**H04 — single substantive instruction owner:** `AGENTS.md` at root and +scoped directories is the proposed canonical engineering instruction +interface. `CLAUDE.md` will eventually contain only provider-specific +imports/routing, not a parallel engineering rule set. While Claude files +remain substantive, retain the existing mirrored-section CI check and add a +separate static preservation gate for the shared files, router state and +61-group source crosswalk. Only replace the obsolete mirror expectation +*in the same reviewed change* that converts and validates all four Claude +routers. A static gate is not provider-loading evidence. + +**H05 — missing historical fixture register:** The former +`Transition-Page-Fixture-Evidence-Register-2026-05-31.md` is not in the +published GEODE Git tree. Searches of accessible Notion context did not +identify a separate canonical copy. This **does not establish** that no +private or retired copy exists. Remove the impossible mandatory pre-read +in active public documentation, preserve its historical citation and +evidence-status uncertainty, and seek the original and rights clearance +before restoring, distributing, or making claims based on it. Do not +fabricate or silently substitute evidence. + +**H06 — archival context:** Clearly label older state summaries as +historical snapshots and correct active references to absent scripts. +Keep the actual original claims and source links where still useful; +do not rewrite accepted decisions, normalize historical records, or +treat old claims of currency as present-day requirements. + +**H07 — ports and user-session safety:** The checked-in human launcher +uses 5194 and can force-terminate a listener; the Claude launch profile +uses 5273; earlier human visual-review instructions refer to 5173. +Correct documentation without standardizing port selection or modifying +the launcher in this stage. Agents must never terminate a possibly +user-owned listener for convenience; use an isolated free port and +report it. + +**H08 — three distinct proof classes:** A real authored page pair can +reproduce a symptom for diagnosis. Synthetic in-memory fixtures prove +generalizable application behavior. A named deck snapshot/matrix +describes one authored deck, not general app health. Human visual +acceptance remains distinct. Do not implement or test generic +transition corrections through hardcoded page IDs, page-order data, +fixture names or source/target page pairs. + +**H10 — scientific adapter boundary:** Product-aware renderer adapters +may express scientific geometry, material, representation identity, +readiness, compatibility, visibility, supported channels, masks and +owned opacity. Common transition classification operates on normalized +render-entity/channel facts and must not branch on project names, +product families, editor labels or authored page pairs. This +clarification preserves validated existing behavior and does **not** +authorize a transition-engine rewrite. + +**H11 — live provider validation required before routing conversion:** +The four substantive Claude instruction files are to remain intact +until the owner-reviewed full semantic preservation crosswalk is +satisfied and real Claude/Codex instruction discovery is checked for +root, projects, editor, scene and docs scopes. `@AGENTS.md` is a +candidate Claude import, not a verified GEODE runtime mechanism. Test +in an authorized isolated checkout, record actual loaded sources and +any omissions, then convert routers atomically with appropriate CI +changes. Failure to run the live provider checks **blocks claiming +H11 verified**; it does not justify silently converting files. + +**Unchanged safeguards:** DEC-189 remains in force, the 61-rule +original-to-owner crosswalk and immutable baseline source links stay +intact, and prior technical DECs remain historical truth. GitHub PR #2 +remains **draft/unmerged** pending actual provider-loading verification, +review of unresolved source provenance, and a separate merge decision. From 70307331049b7f26d1ec8ae4a9e9f18a4fb46941 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 01:05:31 -0700 Subject: [PATCH 39/42] docs(agents): record DEC-190 approvals and actual provider loading gate --- .../Agent-Instruction-Consolidation-Plan.md | 56 ++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md index 4c84f80e..a79e1b3f 100644 --- a/docs/dev-context/Agent-Instruction-Consolidation-Plan.md +++ b/docs/dev-context/Agent-Instruction-Consolidation-Plan.md @@ -1,6 +1,6 @@ # Agent instruction consolidation: preservation-first staging plan -**Status:** review-only migration plan. The owner approved **only H01, H02, H03 and H09** in DEC-189 (13 November 2026); this does not authorize merging, Claude router conversion, runtime changes, or resolving the seven remaining holds. **Baseline:** `main` at `29d9c4c7eee77ac1b104289b09b1382c574145d0` (13 November 2026). +**Status:** preservation-first migration plan. Owner-approved governance decisions: **H01/H02/H03/H09 in DEC-189 (13 November 2026)** and **H04/H05/H06/H07/H08/H10/H11 approaches in DEC-190 (14 November 2026)**. Implementation is staged in draft PR #2; H05 evidence provenance and H11 real agent loading remain unverified. No approval to merge, change scientific/application runtime behavior, or convert Claude routers before validation. **Baseline:** `main` at `29d9c4c7eee77ac1b104289b09b1382c574145d0` (13 November 2026). **Owner intent:** GEODE is a multi-provider engineering project. Shared engineering knowledge must not be owned exclusively by Claude. `AGENTS.md` is the proposed common instruction interface. A provider file such as `CLAUDE.md` should eventually be a *thin importer/router only*, never an alternate source of substantive policy. Existing unique workflows and regression safeguards must survive migration without being flattened. @@ -279,3 +279,57 @@ remains unchanged; do not silently fix them in this stage. and CI checks, preserve the original 61-row matrix and historical file links, and leave the PR in **draft/unmerged** state. There are no actual Claude/Codex loading tests and no application-level behavior changes in this phase. + + +## Phase 4: DEC-190 approved resolution approaches, staged 14 November 2026 + +**Owner approval:** H04, H05, H06, H07, H08, H10 and H11 approaches approved +on 14 November 2026. The decision is recorded in +[`DEC-190`](../03-decisions.md), following the previously approved +[`DEC-189`](../03-decisions.md). The original Phase 1 holds table and +61-rule original-to-owner matrix are intentionally retained as an +unchanged historical inventory; this section is the current status. + +| Hold | Implemented in this draft | Remaining evidence/gate | +| --- | --- | --- | +| H04 | New `npm run check:agent-contracts` CI check; tests validate 61 uniquely pinned source groups, all scoped contracts, substantive-versus-router state and atomic conversion; root `AGENTS.md` included in `check:agent-drag` | Keep existing `check:mirror` until Claude is converted, then replace it with actual pure-import checks; no real provider loading certified | +| H05 | Inspected published Git tree; searched accessible Notion; missing `Transition-Page-Fixture-Evidence-Register-2026-05-31.md` no longer a mandatory pre-read in active transition docs, but the original missing link remains annotated as historical | Original provenance, privacy and distribution rights **unverified**; do not invent or publish substitute evidence | +| H06 | `Current-State.md` labeled historical May–June snapshot; corrected retired `tools/validate-utah-presentation-snapshot.mjs` reference while preserving its historical mention | Additional dated historical documents may still require review as they become task-relevant; no mass rewrite/delete | +| H07 | `Verification-Routing.md` corrected: human launcher 5194, Claude launch profile 5273, user visual-review session context 5173; forbids terminating unknown processes | Human launcher implementation **unchanged**; opt-in replacement requires separate decision | +| H08 | Verification Routing and Transition Guardrails now distinguish diagnostic real-page pairs, synthetic generic fixtures, deck-specific state checks and separate human visual acceptance | No new application/fixture behavior tests requested or implemented in this docs pass | +| H10 | `src/scene/AGENTS.md` and active Transition Runtime Operating Spec clarify product-specific scientific adapters versus generic normalized-entity/channel transition policy | No runtime refactor; validated product behavior preserved | +| H11 | Concrete provider instruction-loading gate below; script preflight rejects incomplete Claude router conversion | **Real Claude/Codex live loading NOT performed**. Existing four `CLAUDE.md` remain substantive. Conversion/merge blocked until actual loading tested | + +### H11 actual provider instruction-loading matrix — future live gate + +This is a **test plan, not a test report**. Perform only in an authorized, +isolated checkout of the exact review branch. Validate repository identity, +branch and status first; do not switch into remembered local Windows paths, +modify authored project data, or touch an existing user dev session. Do not +assert a provider supports a mode or import until the locally installed version +and configuration are inspected. + +| Start scope | Shared rules required | Claude-specific question | Codex-specific question | +| --- | --- | --- | --- | +| Repository root | Root `AGENTS.md` | Does root `CLAUDE.md` import shared root verbatim without unique rules? | Is root `AGENTS.md` loaded? | +| `projects/` | Root + `projects/AGENTS.md` | Does scoped import correctly attach to project files? | Does invocation rooted here load scoped file? | +| `src/editor/` | Root + `src/editor/AGENTS.md` | Does editor import attach and retain manifest/800-line guardrails? | Does invocation rooted here load scoped file? | +| `src/scene/` | Root + `src/scene/AGENTS.md` | Does scene import attach and retain opacity/loader/disposal guardrails? | Does invocation rooted here load scoped file? | +| `docs/` | Root + `docs/AGENTS.md` | Is a `docs/CLAUDE.md` import actually necessary? | Does invocation rooted here load scoped file? | + +**Procedure:** + +1. Confirm target checkout with `git rev-parse --show-toplevel`, `git remote -v`, `git branch --show-current`, and `git status --short`. Use a separate disposable worktree to trial import files; never mutate the user's active worktree. +2. Check `npm run check:agent-contracts`, `npm run check:mirror`, `npm run test:tools` and the existing PR CI. These are static/source tests, not proof of actual agent loading. +3. Record actual Claude Code version, current instruction-file loading mode/plugin configuration, the explicit instruction sources loaded from root and each subdirectory, and whether an isolated `@AGENTS.md` adapter resolves exactly as intended. A provider's natural-language self-report is a clue, not proof without trace/log or controlled marker checks. +4. Record actual Codex version and instruction chain at root and all four scopes. Codex documentation describes discovery from Git root to working directory, not automatic loading of *every* nested scope when started at repository root. Confirm with observed loaded-source traces and non-editing prompts. +5. Investigate duplicate or missing instructions and cross-provider precedence before converting active files. If a provider fails any required scope, keep substantive Claude contracts and mark H11 **unverified**. +6. Only after a reviewed successful experiment, convert all four `CLAUDE.md` files to exact thin `@AGENTS.md` adapters in a single gated review change, add `docs/CLAUDE.md` if the tests demonstrate need, remove/replace obsolete mirror-section CI in that same change, run all relevant tests, and request a separate merge decision. + +**Current source preservation:** The 61-row crosswalk remains anchored to immutable +baseline `29d9c4c7eee77ac1b104289b09b1382c574145d0`. Do not rewrite +or compress its original source/exception evidence as part of provider routing. + +**No merge authority:** The approval of H04/H11 is approval of the approach and +preparation, **not** proof that a local Claude or Codex environment has loaded +any file. Draft PR #2 stays unmerged. From e288dccb3a123b84e5d528b90a133d746c71328d Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 04:05:39 -0700 Subject: [PATCH 40/42] docs: remove unrelated third-party submission references --- docs/GEODE-release-verification.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/GEODE-release-verification.md b/docs/GEODE-release-verification.md index 28740dcf..2d45c372 100644 --- a/docs/GEODE-release-verification.md +++ b/docs/GEODE-release-verification.md @@ -103,11 +103,7 @@ Dependencies/build output, test-results, temporary directories and media-output To recover, restore the bundle into a **new destination**, verify its refs, and restore the saved working files/patches there. Do not overwrite the live working repository as a routine recovery step. -## Alignerr handoff - -The privacy/history decision is approved and implemented, and initial publication was independently verified. Confirm the CI bootstrap follow-up and use the verified repository URL for the Alignerr project-creation flow, identify GeoSee as the implemented geoscience alpha, and cite concrete source/decision/test evidence. Do not submit an empty repository or present the separate medical branch as already public. - -## Pre-Alignerr submission hardening (12 November 2026) +## Public-repository hardening (12 November 2026) This section is a subsequent, narrowly scoped improvement to the already-published release above. Older launch/CI observations in this report describe their earlier state and should not be mistaken for this new candidate. From cb2b6a71a6c6758e9824eb997a30687cb6eb9a74 Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 11:49:51 -0700 Subject: [PATCH 41/42] docs(w1): route agent onboarding to canonical GeoSee manifest --- AGENTS.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 7ee05e7d..9c4021be 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,6 +16,18 @@ and unresolved holds are recorded in ## First Read +Before choosing a GEODE / GeoSee workstream or making changes, consult the +[canonical GEODE / GeoSee Notion workstream and authority manifest](https://app.notion.com/p/418fb09932768139b693dbf2b5a191aa) for approved product scope, W1–W4 ownership, +current decisions, requirements, dependencies, active holds, and links to the +owning reports. Verify the authorized repository, exact branch/commit and +permissions against live GitHub. The manifest is the single project-level +onboarding route, not a substitute for the engineering instructions in this +file or its scoped counterparts, and does not itself authorize edits, merges, +or releases. Treat historical, provisional, and cross-domain GEODE OSS V2 +materials as reference, not active GeoSee requirements. If the manifest or +assigned workstream is unavailable, report the gap rather than assuming +change authorization. + For normal software-build work, start with `docs/dev-context/Active-Build-Context.md`, then open only the docs and source files directly relevant to the task. From b3f047d1e0344a75f3c5c95441ba68f6d438c5db Mon Sep 17 00:00:00 2001 From: jamespatrickjackson-lang Date: Sat, 14 Nov 2026 11:50:20 -0700 Subject: [PATCH 42/42] docs(w1): align Claude onboarding entry with canonical manifest --- CLAUDE.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 71b42fd7..dd30b7cc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,6 +6,16 @@ landing page, `docs/START-HERE.md` is stable product/system orientation, and ## First Read +Before selecting a GEODE / GeoSee assignment or editing the repository, +consult the [canonical GEODE / GeoSee Notion workstream and authority manifest](https://app.notion.com/p/418fb09932768139b693dbf2b5a191aa) for the +approved product scope, W1–W4 owning records, decisions, current holds and +workstream boundaries. Check live GitHub branch and commit against the owner +record. This external manifest is the single project-level onboarding route; +it does not override this file's provider instructions or grant edit, merge, +or release approval. Historical or exploratory cross-domain GEODE OSS V2 +material is not active GeoSee requirements. If project authority cannot be +verified, report the uncertainty rather than acting on stale entry guidance. + For normal software-build work, start with `docs/dev-context/Active-Build-Context.md`, then open only the docs and source files directly relevant to the task.