Add Epiphany investigation checkpoints
This commit is contained in:
parent
e1298e58a9
commit
71ea1ed2ea
17 changed files with 578 additions and 40 deletions
|
|
@ -29,6 +29,18 @@ def context_patch() -> dict[str, Any]:
|
|||
return {
|
||||
"objective": "Expose a read-only Epiphany context shard without returning the full state.",
|
||||
"activeSubgoalId": "phase6-context-smoke",
|
||||
"investigationCheckpoint": {
|
||||
"checkpoint_id": "phase6-context-investigation",
|
||||
"kind": "source_gathering",
|
||||
"disposition": "regather_required",
|
||||
"focus": "Make stale planning obvious when context is re-read after compaction.",
|
||||
"summary": "Context reflection should expose the full durable checkpoint packet.",
|
||||
"next_action": "Re-gather source before editing if the packet no longer matches reality.",
|
||||
"captured_at_turn_id": "turn-phase6-context",
|
||||
"open_questions": ["How much checkpoint detail belongs in scene versus context?"],
|
||||
"code_refs": [CONTEXT_CODE_REF],
|
||||
"evidence_ids": ["ev-context-linked"],
|
||||
},
|
||||
"subgoals": [
|
||||
{
|
||||
"id": "phase6-context-smoke",
|
||||
|
|
@ -153,6 +165,15 @@ def assert_ready_context(response: dict[str, Any]) -> None:
|
|||
response["context"]["checkpoint"]["checkpoint_id"] == "phase6-context-smoke",
|
||||
"context should expose the current graph checkpoint",
|
||||
)
|
||||
require(
|
||||
response["context"]["investigationCheckpoint"]["checkpoint_id"]
|
||||
== "phase6-context-investigation",
|
||||
"context should expose the investigation checkpoint id",
|
||||
)
|
||||
require(
|
||||
response["context"]["investigationCheckpoint"]["disposition"] == "regather_required",
|
||||
"context should expose the checkpoint disposition",
|
||||
)
|
||||
require(
|
||||
[record["id"] for record in response["context"]["observations"]] == ["obs-context"],
|
||||
"context should include requested observation",
|
||||
|
|
@ -266,6 +287,12 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"architectureNodeIds": [
|
||||
node["id"] for node in ready_response["context"]["graph"]["architectureNodes"]
|
||||
],
|
||||
"investigationCheckpointId": ready_response["context"]["investigationCheckpoint"][
|
||||
"checkpoint_id"
|
||||
],
|
||||
"investigationDisposition": ready_response["context"]["investigationCheckpoint"][
|
||||
"disposition"
|
||||
],
|
||||
"evidenceIds": [record["id"] for record in ready_response["context"]["evidence"]],
|
||||
"contextNotificationCount": client.count_notifications(
|
||||
"thread/epiphany/stateUpdated",
|
||||
|
|
|
|||
|
|
@ -50,6 +50,20 @@ def initial_scene_patch() -> dict[str, Any]:
|
|||
return {
|
||||
"objective": "Expose live Epiphany scene reflection without creating a second source of truth.",
|
||||
"activeSubgoalId": "phase6-scene-smoke",
|
||||
"investigationCheckpoint": {
|
||||
"checkpoint_id": "phase6-scene-investigation",
|
||||
"kind": "slice_planning",
|
||||
"disposition": "resume_ready",
|
||||
"focus": "Bank the active scene-smoke packet before the lights go out.",
|
||||
"summary": "Scene reflection should surface the durable investigation packet.",
|
||||
"next_action": "Patch the remaining smoke coverage and rerun the focused verifier pass.",
|
||||
"captured_at_turn_id": "turn-phase6-scene",
|
||||
"open_questions": [
|
||||
"Should scene reflection compress checkpoint counts or expose full detail?"
|
||||
],
|
||||
"code_refs": [MAPPER_CODE_REF],
|
||||
"evidence_ids": ["ev-phase6-scene-1"],
|
||||
},
|
||||
"subgoals": [
|
||||
{
|
||||
"id": "phase6-scene-smoke",
|
||||
|
|
@ -167,6 +181,14 @@ def assert_ready_scene(scene: dict[str, Any], expected_revision: int) -> None:
|
|||
scene["graph"]["checkpointId"] == "phase6-scene-smoke",
|
||||
"scene should expose graph checkpoint",
|
||||
)
|
||||
require(
|
||||
scene["investigationCheckpoint"]["checkpointId"] == "phase6-scene-investigation",
|
||||
"scene should expose the investigation checkpoint id",
|
||||
)
|
||||
require(
|
||||
scene["investigationCheckpoint"]["disposition"] == "resume_ready",
|
||||
"scene should expose the checkpoint disposition",
|
||||
)
|
||||
require(
|
||||
scene["retrieval"]["workspaceRoot"].endswith("epiphany-core"),
|
||||
"scene should include live retrieval summary backfill",
|
||||
|
|
@ -320,6 +342,12 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"readySource": ready_response["scene"]["source"],
|
||||
"readyRevision": ready_response["scene"]["revision"],
|
||||
"readyAvailableActions": ready_response["scene"]["availableActions"],
|
||||
"investigationCheckpointId": ready_response["scene"]["investigationCheckpoint"][
|
||||
"checkpointId"
|
||||
],
|
||||
"investigationDisposition": ready_response["scene"]["investigationCheckpoint"][
|
||||
"disposition"
|
||||
],
|
||||
"latestObservationIds": [
|
||||
record["id"] for record in ready_response["scene"]["observations"]["latest"]
|
||||
],
|
||||
|
|
|
|||
Reference in a new issue