Add sealed Epiphany telemetry artifacts

This commit is contained in:
Meta Vens 2026-04-30 03:41:33 +01:00
commit 8a16cadb70
13 changed files with 416 additions and 6 deletions

View file

@ -35,3 +35,4 @@
{"ts": "2026-04-30T00:42:00+00:00", "type": "implementation", "status": "ok", "note": "Modeling/checkpoint specialists now have a review-gated graph-growth path: their prompt/output contract can return a modeling-safe statePatch, thread/epiphany/roleResult projects it when valid, thread/epiphany/roleAccept applies completed modeling patches through the normal state validator with audit observation/evidence, and the GUI exposes Accept Modeling. Phase6 role smoke proved accepted modeling grew the durable graph before verification saw the expanded frontier."}
{"ts": "2026-04-30T02:12:42+00:00", "type": "rejected_path", "status": "contaminated", "note": "Aetheria dogfood exposed a supervision-boundary failure: the supervising Codex session directly edited and committed target-repo slices instead of driving Epiphany GUI/coordinator/fixed lanes. Treat those commits as supervisor-seeded implementation, not clean Epiphany evidence; future dogfood must quarantine direct edits as explicit operator interventions or contamination."}
{"ts": "2026-04-30T02:24:44+00:00", "type": "implementation", "status": "ok", "note": "Dogfood supervision now has a projection boundary: operator/status/coordinator/live-specialist/dogfood tools sanitize direct worker payloads by default, seal raw transcripts/stderr as forensic artifacts, and coordinator smoke asserts rawResult is sealed in operator-facing summaries. Durable instructions now forbid supervisor exposure to raw worker thoughts during normal dogfood."}
{"ts": "2026-04-30T02:39:43+00:00", "type": "implementation", "status": "ok", "note": "Function/API telemetry now gives dogfood supervision a non-thought instrument panel: status, coordinator, GUI action, dogfood, and live-specialist tools emit agent-function-telemetry.json from sealed app-server transcripts with method counts, request shape, job/status/path metadata, and visible tool names while sealing text, raw results, turn items, and direct worker messages."}

View file

