Mark no-diff implementation as checkpoint repair
This commit is contained in:
parent
2646c1c775
commit
0746ef76f0
4 changed files with 106 additions and 12 deletions
|
|
@ -42,9 +42,10 @@ Do not trust this file for the exact live HEAD. Always check git.
|
|||
- The Aetheria dogfood run has a contamination scar. The supervising Codex session directly edited and committed target-repo work on `E:\Projects\Aetheria-Economy` instead of only driving Epiphany lanes. Treat those Aetheria commits as supervisor-seeded implementation, not clean evidence that Epiphany coordinated the work. Future dogfood must run through the GUI/coordinator/fixed role lanes with auditable artifacts unless the user explicitly authorizes an operator intervention.
|
||||
- The dogfood quarantine now has a direct-thought boundary. The supervisor may read coordinator actions, role/reorient statuses, structured finding summaries, reviewed state patches, rendered status snapshots, and artifact manifests. It must not read raw worker transcripts, direct worker messages, full turn logs, or `rawResult` payloads during normal dogfood. Those artifacts are sealed for explicit forensic debugging only.
|
||||
- `tools/epiphany_agent_telemetry.py` is the safe instrument panel for sealed runs. Status/coordinator/GUI/dogfood/live-specialist tools generate telemetry JSON from sealed transcripts that preserves method names, call shape, job/status/path counts, and any visible function/tool names while sealing text, direct messages, and raw results.
|
||||
- Latest Aetheria supervised dogfood thread: `019ddc52-4ee8-7203-b6c0-106a9c270067` with codex-home `.epiphany-dogfood/aetheria-supervised/codex-home`. CRRC compact/reorient/reorientAccept reached Epiphany state revision 16 after rollout replay fixes, and a fresh coordinator resume now clears to `continueImplementation`.
|
||||
- The implementation lane is the current MVP blocker. Four `continueImplementation` turns completed without a tracked Aetheria diff; the latest audited artifact is `.epiphany-dogfood/aetheria-supervised/gui-actions/continueImplementation-1777527640605829200-12724`, with `implementation-result.json` showing `workspaceChanged: false` and telemetry showing only `Get-Content` commands with no write verbs.
|
||||
- The GUI now parses `implementation-result.json` into artifact metadata, surfaces the latest implementation diff/no-diff outcome, and pauses immediate `Continue Implementation` repeats when the newest artifact is a no-diff implementation audit. Future `continueImplementation` action bundles also write `implementation-audit.md`.
|
||||
- Latest Aetheria supervised dogfood thread: `019ddc52-4ee8-7203-b6c0-106a9c270067` with codex-home `.epiphany-dogfood/aetheria-supervised/codex-home`. CRRC compact/reorient/reorientAccept reached Epiphany state revision 16 after rollout replay fixes, and a fresh coordinator resume cleared to `continueImplementation`.
|
||||
- The implementation lane is the current product blocker, but it is now harness-visible. The latest audited artifact is `.epiphany-dogfood/aetheria-supervised/gui-actions/continueImplementation-1777528376766401900-25000`: it shows `workspaceChanged: false`, wrote `implementation-audit.md`, applied a no-diff `thread/epiphany/update`, advanced Epiphany state to revision 17, and marked the investigation checkpoint `regather_required`.
|
||||
- A follow-up coordinator plan at `.epiphany-dogfood/aetheria-supervised/coordinator-after-nodiff-state-20260430-plan` now returns `regatherManually` with implementation blocked, instead of continuing fake progress.
|
||||
- The GUI parses `implementation-result.json` into artifact metadata, surfaces the latest implementation diff/no-diff outcome, and pauses immediate `Continue Implementation` repeats when the newest artifact is a no-diff implementation audit.
|
||||
- The repo is an Epiphany fork of Codex, not a Codex preset.
|
||||
- `vendor/codex` is tracked directly, not a submodule.
|
||||
- `epiphany-core` owns the heavy Epiphany organs where practical.
|
||||
|
|
@ -356,13 +357,14 @@ bounded browser-fallback controls. A live bridge probe also proved
|
|||
|
||||
The next real move is not more direct Aetheria implementation. The clean
|
||||
supervised lane now reaches implementation, but the implementation agent is
|
||||
reading and stopping without leaving a diff. The GUI surfaces that and prevents
|
||||
immediate repeat-mashing, but the coordinator still does not know about the
|
||||
implementation failure. Treat this as an MVP blocker: either make no-diff
|
||||
implementation a coordinator-visible review stop or redirect it into a bounded
|
||||
modeling/reorientation repair path, then rerun through the GUI/coordinator/fixed
|
||||
lanes and produce artifacts that show who did what. Read only operator-safe
|
||||
projections; do not open raw worker transcripts, direct
|
||||
reading and stopping without leaving a diff. The GUI surfaces that, immediate
|
||||
repeat-mashing is blocked, and no-diff implementation now marks the checkpoint
|
||||
`regather_required` so the coordinator returns `regatherManually` instead of
|
||||
continuing. Treat this as the next product repair path: run bounded
|
||||
modeling/reorientation to turn the checkpoint back into implementation-ready
|
||||
guidance, then retry through the GUI/coordinator/fixed lanes and produce
|
||||
artifacts that show who did what. Read only operator-safe projections; do not
|
||||
open raw worker transcripts, direct
|
||||
worker messages, or `rawResult` payloads unless the user explicitly asks for
|
||||
forensic debugging. Use generated function/API telemetry for call-shape
|
||||
visibility without sungazing. CRRC is not a specialist-agent persona; the
|
||||
|
|
|
|||
|
|
@ -41,3 +41,4 @@
|
|||
{"ts": "2026-04-30T05:45:31+00:00", "type": "verification", "status": "blocked", "note": "Aetheria supervised dogfood exposed the implementation-lane MVP blocker: four continueImplementation turns completed without any tracked Aetheria workspace diff. The latest audited run at .epiphany-dogfood/aetheria-supervised/gui-actions/continueImplementation-1777527640605829200-12724 records workspaceChanged=false and command telemetry shows only Get-Content reads, no write verbs."}
|
||||
{"ts": "2026-04-30T05:45:38+00:00", "type": "implementation", "status": "ok", "note": "The GUI action bridge now writes implementation-result.json for continueImplementation turns, emits implementation-audit.md on future runs, and the Tauri/React operator console parses implementation-result.json into artifact metadata so the latest no-diff or diff outcome is visible without opening terminal artifacts."}
|
||||
{"ts": "2026-04-30T05:47:56+00:00", "type": "implementation", "status": "ok", "note": "The GUI now treats a newest no-diff implementation artifact as a soft operator gate: Continue Implementation is paused until the operator reviews or runs another lane, preventing immediate repeated no-diff pseudo-progress from the console."}
|
||||
{"ts": "2026-04-30T05:54:22+00:00", "type": "verification", "status": "ok", "note": "Stateful no-diff implementation handling landed and was exercised on the Aetheria dogfood thread: continueImplementation-1777528376766401900-25000 produced no tracked diff, thread/epiphany/update marked the investigation checkpoint regather_required with audit evidence, advanced Epiphany state to revision 17, and a follow-up coordinator plan returned regatherManually with implementation blocked."}
|
||||
|
|
|
|||
|
|
@ -180,5 +180,5 @@ rejected_paths:
|
|||
reason: persistent state that accumulates every local truth becomes memory cruft and weakens rehydration
|
||||
|
||||
current_status:
|
||||
summary: Phase 1 durable state through the Phase 6 GUI/coordinator/specialist/CRRC MVP surfaces are landed. Aetheria dogfood first exposed a supervisor contamination scar, so the quarantine now keeps the supervisor on operator-safe projections and sealed transcripts. The latest clean supervised pass proved the CRRC compact/reorient/reorientAccept lane can reach state revision 16 and clear to `continueImplementation`, but it also exposed the current MVP blocker: repeated implementation turns complete with no tracked Aetheria diff and telemetry shows read-only source inspection. The GUI now surfaces implementation diff/no-diff audit artifacts and pauses immediate repeat when the newest artifact is no-diff; the next fix is making that outcome coordinator/state-visible or redirecting it through a repair lane.
|
||||
next_action: Fix the implementation-lane no-diff loop at the coordinator/state level or redirect it into a bounded modeling/reorientation repair path. The GUI now exposes and soft-gates no-diff artifacts, but the harness-native coordinator still clears to `continueImplementation` after the lanes are clean. Keep supervision through operator-safe projections; do not inspect raw worker transcripts or `rawResult` payloads unless the user explicitly requests forensic debugging.
|
||||
summary: Phase 1 durable state through the Phase 6 GUI/coordinator/specialist/CRRC MVP surfaces are landed. Aetheria dogfood first exposed a supervisor contamination scar, so the quarantine now keeps the supervisor on operator-safe projections and sealed transcripts. The clean supervised pass proved the CRRC compact/reorient/reorientAccept lane can reach state revision 16 and clear to `continueImplementation`; the follow-up implementation pass produced no tracked Aetheria diff, wrote audit artifacts, marked the investigation checkpoint `regather_required`, advanced state to revision 17, and caused the coordinator to block implementation with `regatherManually` instead of fake progress.
|
||||
next_action: Repair the Aetheria implementation lane through operator-safe regathering. The harness now detects no-diff implementation and blocks continuation; the next run should launch or perform a bounded modeling/reorientation repair that turns the checkpoint back into implementation-ready guidance, then retry implementation through the GUI/coordinator lanes. Do not inspect raw worker transcripts or `rawResult` payloads unless the user explicitly requests forensic debugging.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
from copy import deepcopy
|
||||
from datetime import datetime
|
||||
from datetime import timezone
|
||||
import json
|
||||
|
|
@ -228,6 +229,77 @@ Implementation rules:
|
|||
"""
|
||||
|
||||
|
||||
def implementation_no_diff_patch(
|
||||
status: dict[str, Any],
|
||||
*,
|
||||
artifact_dir: Path,
|
||||
implementation_result: dict[str, Any],
|
||||
) -> dict[str, Any] | None:
|
||||
operator_status = sanitize_for_operator(status)
|
||||
state = first_present(
|
||||
operator_status,
|
||||
("read", "thread", "epiphanyState"),
|
||||
("scene", "scene", "epiphanyState"),
|
||||
)
|
||||
if not isinstance(state, dict):
|
||||
return None
|
||||
checkpoint = first_present(
|
||||
state,
|
||||
("investigation_checkpoint",),
|
||||
("investigationCheckpoint",),
|
||||
)
|
||||
if not isinstance(checkpoint, dict):
|
||||
return None
|
||||
|
||||
evidence_id = f"ev-implementation-no-diff-{artifact_dir.name}"
|
||||
observation_id = f"obs-implementation-no-diff-{artifact_dir.name}"
|
||||
updated_checkpoint = deepcopy(checkpoint)
|
||||
updated_checkpoint["disposition"] = "regather_required"
|
||||
updated_checkpoint["summary"] = (
|
||||
"Implementation turn completed with no workspace diff; the current "
|
||||
"checkpoint is insufficient to drive the coding lane safely."
|
||||
)
|
||||
updated_checkpoint["next_action"] = (
|
||||
"Review the no-diff implementation audit, then repair the implementation "
|
||||
"lane through modeling or reorientation before continuing code work."
|
||||
)
|
||||
evidence_ids = updated_checkpoint.get("evidence_ids")
|
||||
if not isinstance(evidence_ids, list):
|
||||
evidence_ids = []
|
||||
if evidence_id not in evidence_ids:
|
||||
evidence_ids = [*evidence_ids, evidence_id]
|
||||
updated_checkpoint["evidence_ids"] = evidence_ids
|
||||
|
||||
return {
|
||||
"investigationCheckpoint": updated_checkpoint,
|
||||
"observations": [
|
||||
{
|
||||
"id": observation_id,
|
||||
"summary": (
|
||||
"The implementation lane completed a bounded turn but left "
|
||||
"no tracked workspace diff, so continuation needs review or "
|
||||
"checkpoint repair."
|
||||
),
|
||||
"source_kind": "implementation",
|
||||
"status": "blocked",
|
||||
"evidence_ids": [evidence_id],
|
||||
}
|
||||
],
|
||||
"evidence": [
|
||||
{
|
||||
"id": evidence_id,
|
||||
"kind": "implementation-audit",
|
||||
"status": "blocked",
|
||||
"summary": (
|
||||
"continueImplementation produced no workspace diff "
|
||||
f"(trackedDiffPresent={bool(implementation_result.get('trackedDiffPresent'))}); "
|
||||
f"artifact={artifact_dir.name}."
|
||||
),
|
||||
}
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def wait_for_role_result(
|
||||
client: AppServerClient,
|
||||
*,
|
||||
|
|
@ -648,9 +720,28 @@ def run_action(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"Ran bounded implementation turn and produced a reviewable workspace diff."
|
||||
)
|
||||
else:
|
||||
no_diff_patch = implementation_no_diff_patch(
|
||||
before,
|
||||
artifact_dir=artifact_dir,
|
||||
implementation_result=implementation_result,
|
||||
)
|
||||
if no_diff_patch is not None and revision is not None:
|
||||
write_json(artifact_dir / "no-diff-state-patch.json", no_diff_patch)
|
||||
no_diff_update = client.send(
|
||||
"thread/epiphany/update",
|
||||
{
|
||||
"threadId": thread_id,
|
||||
"expectedRevision": revision,
|
||||
"patch": no_diff_patch,
|
||||
},
|
||||
)
|
||||
write_json(artifact_dir / "no-diff-state-update.json", no_diff_update)
|
||||
response["noDiffUpdate"] = sanitize_for_operator(no_diff_update)
|
||||
summary = (
|
||||
"Ran bounded implementation turn, but it produced no workspace diff."
|
||||
)
|
||||
if response.get("noDiffUpdate"):
|
||||
summary += " Marked the checkpoint for repair before retry."
|
||||
else:
|
||||
raise ValueError(f"unsupported GUI action: {args.action}")
|
||||
|
||||
|
|
|
|||
Reference in a new issue