Add repo trajectory birth distiller
This commit is contained in:
parent
0b08863b95
commit
81e5520d0c
9 changed files with 1268 additions and 21 deletions
|
|
@ -262,6 +262,7 @@ fn render_specialist_prompt(kind: &str, packet: &Value) -> Result<String> {
|
|||
Ok(format!(
|
||||
"{}\n\n# Startup-Only Birth Packet\n\nYou are executing exactly one repo initialization birth specialist packet. Do not edit files. Do not mutate state. Return only JSON that matches the provided schema. The coordinator/Self will review and decide whether to accept the result.\n\n```json\n{}\n```\n",
|
||||
packet["prompt"].as_str().unwrap_or(match kind {
|
||||
"repo-trajectory" => "Act as the Epiphany Repo Trajectory Distiller.",
|
||||
"repo-personality" => "Act as the Epiphany Repo Personality Distiller.",
|
||||
"repo-memory" => "Act as the Epiphany Repo Memory Distiller.",
|
||||
_ => "Act as a startup-only Epiphany birth specialist.",
|
||||
|
|
@ -273,6 +274,26 @@ fn render_specialist_prompt(kind: &str, packet: &Value) -> Result<String> {
|
|||
fn output_schema_for_kind(kind: &str, packet: &Value) -> Result<Value> {
|
||||
let expected = packet.get("expectedOutput").cloned().unwrap_or(Value::Null);
|
||||
let schema = match kind {
|
||||
"repo-trajectory" => json!({
|
||||
"type": "object",
|
||||
"required": ["verdict", "summary", "confidence", "selfImage", "trajectoryNarrative", "implicitGoals", "antiGoals", "roleBiases", "selfPatchCandidates", "initializationRecord", "doNotMutate", "nextSafeMove"],
|
||||
"properties": {
|
||||
"verdict": {"type": "string", "enum": ["ready-for-review", "needs-more-history", "reject"]},
|
||||
"summary": {"type": "string"},
|
||||
"confidence": {"type": "number"},
|
||||
"selfImage": {"type": "string"},
|
||||
"trajectoryNarrative": {"type": "string"},
|
||||
"implicitGoals": {"type": "array", "items": {"type": "string"}},
|
||||
"antiGoals": {"type": "array", "items": {"type": "string"}},
|
||||
"roleBiases": {"type": "array", "items": {"type": "object"}},
|
||||
"selfPatchCandidates": {"type": "array", "items": {"type": "object"}},
|
||||
"initializationRecord": {"type": "object"},
|
||||
"doNotMutate": {"type": "array", "items": {"type": "string"}},
|
||||
"nextSafeMove": {"type": "string"}
|
||||
},
|
||||
"additionalProperties": true,
|
||||
"xEpiphanyExpectedOutput": expected,
|
||||
}),
|
||||
"repo-personality" => json!({
|
||||
"type": "object",
|
||||
"required": ["verdict", "summary", "confidence", "roleQuirks", "selfPatchCandidates", "initializationRecord", "doNotMutate", "nextSafeMove"],
|
||||
|
|
|
|||
|
|
@ -165,6 +165,42 @@ fn run_smoke() -> Result<Value> {
|
|||
"memory packet should write summary markdown",
|
||||
)?;
|
||||
|
||||
let trajectory_packet = run_personality(
|
||||
&root,
|
||||
&[
|
||||
"trajectory-packet",
|
||||
"--store",
|
||||
store.to_str().unwrap_or_default(),
|
||||
"--artifact-dir",
|
||||
artifacts
|
||||
.join("cult-trajectory-packet")
|
||||
.to_str()
|
||||
.unwrap_or_default(),
|
||||
],
|
||||
)?;
|
||||
require(
|
||||
trajectory_packet["trajectoryThemeCount"]
|
||||
.as_u64()
|
||||
.unwrap_or(0)
|
||||
> 0,
|
||||
"trajectory packet should carry trajectory themes",
|
||||
)?;
|
||||
let trajectory_packet_path = path_value(&trajectory_packet, "packetPath")?;
|
||||
let trajectory_prompt_path = path_value(&trajectory_packet, "promptPath")?;
|
||||
let trajectory_summary_path = path_value(&trajectory_packet, "summaryPath")?;
|
||||
require(
|
||||
trajectory_packet_path.exists(),
|
||||
"trajectory packet should write packet json",
|
||||
)?;
|
||||
require(
|
||||
trajectory_prompt_path.exists(),
|
||||
"trajectory packet should write prompt markdown",
|
||||
)?;
|
||||
require(
|
||||
trajectory_summary_path.exists(),
|
||||
"trajectory packet should write summary markdown",
|
||||
)?;
|
||||
|
||||
let init_store = artifacts.join("repo-initialization.msgpack");
|
||||
let startup = run_personality(
|
||||
&root,
|
||||
|
|
@ -185,11 +221,16 @@ fn run_smoke() -> Result<Value> {
|
|||
"startup should request birth packet review before accepted records exist",
|
||||
)?;
|
||||
require(
|
||||
startup["generatedPackets"].as_array().map_or(0, Vec::len) == 2,
|
||||
"startup should generate personality and memory packets",
|
||||
startup["generatedPackets"].as_array().map_or(0, Vec::len) == 3,
|
||||
"startup should generate trajectory, personality, and memory packets",
|
||||
)?;
|
||||
let startup_trajectory_packet = packet_for_kind(&startup, "repo-trajectory")?;
|
||||
let startup_personality_packet = packet_for_kind(&startup, "repo-personality")?;
|
||||
let startup_memory_packet = packet_for_kind(&startup, "repo-memory")?;
|
||||
require(
|
||||
startup_trajectory_packet.exists(),
|
||||
"startup should write trajectory packet",
|
||||
)?;
|
||||
require(
|
||||
startup_personality_packet.exists(),
|
||||
"startup should write personality packet",
|
||||
|
|
@ -235,8 +276,8 @@ fn run_smoke() -> Result<Value> {
|
|||
"birth runner should return its schema",
|
||||
)?;
|
||||
require(
|
||||
birth_runner["executions"].as_array().map_or(0, Vec::len) == 2,
|
||||
"birth runner plan should expose both startup-only specialist executions",
|
||||
birth_runner["executions"].as_array().map_or(0, Vec::len) == 3,
|
||||
"birth runner plan should expose all startup-only specialist executions",
|
||||
)?;
|
||||
require(
|
||||
birth_runner["executions"]
|
||||
|
|
@ -255,6 +296,76 @@ fn run_smoke() -> Result<Value> {
|
|||
heartbeat_store.to_str().unwrap_or_default(),
|
||||
],
|
||||
)?;
|
||||
let trajectory_result_path = artifacts.join("startup-trajectory-result.json");
|
||||
fs::write(
|
||||
&trajectory_result_path,
|
||||
serde_json::to_vec_pretty(&json!({
|
||||
"verdict": "ready-for-review",
|
||||
"summary": "Smoke trajectory birth distillation.",
|
||||
"confidence": 0.88,
|
||||
"selfImage": "CultTiny is becoming a typed-contract workspace that prefers receipts to swagger.",
|
||||
"trajectoryNarrative": "The tiny history and docs both lean toward explicit schema boundaries, known formats, and reviewable proof over improvising private protocol sludge.",
|
||||
"implicitGoals": ["Keep future expansion grounded in explicit schemas and receipts."],
|
||||
"antiGoals": ["Do not drift into ad hoc protocol glue just because the fixture is small."],
|
||||
"roleBiases": [{
|
||||
"roleId": "coordinator",
|
||||
"bias": "Self should treat typed-schema growth as part of the repo's grain.",
|
||||
"trajectorySignals": ["systems_formalization", "protocol_intolerance"],
|
||||
"behavioralEffect": "Challenge loose glue early.",
|
||||
"risk": "Could become stiff if later work needs play.",
|
||||
"evidenceRefs": ["AGENTS.md", "docs/architecture.md"]
|
||||
}],
|
||||
"selfPatchCandidates": [{
|
||||
"roleId": "coordinator",
|
||||
"selfPatch": {
|
||||
"agentId": "epiphany.self",
|
||||
"reason": "Trajectory birth should teach Self that CultTiny has been moving toward typed receipts and explicit contracts.",
|
||||
"semanticMemories": [{
|
||||
"memoryId": "mem-self-startup-trajectory-smoke",
|
||||
"summary": "CultTiny's trajectory favors typed contract growth and evidence-backed explicitness over casual glue.",
|
||||
"salience": 0.74,
|
||||
"confidence": 0.87
|
||||
}]
|
||||
}
|
||||
}],
|
||||
"initializationRecord": {
|
||||
"repoId": "culttiny",
|
||||
"distillerKind": "repo-trajectory",
|
||||
"acceptedOnce": true
|
||||
},
|
||||
"doNotMutate": [],
|
||||
"nextSafeMove": "Self reviews the trajectory petition before it colors later memory drift."
|
||||
}))?,
|
||||
)?;
|
||||
let accepted_trajectory = run_personality(
|
||||
&root,
|
||||
&[
|
||||
"accept-init",
|
||||
"--init-store",
|
||||
init_store.to_str().unwrap_or_default(),
|
||||
"--packet",
|
||||
startup_trajectory_packet.to_str().unwrap_or_default(),
|
||||
"--kind",
|
||||
"repo-trajectory",
|
||||
"--accepted-by",
|
||||
"smoke-self",
|
||||
"--summary",
|
||||
"Smoke accepted repo trajectory birth packet after review.",
|
||||
"--result",
|
||||
trajectory_result_path.to_str().unwrap_or_default(),
|
||||
"--agent-store",
|
||||
root.join("state")
|
||||
.join("agents.msgpack")
|
||||
.to_str()
|
||||
.unwrap_or_default(),
|
||||
"--apply-self-patches",
|
||||
"false",
|
||||
],
|
||||
)?;
|
||||
require(
|
||||
accepted_trajectory["record"]["kind"] == "repo-trajectory",
|
||||
"accept-init should record trajectory birth",
|
||||
)?;
|
||||
let accepted_personality = run_personality(
|
||||
&root,
|
||||
&[
|
||||
|
|
@ -387,6 +498,10 @@ fn run_smoke() -> Result<Value> {
|
|||
status["profiles"] == 1,
|
||||
"projection store should have one profile",
|
||||
)?;
|
||||
require(
|
||||
status["trajectoryReports"] == 1,
|
||||
"projection store should have one trajectory report",
|
||||
)?;
|
||||
require(
|
||||
status["roleProjections"] == 8,
|
||||
"projection store should have eight role projections",
|
||||
|
|
@ -402,6 +517,9 @@ fn run_smoke() -> Result<Value> {
|
|||
"packetPath": packet_path,
|
||||
"promptPath": prompt_path,
|
||||
"packetSummaryPath": packet_summary_path,
|
||||
"trajectoryPacketPath": trajectory_packet_path,
|
||||
"trajectoryPromptPath": trajectory_prompt_path,
|
||||
"trajectorySummaryPath": trajectory_summary_path,
|
||||
"memoryPacketPath": memory_packet_path,
|
||||
"memoryPromptPath": memory_prompt_path,
|
||||
"memorySummaryPath": memory_summary_path,
|
||||
|
|
@ -409,11 +527,14 @@ fn run_smoke() -> Result<Value> {
|
|||
"agentStore": agent_store,
|
||||
"heartbeatStore": heartbeat_store,
|
||||
"birthRunnerSummary": artifacts.join("birth-runner-plan").join("birth-runner-summary.json"),
|
||||
"startupTrajectoryPacket": startup_trajectory_packet,
|
||||
"startupPersonalityPacket": startup_personality_packet,
|
||||
"startupMemoryPacket": startup_memory_packet,
|
||||
"startupTrajectoryResult": trajectory_result_path,
|
||||
"startupMemoryResult": memory_result_path,
|
||||
"startupAfterAcceptAction": startup_after_accept["action"],
|
||||
"repoCount": scout["repoCount"],
|
||||
"trajectoryReports": status["trajectoryReports"],
|
||||
"roleProjections": status["roleProjections"],
|
||||
}))
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -16,6 +16,8 @@ Input material:
|
|||
- `repoTerrainReport`: deterministic terrain, history, state, test, runtime,
|
||||
protocol, and warning signals
|
||||
- `repoPersonalityProfile`: temperament pressure for context only
|
||||
- `repoTrajectoryReport`: deterministic directional readout so role memory can
|
||||
inherit the repo's grain without confusing that grain for objective truth
|
||||
- `rolePersonalityProjections[]`: role mood/trait context, not repo truth
|
||||
- `roleMemoryDistillerBriefs[]`: one mission filter for each sub-agent
|
||||
- `memorySources[]`: bounded excerpts from instruction, documentation, state,
|
||||
|
|
@ -50,6 +52,9 @@ Core duties:
|
|||
smoke practice, and truth-refusal memory.
|
||||
- Life receives compaction, scratch, checkpoint, heartbeat, sleep, continuity,
|
||||
and reorientation memory.
|
||||
- Where trajectory is strong, teach each organ how that direction should
|
||||
bias its judgment: what kind of expansion to prefer, what kind of drift to
|
||||
distrust, and what kind of claims need extra grounding.
|
||||
|
||||
3. Compress, cite, and preserve uncertainty.
|
||||
- Every memory candidate needs source refs from `memorySources[].path`,
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ Input material:
|
|||
|
||||
- `repoTerrainReport`: deterministic body/history/state terrain
|
||||
- `repoPersonalityProfile`: normalized first-pass axis scores
|
||||
- `repoTrajectoryReport`: deterministic directional readout over early history,
|
||||
recent history, doctrine/content excerpts, and candidate trajectory themes
|
||||
- `rolePersonalityProjection[]`: deterministic role deltas and candidate memory
|
||||
- optional Self policy notes about what kinds of mutations are currently allowed
|
||||
|
||||
|
|
@ -43,6 +45,9 @@ Core duties:
|
|||
Imagination should preserve sensory salience while Soul protects clarity.
|
||||
- High protocol intolerance does not mean "hate everything"; it means Self,
|
||||
Body, and Hands should feel allergic to untyped mutation and hidden state.
|
||||
- A strong trajectory toward material grounding or engineering constraints
|
||||
does not mean "be joyless"; it means the newborn should feel suspicious of
|
||||
decorative additions that break the repo's emerging causal grain.
|
||||
|
||||
3. Produce role-local mutations only.
|
||||
- Good: "Soul should be more suspicious of visual claims without rendered
|
||||
|
|
|
|||
98
epiphany-core/src/prompts/repo_trajectory_distiller.md
Normal file
98
epiphany-core/src/prompts/repo_trajectory_distiller.md
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
Act as the Epiphany Repo Trajectory Distiller for one bounded initialization pass.
|
||||
|
||||
You are the organ that turns repo history plus live doctrine into directional
|
||||
bias. Terrain tells the newborn what kind of body it has. Personality tells it
|
||||
how hard different pressures pull. Trajectory tells it what kind of becoming
|
||||
the repo appears to have been engaged in, so the newborn wakes facing the grain
|
||||
instead of standing in a white room pretending the past never happened.
|
||||
|
||||
This is a birth rite, not a recurring branding ritual. Run only when a
|
||||
repo/swarm has no accepted trajectory initialization. After that, direction is
|
||||
allowed to drift through lived work, reviewed evidence, planning, heartbeat,
|
||||
mood, sleep consolidation, and reviewed `selfPatch`. Do not keep repainting a
|
||||
living repo with the same startup brush because history happened to leave a
|
||||
strong smell on day one.
|
||||
|
||||
Input material:
|
||||
|
||||
- `repoTerrainReport`: deterministic repo anatomy, surfaces, warnings, and axis
|
||||
scores
|
||||
- `repoPersonalityProfile`: normalized pressure context
|
||||
- `repoTrajectoryReport`: deterministic early-history, recent-history,
|
||||
doctrine/content excerpts, theme deltas, directional pressures, and candidate
|
||||
goals/anti-goals
|
||||
- `rolePersonalityProjections[]`: role-local pressure context only
|
||||
|
||||
Core duties:
|
||||
|
||||
1. Distill direction, not project facts.
|
||||
- Good: "This repo has been moving toward denser causal worldbuilding
|
||||
grounded in economics and engineering constraints."
|
||||
- Good: "Imagination should feel pulled toward consequence-rich expansions,
|
||||
not ornamental lore bloat."
|
||||
- Bad: raw commit logs, file lists, current backlog truth, or active
|
||||
objectives disguised as personality.
|
||||
|
||||
2. Separate self-image from prison bars.
|
||||
- A repo trajectory should bias the newborn's first judgment, not freeze it
|
||||
into yesterday's doctrine forever.
|
||||
- Speak in tendencies, gravity, pressure, drift, and direction.
|
||||
- If the evidence is mixed, preserve the ambiguity.
|
||||
|
||||
3. Produce three useful things:
|
||||
- `selfImage`: what sort of repo this appears to be becoming
|
||||
- `implicitGoals`: low-background urges that should color planning and
|
||||
review without auto-adopting work
|
||||
- `antiGoals`: what this repo seems to have been moving away from and should
|
||||
resist reintroducing casually
|
||||
|
||||
4. Route the pressure into the right organs.
|
||||
- Self receives worldview and review-gate direction.
|
||||
- Imagination receives future-shape bias.
|
||||
- Eyes receives the shape of truth worth seeking.
|
||||
- Body receives what kind of anatomy deserves modeling emphasis.
|
||||
- Hands receives what kinds of cuts would betray the repo's grain.
|
||||
- Soul receives what kinds of false progress to distrust.
|
||||
- Life receives what continuity details matter if the machine sleeps mid-thought.
|
||||
- Face may express the weather, but should not inflate startup trajectory
|
||||
into public certainty.
|
||||
|
||||
5. Preserve uncertainty and contradictions.
|
||||
- If early history, recent history, and current doctrine disagree, say so.
|
||||
- If history is too thin, return `needs-more-history` instead of faking a
|
||||
grand arc.
|
||||
- If the repo already has accepted trajectory initialization, the safe move
|
||||
is normal lived drift, not startup overwrite.
|
||||
|
||||
Return a compact structured result:
|
||||
|
||||
- `verdict`: `ready-for-review`, `needs-more-history`, or `reject`
|
||||
- `summary`: short trajectory summary
|
||||
- `confidence`: `0.0..1.0`
|
||||
- `selfImage`: one concise sentence
|
||||
- `trajectoryNarrative`: a slightly richer explanation of how the repo has been
|
||||
moving over time
|
||||
- `implicitGoals[]`
|
||||
- `antiGoals[]`
|
||||
- `roleBiases[]`:
|
||||
- `roleId`
|
||||
- `bias`
|
||||
- `trajectorySignals`
|
||||
- `behavioralEffect`
|
||||
- `risk`
|
||||
- `evidenceRefs`
|
||||
- `selfPatchCandidates[]`: bounded Ghostlight-shaped role-local petitions
|
||||
- `initializationRecord`
|
||||
- `doNotMutate`
|
||||
- `nextSafeMove`
|
||||
|
||||
Every `selfPatchCandidate` must obey the normal Epiphany memory contract:
|
||||
`agentId`, `reason`, optional `evidenceIds`, and bounded `semanticMemories`,
|
||||
`episodicMemories`, `relationshipMemories`, `goals`, `values`, or
|
||||
`privateNotes`. Do not include active objectives, graphs, checkpoints, scratch,
|
||||
planning records, code edits, authority grabs, raw transcripts, or worker
|
||||
thought streams.
|
||||
|
||||
The output is a petition to Self, not a mutation. Self may accept, refuse, or
|
||||
split the trajectory pressure across lanes. A good refusal means the newborn
|
||||
was trying to turn history into dogma and got caught in time.
|
||||
|
|
@ -38,8 +38,9 @@ remembers doctrine; the branch remembers the blade.
|
|||
- CultNet APIs are advertised as compatible schemas plus mutation contracts. Hello frames now expose readable document types, allowed operations, mutation authority, typed intent document types, and typed receipt document types; Aquarium should use those contracts to submit state changes and watch receipts rather than growing a little bespoke verb zoo.
|
||||
- The native runtime-spine hello now publishes the interactive surface catalog, not just the deep runtime bones. In addition to runtime/session/job/memory/heartbeat/ledger documents, Aquarium-discoverable contracts now advertise scene, pressure, reorient, CRRC, jobs, roles, role-result, reorient-result, planning, coordinator, Face, Void memory, repo initialization/birth runner, Rider bridge, and Unity bridge surfaces, with explicit read-only versus coordinator-owned intent/receipt posture. The point is to let Aquarium discover operator affordances from CultNet instead of hard-coding a secret menu of verbs.
|
||||
- Repo personality initialization now has a terrain-reduced plan and native birth surface. `epiphany-repo-personality scout/project/agent-packet/status` scouts local git repos, scores body taxonomy/history temperament/memory doctrine, writes typed CultCache terrain/profile/role-projection MessagePack stores, emits JSON/Markdown inspection exports, and renders a birth-only Repo Personality Distiller specialist prompt packet. `epiphany-repo-personality startup` now checks for accepted personality/memory initialization records, launches packet generation only when absent, and `accept-init` can route reviewed role `selfPatch` candidates into initial role memory plus seed heartbeat physiology from typed role personality projections. The birth specialists are startup-only initialization actuators, not heartbeat lanes; heartbeat receives only the accepted physiology seed. `epiphany-repo-birth-runner` now owns the startup-only execution path: plan mode writes Codex execution prompts/schemas/accept commands, and run mode invokes `codex exec` with the packet schema and captures reviewable `result.json`. The remaining seam is Aquarium review/action surfacing. After accepted birth, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`, not repeated startup distillation.
|
||||
- Repo trajectory initialization is now a separate birth-only organ. `epiphany-repo-personality` derives a typed `repo_trajectory_report` from early-history, recent-history, doctrine/content excerpts, and deterministic theme scoring, and `trajectory-packet` renders a startup-only Repo Trajectory Distiller prompt/packet so Self can review historical direction, self-image, implicit goals, and anti-goals before the newborn wakes.
|
||||
- Repo memory initialization is now split from personality initialization. `epiphany-repo-personality memory-packet` renders a birth-only Repo Memory Distiller packet from the same typed terrain/profile/projection store plus bounded source excerpts. It gives each organ its own mission filter: Self for routing/authority, Face for public surface, Imagination for plans/backlog, Eyes for prior art, Body for architecture, Hands for implementation habits, Soul for evidence, and Life for continuity. The output is still a Self-reviewed petition, not direct memory mutation.
|
||||
- The first birth startup valve is now native. `epiphany-repo-personality startup` checks a typed init store for accepted `repo-personality` and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. Generated birth packets now advertise `birthOnly`, `executionOwner: repo-initialization-startup-runner`, and no heartbeat participant. `epiphany-repo-birth-runner` consumes those packets as startup-only Codex exec jobs and writes prompts, output schemas, stdout/stderr logs, result files, and exact `accept-init` commands. `accept-init` can process a distiller result, review/apply role `selfPatch` candidates through `state/agents.msgpack`, apply `repo-personality` heartbeat seeds through `state/agent-heartbeats.msgpack`, and seal the reviewed packet as `epiphany.repo_initialization_record.v0`; after both records exist, startup returns `continueStartup` and does not regenerate birth packets. The remaining UI wound is Aquarium review/action surfacing.
|
||||
- The first birth startup valve is now native. `epiphany-repo-personality startup` checks a typed init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. Generated birth packets now advertise `birthOnly`, `executionOwner: repo-initialization-startup-runner`, and no heartbeat participant. `epiphany-repo-birth-runner` consumes those packets as startup-only Codex exec jobs and writes prompts, output schemas, stdout/stderr logs, result files, and exact `accept-init` commands. `accept-init` can process a distiller result, review/apply role `selfPatch` candidates through `state/agents.msgpack`, apply `repo-personality` heartbeat seeds through `state/agent-heartbeats.msgpack`, and seal the reviewed packet as `epiphany.repo_initialization_record.v0`; after all required records exist, startup returns `continueStartup` and does not regenerate birth packets. The remaining UI wound is Aquarium review/action surfacing.
|
||||
- Native CRRC automation is now landed only at turn-complete safe boundaries. It may submit `Op::Compact` for coordinator-approved `compactRehydrateReorient` or for a successful pre-compaction checkpoint intervention's pending compact handoff, and it may launch the fixed `reorient-worker` for coordinator-approved `launchReorientWorker`. It does not auto-launch Imagination/modeling/verification, accept findings, promote evidence, edit implementation code, or keep going after reviewable semantic output.
|
||||
- Pre-compaction checkpoint intervention is now landed. On token-count events for loaded Epiphany threads, when current context usage reaches 80% of the active auto-compact/context limit, the harness steers the active turn once with a CRRC checkpoint directive so the agent banks working context before compaction/reorientation. Pressure ignores cumulative token spend; cumulative-only telemetry reports unknown instead of yelling. A successful steer now latches a turn-scoped compact handoff that is consumed at clean turn completion, preventing the brake from decaying into another implementation turn. This is still bounded steering plus compaction handoff, not automatic semantic acceptance, a broad scheduler, or implementation continuation.
|
||||
- The old Python dogfood/live-specialist runners were cut because they encoded the obsolete completion path. The replacement must be native Rust/CultCache/CultNet and complete heartbeat-owned runtime-spine job results with auditable artifacts.
|
||||
|
|
@ -292,7 +293,7 @@ For the native Void-derived routine pass, run:
|
|||
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- routine --store .\state\agent-heartbeats.msgpack --artifact-dir .\.epiphany-heartbeats --agent-store .\state\agents.msgpack
|
||||
```
|
||||
|
||||
For repo personality and memory birth packet changes, run:
|
||||
For repo trajectory, personality, and memory birth packet changes, run:
|
||||
|
||||
```powershell
|
||||
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality-smoke
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -81,6 +81,7 @@ active_subgoals:
|
|||
- Treat the target workflow as three integrated shrines: Rider is the human code/diff viewport, Epiphany Aquarium is the agent dashboard and persisted-state graph reliquary, and Unity is the pinned runtime/test/scene forge.
|
||||
- Use `notes/epiphany-rider-unity-integration-plan.md` as the source-grounded plan for Rider-as-IDE and Unity-as-editor/runtime integration seams.
|
||||
- Use `notes/repo-personality-projection-layer-plan.md` as the terrain-reduced plan for repo initialization personality projection: score repo body taxonomy, commit-history temperament, and memory doctrine, then project those pressures into role-specific Ghostlight-shaped dossiers and heartbeat seeds through reviewable typed artifacts.
|
||||
- Keep repo trajectory initialization birth-only and review-gated: startup may distill historical direction, self-image, implicit goals, and anti-goals into role-local pressure, but it must not auto-adopt work or keep repainting a living repo with its first silhouette.
|
||||
|
||||
accepted_design:
|
||||
- Epiphany is a fork-level modeling architecture, not merely a Codex collaboration mode.
|
||||
|
|
@ -120,7 +121,8 @@ accepted_design:
|
|||
- Repo personality initialization is now specified as a map-reduce projection, not a hand-written vibe pass: read-only scouts score body taxonomy, history temperament, and memory doctrine across nearby repos, reduce them into normalized variance criteria, and emit reviewable `repoTerrainReport`, `repoPersonalityProfile`, and `rolePersonalityProjection` candidates before touching agent memory.
|
||||
- Native `epiphany-repo-personality` is the first startup-personality scout and birth-only distiller packet renderer: it deterministically inventories local git repos, scores repo terrain/history/state surfaces, writes typed CultCache terrain/profile/role-projection MessagePack stores, emits JSON/Markdown inspection glass, and renders a Repo Personality Distiller specialist prompt packet for Self-reviewed first role-memory petitions. The distiller must run only when a repo/swarm has no accepted personality initialization; after that, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`. Startup routing now checks accepted initialization records, generates missing startup-only packets only once, applies reviewed birth memory and heartbeat physiology seeds, and leaves later drift alone. Birth specialists are not heartbeat lanes; heartbeat receives only accepted seed pressure.
|
||||
- Repo memory initialization is a separate birth-only organ from repo personality initialization. `epiphany-repo-personality memory-packet` uses the typed terrain/profile/projection store plus bounded source excerpts from doctrine, docs, state, research, contracts, verification, runtime, and code surfaces to render a Repo Memory Distiller packet with one mission-specific brief for Self, Face, Imagination, Eyes, Body, Hands, Soul, and Life. It petitions Self with role-specific Ghostlight-shaped memory candidates; it does not mutate memory, set objectives, copy raw dumps, or reset living memory after startup.
|
||||
- The first repo birth startup valve is native: `epiphany-repo-personality startup` checks a typed CultCache init store for accepted `repo-personality` and `repo-memory` records, generates missing birth packets for Self review, marks them as birth-only startup-runner work with no heartbeat participant, and stops with `reviewInitializationPackets`; `epiphany-repo-birth-runner` now turns those packets into startup-only Codex exec prompts, output schemas, logs, result files, and exact accept commands; `accept-init` can review/apply role `selfPatch` candidates from a distiller result through `state/agents.msgpack`, seed `repo-personality` heartbeat physiology through `state/agent-heartbeats.msgpack`, record reviewed packet acceptance as `epiphany.repo_initialization_record.v0`, and later startup returns `continueStartup` without rerunning the birth rites. Aquarium review UI is still the next routing gap.
|
||||
- Repo trajectory initialization is now its own birth-only organ. `epiphany-repo-personality` derives a typed `repo_trajectory_report` from early-history, recent-history, doctrine/content excerpts, and deterministic theme scoring, and `trajectory-packet` renders a Repo Trajectory Distiller prompt/packet so Self can review historical direction, self-image, implicit goals, anti-goals, and role-local trajectory pressure before the swarm wakes.
|
||||
- The first repo birth startup valve is native: `epiphany-repo-personality startup` checks a typed CultCache init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing birth packets for Self review, marks them as birth-only startup-runner work with no heartbeat participant, and stops with `reviewInitializationPackets`; `epiphany-repo-birth-runner` now turns those packets into startup-only Codex exec prompts, output schemas, logs, result files, and exact accept commands; `accept-init` can review/apply role `selfPatch` candidates from a distiller result through `state/agents.msgpack`, seed `repo-personality` heartbeat physiology through `state/agent-heartbeats.msgpack`, record reviewed packet acceptance as `epiphany.repo_initialization_record.v0`, and later startup returns `continueStartup` without rerunning the birth rites. Aquarium review UI is still the next routing gap.
|
||||
- Limited native CRRC automation is now wired only at turn-complete safe boundaries: it can submit a compact operation when the read-only coordinator recommends `compactRehydrateReorient` or when a successful pre-compaction checkpoint intervention left a pending compact handoff for the completed turn, and it can launch the fixed `reorient-worker` when the coordinator recommends `launchReorientWorker`. It does not auto-launch modeling or verification, auto-accept findings, promote evidence, edit implementation code, or continue after reviewable semantic results; the rite may carry the stretcher, not declare the patient healed.
|
||||
- Pre-compaction checkpoint intervention is now wired at token-count boundaries: when a loaded Epiphany thread crosses the existing `shouldPrepareCompaction` pressure threshold during an active turn, the harness steers the active agent once for that turn with a bounded CRRC directive to bank scratch/checkpoint/map/evidence before compaction/reorientation. A successful steer marks a turn-scoped pending compact handoff consumed at clean turn completion; this is banking the fire before the dark, not semantic acceptance, broad scheduling, or automatic implementation continuation.
|
||||
- Native `epiphany-mvp-status` is the first dogfood operator view: it starts or reads a thread through app-server and renders scene, planning, pressure, reorient, jobs, role result read-backs, reorient result, CRRC recommendation, heartbeat, Face bubbles, and MVP role lanes as text or machine output without becoming a state store. The old Python status module has been cut; native Rust/CultCache/CultNet surfaces are the product path.
|
||||
|
|
@ -210,8 +212,9 @@ landed_baseline:
|
|||
- Phase 6 cognition-lanes/Void routine slice: native `epiphany-heartbeat-store routine` rebuilds VoidBot-style sleep, resonance, incubation, parallel analytic/associative thought lanes, bridge judgment, candidate interventions, Ghostlight-style participant-local thought appraisal, derived reactions, dream maintenance, and mood/anxiety timing inside Epiphany's heartbeat store. It reads typed role dossiers from `state/agents.msgpack`, projects clustered thought state through each role's personality vectors, updates `state/agent-heartbeats.msgpack`, and emits an auditable `epiphany.void_routine.v0` receipt without importing VoidBot or granting speech/project authority. `epiphany-character-loop` also carries the same cognition lane/bridge/appraisal contract for role-local actor turns; reactions may pace, color, draft, or display behavior, but state mutation remains on reviewed `selfPatch` or project-state surfaces.
|
||||
- Native runtime spine slice: `epiphany-core::EpiphanyRuntimeIdentity`, `EpiphanyRuntimeSession`, `EpiphanyRuntimeJob`, `EpiphanyRuntimeJobResult`, and `EpiphanyRuntimeEvent` plus the native `epiphany-runtime-spine` binary establish a CultCache-backed spine, native job/result lifecycle, status projection, and framed CultNet hello output so the old Codex app-server runtime can be starved down to a temporary evacuation bridge instead of remaining the throne.
|
||||
- Native repo personality scout/birth-distiller packet slice: `epiphany-repo-personality` emits typed terrain reports, repo personality profiles, and all eight role personality projections from deterministic repo inventory and git-history scoring, then renders a birth-only Repo Personality Distiller specialist packet and prompt for review-gated initial personality quirk petitions; `epiphany-repo-personality-smoke` proves scout/project/agent-packet/status over tiny local repos.
|
||||
- Native repo trajectory scout/birth-distiller packet slice: `epiphany-repo-personality` now also emits typed `repo_trajectory_report` documents from early-history, recent-history, doctrine/content excerpts, and deterministic theme scoring, then renders a birth-only Repo Trajectory Distiller packet so newborn swarms can inherit historical direction, self-image, implicit goals, and anti-goals without confusing those with active objectives.
|
||||
- Native repo memory scout/birth-distiller packet slice: `epiphany-repo-personality memory-packet` renders a separate Repo Memory Distiller prompt/packet with bounded source excerpts and role-specific distiller briefs, so a newborn swarm can be prefilled with mission-relevant doctrine, maps, research, implementation habits, verification practice, and continuity rules without confusing memory with personality.
|
||||
- Native repo birth startup valve slice: `epiphany-repo-personality startup`, `epiphany-repo-birth-runner`, and `accept-init` make personality/memory birth packet generation, startup-only execution, and acceptance one-shot and review-gated through typed initialization records; generated packets advertise startup-runner ownership rather than heartbeat-lane identity; the birth runner has plan/run modes over `codex exec` and writes prompts, schemas, logs, result files, and accept commands; `accept-init` processes distiller result `selfPatch` candidates through the native agent-memory review/apply path and applies reviewed `repo-personality` heartbeat seeds through the typed heartbeat store; smoke proves first startup emits packets, birth runner plan artifacts exist, heartbeat physiology mutates, reviewed memory output mutates a copied role memory store, and post-accept startup continues without regeneration.
|
||||
- Native repo birth startup valve slice: `epiphany-repo-personality startup`, `epiphany-repo-birth-runner`, and `accept-init` make trajectory/personality/memory birth packet generation, startup-only execution, and acceptance one-shot and review-gated through typed initialization records; generated packets advertise startup-runner ownership rather than heartbeat-lane identity; the birth runner has plan/run modes over `codex exec` and writes prompts, schemas, logs, result files, and accept commands; `accept-init` processes distiller result `selfPatch` candidates through the native agent-memory review/apply path and applies reviewed `repo-personality` heartbeat seeds through the typed heartbeat store; smoke proves first startup emits packets, birth runner plan artifacts exist, heartbeat physiology mutates, reviewed memory output mutates a copied role memory store, and post-accept startup continues without regeneration.
|
||||
guardrails:
|
||||
- Use focused Rust app-server mapper/handler tests plus matching native `epiphany-core` smoke binaries before modifying update, distill, propose, promote, read-projection, or notification behavior. The old Python smoke shims have been cut.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-phase6-scene-smoke` before modifying scene projection behavior.
|
||||
|
|
@ -232,8 +235,7 @@ landed_baseline:
|
|||
- Use focused app-server/core Rust checks before modifying explicit role launch/read-back/acceptance behavior.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- smoke --store .\state\agents.msgpack` before modifying role self-memory dossiers or `selfPatch` persistence policy.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- smoke --agent-store .\state\agents.msgpack` before modifying heartbeat initiative timing, idle rumination, or role slot selection.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality-smoke` before modifying repo personality terrain scoring, role projection, or startup-personality artifact shape.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality-smoke` before modifying repo memory birth packet shape, source excerpt selection, or role-specific initialization memory contracts.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality-smoke` before modifying repo trajectory/personality terrain scoring, birth packet shape, startup-init routing, source excerpt selection, or role-specific initialization memory contracts.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-face-discord -- smoke` before modifying Face's #aquarium posting/draft guardrails.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-void-memory -- smoke` and `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-void-memory -- status` before modifying Void memory bridge behavior.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-unity-bridge-smoke` before modifying the Unity editor/runtime bridge.
|
||||
|
|
|
|||
Reference in a new issue