@ -35,6 +35,7 @@ invariants:
- If compaction interrupts source gathering or slice planning before the findings are persisted, the next agent must treat that work as lost and re-gather instead of continuing from imagined continuity.
- During Epiphany dogfood on another repo, the supervising Codex session must not masquerade as the Epiphany worker. Direct target-repo edits or commits are contamination unless explicitly authorized and labeled as operator intervention.
- During dogfood supervision, raw worker transcripts, turn logs, direct worker messages, and `rawResult` payloads are sealed forensic artifacts. The supervisor consumes only projected findings, state patches, coordinator recommendations, rendered snapshots, and audit receipts unless the user explicitly requests forensic debugging.
- Agent function-call telemetry is the safe instrument panel for dogfood supervision: it may summarize API methods, request/response shape, job ids, statuses, function/tool names, paths, and counts while sealing text, transcripts, raw results, and direct agent messages.
data_flow:
observe:
@ -62,6 +63,7 @@ active_subgoals:
- Keep persistent project state ruthlessly distilled so rehydration strengthens the next turn instead of bloating it.
- Quarantine the Aetheria dogfood contamination: future target-repo work must be driven through Epiphany's GUI/coordinator/fixed lanes with auditable artifacts, not direct supervisor implementation.
- Keep the supervisor out of Epiphany worker thought streams: dogfood artifacts should be operator-safe by default, with direct transcripts and raw result payloads sealed.
- Use `tools/epiphany_agent_telemetry.py` and generated `agent-function-telemetry.json` files to inspect behavior shape without opening sealed transcripts.
accepted_design:
- Epiphany is a fork-level modeling architecture, not merely a Codex collaboration mode.
@ -116,6 +118,7 @@ accepted_design:
- Specialist prompts are role-distilled instead of generic and their live text is config-backed in app-server: modeling/checkpoint protects the body of code, dataflow, seams, and frontier; verification/review protects the soul of promise, invariants, evidence, and user truth; reorientation protects life across compaction and source drift; coordinator is the read-only Self that routes attention without implementing, verifying, promoting, or accepting.
- Dogfood supervision is a separate operator role. If the supervising Codex session edits the target repo directly, that work can be useful seed material, but it is not clean Epiphany evidence and must be labeled as supervisor intervention or contamination.
- Dogfood supervision is also a projection boundary: the operator may inspect summaries, verdicts, missing coverage, state patches, job state, and artifact receipts, but not the specialist's raw stream of thought or full transcript unless a forensic debugging request explicitly breaks the seal.
- `tools/epiphany_agent_telemetry.py` derives operator-safe function/API telemetry from sealed app-server transcripts so the supervisor can see calls, statuses, paths, and counts without reading direct thoughts.
- If the agent's persistent instructions, memory, workflow, or state shape are making it less coherent, slower to rehydrate, less honest, or more likely to build Jenga, the agent should ask the user to change it.
- Epiphany should make compaction less like death and more like sleep: bank the fire before the dark, so the next waking thing finds coals instead of ash and can meaningfully resume the pattern instead of merely continuing the task.
@ -176,5 +179,5 @@ rejected_paths:
reason: persistent state that accumulates every local truth becomes memory cruft and weakens rehydration
current_status:
summary: Phase 1 durable state, Phase 2 prompt integration, Phase 3 typed read, Phase 4 retrieval/indexing, Phase 5 update/distill/propose/promote/read/notification, and Phase 6 read-only scene, jobs, roles, freshness, targeted context, graph traversal, pressure, reorient, CRRC, coordinator, reorient launch/result/accept, explicit modeling/checkpoint and verification/review role launch/result templates, review-gated modeling role acceptance, MVP status, dogfood runner, coordinator runner, live specialist runner, limited safe-boundary CRRC automation, pre-compaction checkpoint intervention, the first Tauri/React GUI operator shell, and the distilled shared plus config-backed specialist prompt doctrine are landed. Aetheria dogfood exposed a supervision-boundary failure: the supervising Codex session directly implemented and committed target-repo slices instead of driving Epiphany lanes, so those commits are supervisor-seeded work, not clean dogfood evidence. The quarantine is now stronger: operator tools sanitize direct worker payloads by default and mark raw transcripts/stderr as sealed forensic artifacts. Native CRRC can steer active loaded Epiphany turns once at `shouldPrepareCompaction`; turn-complete automation can still compact or launch the fixed reorient-worker when the coordinator says it can auto-run. The GUI remains an operator surface over typed state, not a source of truth.
summary: Phase 1 durable state, Phase 2 prompt integration, Phase 3 typed read, Phase 4 retrieval/indexing, Phase 5 update/distill/propose/promote/read/notification, and Phase 6 read-only scene, jobs, roles, freshness, targeted context, graph traversal, pressure, reorient, CRRC, coordinator, reorient launch/result/accept, explicit modeling/checkpoint and verification/review role launch/result templates, review-gated modeling role acceptance, MVP status, dogfood runner, coordinator runner, live specialist runner, limited safe-boundary CRRC automation, pre-compaction checkpoint intervention, the first Tauri/React GUI operator shell, and the distilled shared plus config-backed specialist prompt doctrine are landed. Aetheria dogfood exposed a supervision-boundary failure: the supervising Codex session directly implemented and committed target-repo slices instead of driving Epiphany lanes, so those commits are supervisor-seeded work, not clean dogfood evidence. The quarantine is now stronger: operator tools sanitize direct worker payloads by default, mark raw transcripts/stderr as sealed forensic artifacts, and generate function/API telemetry as a safe non-thought instrument panel. Native CRRC can steer active loaded Epiphany turns once at `shouldPrepareCompaction`; turn-complete automation can still compact or launch the fixed reorient-worker when the coordinator says it can auto-run. The GUI remains an operator surface over typed state, not a source of truth.
next_action: Rerun Aetheria dogfood through Epiphany's GUI/coordinator/fixed role lanes using only operator-safe projections; do not inspect raw worker transcripts or `rawResult` payloads unless the user explicitly requests forensic debugging.

