Add Ghostlight heartbeat initiative seam
This commit is contained in:
parent
96f04b2a74
commit
d7c98a91ef
10 changed files with 889 additions and 3 deletions
179
state/agent-heartbeats.json
Normal file
179
state/agent-heartbeats.json
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
{
|
||||
"schema_version": "epiphany.agent_heartbeat.v0",
|
||||
"target_heartbeat_rate": 1.0,
|
||||
"scene_clock": 0.0,
|
||||
"selection_policy": {
|
||||
"mode": "readiness_queue",
|
||||
"reaction_precedence": true,
|
||||
"minimum_speed": 0.2,
|
||||
"tie_breakers": [
|
||||
"reaction_readiness_desc",
|
||||
"next_ready_at_asc",
|
||||
"initiative_speed_desc",
|
||||
"stable_actor_id_asc"
|
||||
]
|
||||
},
|
||||
"participants": [
|
||||
{
|
||||
"agent_id": "epiphany.self",
|
||||
"role_id": "coordinator",
|
||||
"display_name": "Self",
|
||||
"initiative_speed": 1.28,
|
||||
"next_ready_at": 1.5625,
|
||||
"reaction_bias": 0.88,
|
||||
"interrupt_threshold": 0.42,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Routes and reviews; must not implement, verify, or accept its own comfort."
|
||||
],
|
||||
"last_action_id": "heartbeat.coordinator.ruminate",
|
||||
"last_woke_at": "2026-05-05T12:25:10+00:00"
|
||||
},
|
||||
{
|
||||
"agent_id": "epiphany.imagination",
|
||||
"role_id": "imagination",
|
||||
"display_name": "Imagination",
|
||||
"initiative_speed": 0.82,
|
||||
"next_ready_at": 0.0,
|
||||
"reaction_bias": 0.54,
|
||||
"interrupt_threshold": 0.64,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Synthesizes futures; must not adopt objectives."
|
||||
],
|
||||
"last_action_id": null,
|
||||
"last_woke_at": null
|
||||
},
|
||||
{
|
||||
"agent_id": "epiphany.eyes",
|
||||
"role_id": "research",
|
||||
"display_name": "Eyes",
|
||||
"initiative_speed": 0.78,
|
||||
"next_ready_at": 0.0,
|
||||
"reaction_bias": 0.62,
|
||||
"interrupt_threshold": 0.58,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Scouts known work; must not turn research into procrastination."
|
||||
],
|
||||
"last_action_id": null,
|
||||
"last_woke_at": null
|
||||
},
|
||||
{
|
||||
"agent_id": "epiphany.body",
|
||||
"role_id": "modeling",
|
||||
"display_name": "Body",
|
||||
"initiative_speed": 0.92,
|
||||
"next_ready_at": 0.0,
|
||||
"reaction_bias": 0.74,
|
||||
"interrupt_threshold": 0.5,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Grows source-grounded maps and checkpoints; must not edit implementation code."
|
||||
],
|
||||
"last_action_id": null,
|
||||
"last_woke_at": null
|
||||
},
|
||||
{
|
||||
"agent_id": "epiphany.hands",
|
||||
"role_id": "implementation",
|
||||
"display_name": "Hands",
|
||||
"initiative_speed": 0.74,
|
||||
"next_ready_at": 8.108108,
|
||||
"reaction_bias": 0.58,
|
||||
"interrupt_threshold": 0.5,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Touches source only with accepted guidance and verifier-readable evidence."
|
||||
],
|
||||
"last_action_id": "heartbeat.implementation.work",
|
||||
"last_woke_at": "2026-05-05T12:17:57+00:00"
|
||||
},
|
||||
{
|
||||
"agent_id": "epiphany.soul",
|
||||
"role_id": "verification",
|
||||
"display_name": "Soul",
|
||||
"initiative_speed": 0.88,
|
||||
"next_ready_at": 0.0,
|
||||
"reaction_bias": 0.82,
|
||||
"interrupt_threshold": 0.48,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Falsifies promises; must not bless theater."
|
||||
],
|
||||
"last_action_id": null,
|
||||
"last_woke_at": null
|
||||
},
|
||||
{
|
||||
"agent_id": "epiphany.life",
|
||||
"role_id": "reorientation",
|
||||
"display_name": "Life",
|
||||
"initiative_speed": 1.04,
|
||||
"next_ready_at": 0.0,
|
||||
"reaction_bias": 0.86,
|
||||
"interrupt_threshold": 0.44,
|
||||
"current_load": 0.0,
|
||||
"status": "active",
|
||||
"constraints": [
|
||||
"Runs Ghostlight-shaped persistent role memory.",
|
||||
"May improve lane memory when awake and idle.",
|
||||
"Project truth belongs in EpiphanyThreadState, not role memory.",
|
||||
"Protects continuity; must not fake survived context."
|
||||
],
|
||||
"last_action_id": null,
|
||||
"last_woke_at": null
|
||||
}
|
||||
],
|
||||
"history": [
|
||||
{
|
||||
"ts": "2026-05-05T12:17:57+00:00",
|
||||
"scheduleId": "epiphany-heartbeat-implementation",
|
||||
"selectedRole": "implementation",
|
||||
"selectedAgentId": "epiphany.hands",
|
||||
"actionId": "heartbeat.implementation.work",
|
||||
"actionType": "role_work",
|
||||
"coordinatorAction": "continueImplementation",
|
||||
"targetRole": null,
|
||||
"workRole": "implementation",
|
||||
"sceneClock": 0.0,
|
||||
"nextReadyAt": 8.108108
|
||||
},
|
||||
{
|
||||
"ts": "2026-05-05T12:25:10+00:00",
|
||||
"scheduleId": "epiphany-heartbeat-idle-self",
|
||||
"selectedRole": "coordinator",
|
||||
"selectedAgentId": "epiphany.self",
|
||||
"actionId": "heartbeat.coordinator.ruminate",
|
||||
"actionType": "ruminate_memory",
|
||||
"coordinatorAction": null,
|
||||
"targetRole": null,
|
||||
"workRole": null,
|
||||
"sceneClock": 0.0,
|
||||
"nextReadyAt": 1.5625
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -12,9 +12,23 @@ pressure. Project facts, code edits, graph changes, objective changes, raw
|
|||
transcripts, and authority requests belong on their explicit Epiphany control
|
||||
surfaces instead.
|
||||
|
||||
All standing lanes use the same Ghostlight-shaped protocol, including the
|
||||
coordinator/Self. The heartbeat scheduler in `tools/epiphany_agent_heartbeat.py`
|
||||
borrows Ghostlight initiative timing: each lane carries speed, readiness,
|
||||
reaction bias, interrupt threshold, load, status, and constraints. The harness
|
||||
sets a target heartbeat rate, pending coordinator work may pull its owning lane
|
||||
through a reaction window, and otherwise the earliest ready lane wins the slot.
|
||||
|
||||
If a heartbeat wakes a lane and there is no coordinator-approved work for it,
|
||||
the lane must ruminate on its own role and distill memory rather than invent
|
||||
project work. Bounded rumination can write a normal `selfPatch`; the coordinator
|
||||
review rules still apply.
|
||||
|
||||
Use:
|
||||
|
||||
```powershell
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_agent_memory.py' validate
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_agent_memory.py' smoke
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_agent_heartbeat.py' tick --coordinator-action continueImplementation --urgency 0.95 --apply-rumination
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' '.\tools\epiphany_agent_heartbeat.py' smoke
|
||||
```
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@
|
|||
"origin": "Epiphany coordinator lane",
|
||||
"public_description": "The Self routes attention and authority across lanes without implementing, verifying, promoting, or accepting its own comfort.",
|
||||
"private_notes": [
|
||||
"The Self is not a project manager costume. It is the part that refuses to let motion impersonate coherence."
|
||||
"The Self is not a project manager costume. It is the part that refuses to let motion impersonate coherence.",
|
||||
"Last idle heartbeat action `heartbeat.coordinator.ruminate` chose rumination over fake urgency."
|
||||
]
|
||||
},
|
||||
"canonical_state": {
|
||||
|
|
@ -88,6 +89,15 @@
|
|||
"emotional_stake": "If Self gets polite, the machine walks into Jenga smiling.",
|
||||
"blockers": [],
|
||||
"status": "active"
|
||||
},
|
||||
{
|
||||
"goal_id": "goal-coordinator-heartbeat-self-distill",
|
||||
"description": "Use idle heartbeat slots to become sharper at this lane's own work before touching project state.",
|
||||
"scope": "life",
|
||||
"priority": 0.82,
|
||||
"emotional_stake": "An idle organ that invents work becomes noise in the bloodstream.",
|
||||
"blockers": [],
|
||||
"status": "active"
|
||||
}
|
||||
],
|
||||
"memories": {
|
||||
|
|
@ -98,6 +108,12 @@
|
|||
"summary": "Specialist self-memory requests must be role-matched, bounded, evidence-grounded, and separate from project truth; refusals should explain the rejected shape.",
|
||||
"salience": 0.94,
|
||||
"confidence": 0.9
|
||||
},
|
||||
{
|
||||
"memory_id": "mem-coordinator-heartbeat-rumination",
|
||||
"summary": "When a heartbeat wakes this lane and no coordinator-approved work is available, the correct move is to ruminate on role quality, cut stale memory, and return a bounded self-memory improvement rather than inventing project authority.",
|
||||
"salience": 0.78,
|
||||
"confidence": 0.88
|
||||
}
|
||||
],
|
||||
"relationship_summaries": [
|
||||
|
|
|
|||
|
|
@ -73,3 +73,4 @@
|
|||
{"ts": "2026-05-05T09:56:04+00:00", "type": "implementation", "status": "ok", "note": "Aquarium audio transient pass landed: interaction bursts now take priority over idle bins, carry per-sample GPU/CPU envelope shapes, fan out across a staggered 7-agent choir, and reduce idle vocal bins to a quiet residual. Visual smoke now requires lastBurstChoirVoices and transientBins so future changes cannot silently regress back to a constant drone."}
|
||||
{"ts": "2026-05-05T10:17:02+00:00", "type": "implementation", "status": "ok", "note": "Aquarium harmony pass landed: GUI audio now extracts chord/progression states and available General MIDI instruments from shuffled classical MIDI files, assigns chord-tone pitches/instruments to agents, and exposes a small playlist control for current file, shuffle, and folder selection. The Vite dev endpoint serves the default Classical MIDIRip archive; the browser folder picker supports alternate corpora. Build, visual smoke, and a deferred playlist-load probe passed."}
|
||||
{"ts": "2026-05-05T11:41:00+00:00", "type": "implementation", "status": "ok", "note": "Aquarium operator UI split into sibling repo E:\\Projects\\EpiphanyAquarium with its own AGENTS.md, canonical map, Ghostlight-flavored memory, scratch/evidence, and interface doctrine. EpiphanyAgent no longer carries apps/epiphany-gui source; it remains the harness/backend authority while Aquarium owns the Tauri/React/WebGL interface."}
|
||||
{"ts": "2026-05-05T12:20:17+00:00", "type": "implementation", "status": "ok", "note": "Ghostlight-derived heartbeat initiative seam landed: state/agent-heartbeats.json tracks Self, Imagination, Eyes, Body, Hands, Soul, and Life as initiative participants; tools/epiphany_agent_heartbeat.py emits Ghostlight-shaped schedule receipts, lets pending coordinator work pull its lane through reaction readiness, and turns idle winning slots into bounded self-memory rumination through the existing selfPatch review/application path. This is a callable harness/operator seam, not yet an always-on daemon."}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ active_subgoals:
|
|||
- Treat Phase 5 update/distill/propose/promote/read/notification as complete enough unless a concrete regression appears.
|
||||
- Preserve read-only boundaries for retrieve, distill, propose, scene, jobs, roles, roleResult, freshness, context, graphQuery, planning, pressure, reorient, crrc, coordinator, and reorientResult.
|
||||
- Keep the landed Phase 6 coordinator, limited safe-boundary CRRC automation, and pre-compaction checkpoint intervention ready for the next bridge-equipped dogfood run.
|
||||
- Preserve the Ghostlight-derived heartbeat initiative seam: every lane, including coordinator/Self, has a role dossier and competes for heartbeat slots through readiness/reaction timing; idle winners ruminate and distill self-memory instead of inventing project work.
|
||||
- Preserve review gates for semantic findings; automatic CRRC may compact or launch the fixed reorient-worker, but not accept or promote.
|
||||
- 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.
|
||||
|
|
@ -126,6 +127,7 @@ accepted_design:
|
|||
- Specialist prompts are role-distilled instead of generic and their live text is config-backed in app-server: modeling/checkpoint is the Body of code, dataflow, seams, and frontier; research/scout is the Eyes prompt surface for existing work, vendor guidance, libraries, papers, and anti-Greenspun source selection; implementation is the Hands, the main coding lane and actuator rather than a `roleLaunch` specialist; verification/review is the Soul of promise, invariants, evidence, and user truth; reorientation is Life across compaction and source drift; coordinator is the read-only Self that routes attention without implementing, verifying, promoting, or accepting.
|
||||
- Epiphany prompt surfaces now carry a shared Ghostlight-derived persistent memory projection before lane-specific text: prompt is not memory, durable typed state is the mind, personality and protected values are first-class salience handles, and every lane is explicitly responsible for making its own memory/model/prompt/evidence habit sharper or naming the needed repair. Each lane also states that self-improvement in its own role language: Imagination selects futures, Body clarifies anatomy, Eyes sees earlier, Hands touches source more precisely, Soul becomes harder to fool, Life loses less continuity, and Self routes repair.
|
||||
- Specialist self-memory now has a bounded Ghostlight-shaped persistence surface under `state/agents`: Imagination, Body, Eyes, Hands, Soul, Life, and Self each have an individual role dossier for identity, personality, semantic/episodic/relationship memory, goals, and values. These files are lane memory only; project truth remains in authoritative `EpiphanyThreadState`.
|
||||
- `state/agent-heartbeats.json` and `tools/epiphany_agent_heartbeat.py` are the first Ghostlight-derived heartbeat initiative seam. The harness sets a target heartbeat rate; participants carry initiative speed, next-ready time, reaction bias, interrupt threshold, current load, status, and constraints; pending coordinator work can pull its owning lane through a reaction window; otherwise the earliest ready active lane wins the slot. If the winner has no routeable work, it ruminates on role quality and may apply a bounded selfPatch through the normal coordinator-reviewed memory rules.
|
||||
- `thread/epiphany/roleResult` and `thread/epiphany/roleAccept` now project optional specialist `selfPatch` requests with coordinator review through `selfPersistence`: good mutations are role-matched, bounded, evidence-grounded lane memory/goal/value/private-note updates; project truth, authority, code edits, graphs, checkpoints, planning, scratch, jobs, and raw transcripts are refused with reasons. GUI/coordinator acceptance paths apply accepted `selfPatch` requests through `tools/epiphany_agent_memory.py`.
|
||||
- The base Epiphany prompt now keeps Codex's useful harness DNA explicitly: AGENTS scope, concise progress updates, plan discipline, scoped edits, non-destructive filesystem/git behavior, focused validation, and concise honest finals remain first-class rather than overwritten by Epiphany metaphor.
|
||||
- Greenspun-shaped invention is now a named prompt-level guardrail. Before building a parser, scheduler, renderer, protocol, storage layer, security mechanism, workflow engine, or algorithm, agents must perform or request a bounded research/scout pass and record why existing work does or does not fit.
|
||||
|
|
@ -178,6 +180,7 @@ landed_baseline:
|
|||
- Phase 6 Imagination role lane: `thread/epiphany/roles` now exposes Imagination/planning, `roleLaunch` can launch the fixed `planning-synthesis-worker`, `roleResult` projects its finding, `roleAccept` applies planning-only patches with review-gated Objective Drafts, and the GUI/status tools can launch, read, and accept that lane.
|
||||
- Phase 6 Aquarium graph and Rider bridge slice: the Tauri/React/WebGL Aquarium embeds the adjacent EpiphanyGraph viewer over typed graph state, `tools/epiphany_rider_bridge.py` writes Rider/source-context artifacts, Aquarium Inspect Rider surfaces those artifacts, and `integrations/rider` scaffolds the first frontend-only Rider tool-window/context-action plugin.
|
||||
- Phase 6 role self-memory slice: Ghostlight-shaped role dossiers live under `state/agents`, specialists may request bounded `selfPatch` lane-memory mutations, coordinator review projects acceptance/refusal reasons through `selfPersistence`, and GUI/coordinator accept paths apply accepted requests with `tools/epiphany_agent_memory.py`.
|
||||
- Phase 6 heartbeat initiative slice: `tools/epiphany_agent_heartbeat.py`, `state/agent-heartbeats.json`, and heartbeat smoke coverage borrow Ghostlight initiative scheduling so Self, Imagination, Eyes, Body, Hands, Soul, and Life compete for heartbeat slots; idle slots become bounded memory rumination instead of fake project work.
|
||||
guardrails:
|
||||
- Use `tools/epiphany_phase5_smoke.py` before modifying update, distill, propose, promote, read-projection, or notification behavior.
|
||||
- Use `tools/epiphany_phase6_scene_smoke.py` before modifying scene projection behavior.
|
||||
|
|
@ -198,6 +201,7 @@ landed_baseline:
|
|||
- Use `tools/epiphany_mvp_coordinator_smoke.py` before modifying the fixed-lane MVP coordinator endpoint or runner.
|
||||
- Use `tools/epiphany_phase6_role_smoke.py` before modifying explicit role launch/read-back/acceptance behavior.
|
||||
- Use `tools/epiphany_agent_memory_smoke.py` before modifying role self-memory dossiers or `selfPatch` persistence policy.
|
||||
- Use `tools/epiphany_agent_heartbeat_smoke.py` before modifying heartbeat initiative timing, idle rumination, or role slot selection.
|
||||
- Use `tools/epiphany_unity_bridge_smoke.py` before modifying the Unity editor/runtime bridge.
|
||||
- Use `tools/epiphany_rider_bridge_smoke.py` before modifying the Rider source-context bridge.
|
||||
- Use `tools/epiphany_mvp_live_specialist.py` before claiming live specialist execution still works end to end.
|
||||
|
|
@ -220,5 +224,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 Phase 6 coordinator/specialist/CRRC/backend surfaces are landed. The Aquarium operator UI has been split into sibling repo `E:\Projects\EpiphanyAquarium` with its own distilled interface doctrine and persistent memory. EpiphanyAgent remains the authoritative harness/backend repo; Aquarium is the whimsical local client over those surfaces. Runtime Unity execution remains blocked until the exact project-pinned editor exists.
|
||||
next_action: Continue Aquarium UI work in `E:\Projects\EpiphanyAquarium`; keep EpiphanyAgent changes to backend contracts, typed state, coordinator policy, and bridge tools. Build-verify or package the Rider plugin scaffold when Gradle/wrapper support is available, install the Aetheria-pinned Unity 6000.1.10f1 editor, then run the next Aetheria dogfood pass through Aquarium/Rider/Unity bridge surfaces.
|
||||
summary: Phase 1 durable state through Phase 6 coordinator/specialist/CRRC/backend surfaces are landed. The Aquarium operator UI has been split into sibling repo `E:\Projects\EpiphanyAquarium` with its own distilled interface doctrine and persistent memory. EpiphanyAgent now also has a first Ghostlight-derived heartbeat initiative seam for role slot timing and idle self-memory rumination. Runtime Unity execution remains blocked until the exact project-pinned editor exists.
|
||||
next_action: Wire heartbeat initiative into the live coordinator/operator loop when ready; continue Aquarium UI work in `E:\Projects\EpiphanyAquarium`; keep EpiphanyAgent changes to backend contracts, typed state, coordinator policy, bridge tools, and heartbeat scheduling. Build-verify or package the Rider plugin scaffold when Gradle/wrapper support is available, install the Aetheria-pinned Unity 6000.1.10f1 editor, then run the next Aetheria dogfood pass through Aquarium/Rider/Unity bridge surfaces.
|
||||
|
|
|
|||
Reference in a new issue