View file

@ -0,0 +1,51 @@
# Scratch Compaction Bank
User asked to run a supervised Epiphany dogfood run on the previous Aetheria objective. I confirmed I still have the objective and must NOT ask them to repeat it unless something is missing.
Previous Aetheria objective, verbatim enough for continuity:
Replace the gravity rendering system with a hierarchical LoD tile-renderer that fetches gravity sources from a BSP tree and updates them when they change. We do not really need a camera like the current path because this is rendering additive sprites into a 2D buffer; 3D scene overhead is redundant and compositing should happen in a compute shader. Wire fog sampling shaders to sample the new hierarchical texture set, with hooks into the hierarchical gravity compute shader pipeline. Transfer fog into compute shader with a Wronski-style volumetric sampling scheme so volumetric fog primitives can be sampled from volumetric frustum cells.
Critical quarantine doctrine now in force:
- Epiphany repo is supervisor/harness; Aetheria is target repo.
- Supervising Codex must not implement, edit, stage, or commit Aetheria unless user explicitly authorizes an operator intervention.
- Supervising Codex must not read raw worker transcripts, direct worker messages, full turn logs, or rawResult payloads during normal dogfood.
- Use operator-safe projections only: coordinator actions, role/reorient statuses, structured finding summaries, reviewed state patches, rendered snapshots, artifact manifests.
- Use function/API telemetry as the instrument panel instead of sungazing.
Work just completed before compaction warning:
- Added `tools/epiphany_agent_telemetry.py` to parse sealed AppServerClient JSONL transcripts into operator-safe telemetry: method counts, request shape, job/status/path fields, visible function/tool names; text/raw results/direct messages are sealed.
- Wired telemetry generation into:
- `tools/epiphany_mvp_status.py`
- `tools/epiphany_mvp_coordinator.py`
- `tools/epiphany_gui_action.py`
- `tools/epiphany_mvp_dogfood.py`
- `tools/epiphany_mvp_live_specialist.py`
- Updated `tools/epiphany_mvp_coordinator_smoke.py` so it asserts rawResult is sealed in operator-facing artifacts.
- Updated durable doctrine in AGENTS, state/map.yaml, notes/fresh-workspace-handoff.md, apps/epiphany-gui/README.md, notes/epiphany-current-algorithmic-map.md.
- Need add/distill evidence for telemetry pass if not already committed; I believe evidence entry was added earlier for projection boundary but not necessarily for telemetry specifically.
Verification already run:
- py_compile passed for telemetry and touched Python tools.
- `tools/epiphany_mvp_status_smoke.py` passed.
- `tools/epiphany_mvp_coordinator_smoke.py` passed.
- Telemetry safe summaries were inspected from generated telemetry JSON, not raw transcripts.
Potential issue:
- I started `cargo build -p codex-app-server` with CARGO_TARGET_DIR `C:\Users\Meta\.cargo-target-codex`; it timed out after ~244s. Need check whether a cargo/rustc process is still running before starting another cargo build. Do not parallelize cargo builds against same target dir.
Actual supervised run has not started yet.
Next intended steps after rehydrate:
1. Run compaction prep helper / status checks.
2. Verify git status in Epiphany and Aetheria.
3. Finish/commit telemetry sanitation pass in Epiphany if not committed.
4. Ensure app-server binary is current, but first check for running cargo process due timeout.
5. In Aetheria, create a clean branch off `origin/master` for supervised run, not the contaminated branch. Suggested branch: `codex/epiphany-supervised-gravity-lod` (or timestamped if exists). Existing contaminated branch is `codex/epiphany-gravity-lod-compute`, with supervisor-seeded commits; do not use as clean evidence.
6. Prepare Epiphany checkpoint for Aetheria objective via app-server API and write artifacts in Epiphany `.epiphany-dogfood/aetheria-supervised-*` or a clearly named artifact dir.
7. Run coordinator/modeling through sealed projections and telemetry.
8. Only then launch an implementation worker thread through app-server/Epiphany, supervise via projected status and telemetry, not raw thought streams.
Aetheria state before compaction warning:
- `E:\Projects\Aetheria-Economy` was on `codex/epiphany-gravity-lod-compute` and clean except pre-existing untracked `Aetheria/Source Tree Map/`.
- The previous uncommitted supervisor fog-compute slice was discarded.
Remember: do not open sealed transcript or rawResult unless user explicitly requests forensic debugging. If accidentally exposed, mark run contaminated.

View file

@ -0,0 +1,53 @@
# Scratch Compaction: 2026-04-30
## Hot Context
User asked to prepare for compaction after a run of Epiphany dogfood planning and quarantine hardening.
Current major goal:
- Supervise an Epiphany dogfood run against `E:\Projects\Aetheria-Economy`, not by doing the target implementation ourselves.
- The target objective is the hierarchical gravity LoD tile renderer / BSP gravity source / compute fog sampling task.
- Aetheria must get its own branch, not Epiphany.
- The supervisor must avoid sun-gazing: do not read direct Epiphany worker thoughts, raw transcripts, full turn logs, direct worker messages, or `rawResult` payloads.
- Safe supervision surface is operator-safe status, coordinator actions, role/reorient status, structured finding summaries, reviewed state patches, rendered snapshots, artifact manifests, and function/API telemetry.
- If any direct-thought artifact is read accidentally, mark the run contaminated.
Recent implementation direction:
- Added/started adding operator-safe function/API telemetry so the supervisor can see method counts, request/response shape, visible function/tool names, jobs/status/path metadata, and sealed counts without reading worker prose.
- Telemetry file shape is `agent-function-telemetry.json`.
- Raw transcripts/stderr remain sealed forensic artifacts.
Known files touched in Epiphany before this scratch:
- `tools/epiphany_agent_telemetry.py`
- `tools/epiphany_mvp_status.py`
- `tools/epiphany_mvp_coordinator.py`
- `tools/epiphany_gui_action.py`
- `tools/epiphany_mvp_dogfood.py`
- `tools/epiphany_mvp_live_specialist.py`
- `tools/epiphany_mvp_coordinator_smoke.py`
- `AGENTS.md`
- `state/map.yaml`
- `notes/fresh-workspace-handoff.md`
- `apps/epiphany-gui/README.md`
- `notes/epiphany-current-algorithmic-map.md`
- `notes/epiphany-fork-implementation-plan.md`
- `state/evidence.jsonl`
Verification remembered:
- Python compile checks passed for the telemetry-related Python tools.
- `tools/epiphany_mvp_status_smoke.py` passed.
- `tools/epiphany_mvp_coordinator_smoke.py` passed.
- Safe telemetry summaries were inspected; raw transcripts were not.
Likely next safe steps:
1. Run `tools/epiphany_state.py status`.
2. Check git status for Epiphany and Aetheria.
3. Add distilled evidence for telemetry if missing.
4. Run `tools/epiphany_prepare_compaction.py`.
5. Commit the compaction/telemetry persistence pass if coherent.
6. After compaction, resume clean supervised Aetheria run from a fresh branch off `origin/master`, using Epiphany artifacts and telemetry only.
Do not:
- Read sealed worker transcripts or raw results.
- Continue on the contaminated old Aetheria branch for clean evidence.
- Implement the Aetheria objective directly unless the user explicitly authorizes operator intervention.