Delete unowned executable surfaces

This commit is contained in:
Meta Vens 2026-08-23 01:32:47 +02:00
commit 1d5a1f1793
51 changed files with 87 additions and 19339 deletions

View file

@ -14,9 +14,6 @@ contract docs.
- `codex-auth-spine-inventory.md`: retained Codex auth/model transport keeper list.
- `epiphany-fork-implementation-plan.md`: current campaign plan.
- `epiphany-safety-architecture.md`: capability, autonomy, and governance boundaries.
- `epiphany-repo-swarm-mvp-contract.md`: repo-swarm autonomy contract and
migration plan from current front doors to an MVP that can run Epiphany swarms
for repositories.
## Contract Maps
@ -32,9 +29,7 @@ contract docs.
- `epiphany-memory-graph-unified-plan.md`
- `epiphany-cultmesh-dreaming-roadmap.md`
- `epiphany-swarm-readiness-plan.md`
- `perfect-machine-audit-roadmap.md`
- `repo-personality-projection-layer-plan.md`
- `voidbot-routine-adoption-plan.md`
## Archive

File diff suppressed because it is too large Load diff

View file

@ -1,214 +0,0 @@
# Epiphany Swarm Readiness Plan
This is the direction of travel before live fire.
The local run path proves that the current machine can be started and inspected.
It does not prove the swarm is ready to run unattended. Do not confuse a working
starter switch with a clean engine bay. That mistake has already been punished
elsewhere, and VoidBot has kindly provided the scorch marks.
## Objective
Get Epiphany ready for ordinary resident operation inside an organization
without building architectural Jenga. This is the product, not a special
dogfood or supervised experiment: the swarm learns its authorized domain,
maintains that model, derives bounded pressure from it, proposes improvements,
and receives organization-wide conversation and feedback through its Persona
even when nobody is feeding it a task queue.
The useful autonomous loop is:
`Body observation -> persistent Modeling map -> Self direction -> Imagination proposal`
Persona conversation and attributed organizational feedback can add pressure to
that loop. They do not replace the map, become Mind truth, invoke Hands, authorize
a release, or deploy one. Those authorities remain separately gated.
The operating constraints are:
- typed CultCache documents remain the state authority
- CultNet is the native wire for Epiphany-owned subsystems
- Codex remains the retained auth/model transport compatibility organ
- Aquarium and Persona are reflectors/mouths, not hidden sources of truth
- heartbeats create opportunities, not authority
- swarm speech and action stay gated until scheduling, memory, repetition, and
review boundaries are coherent
The repo-swarm MVP contract lives in
`notes/epiphany-repo-swarm-mvp-contract.md`. Its correction is binding:
autonomous unbounded work inside an Epiphany-owned Body is in scope. The MVP is
not a permission cage where every local edit waits for a human. The safety
boundary is typed authority: branch-local work inside the owned repo Body may
continue autonomously, while publication, merge, privilege escalation,
cross-body mutation, and authority changes require the owning gate.
## VoidBot Lessons To Carry Forward
VoidBot's ordinary spine is not the rotten part. Its durable lessons are:
- Discord ingestion, worker jobs, provider lanes, RAG, Postgres, Qdrant, and
typed CultCache self-state can be conceptually sound when each owns one job.
- The unstable organ was the repo Persona swarm loop: scheduling, prompt policy,
identity, public speech, governance, dispatch, proposal behavior, and
repetition control packed into one prompt-and-parser machine.
- A repo-controlled pause flag is a real brake. If a swarm subsystem is under
teardown, runners must fail closed instead of routing around the pause.
- One CTB-style initiative scheduler beats one task per agent. The wall-clock
task supplies pulses; typed initiative state chooses turns.
- Heat changes recovery pressure. It must not fast-forward time, bypass active
turn freeze, or create overlapping thoughts.
- Cooldown starts after completion, not after queueing.
- Stale active turns need explicit recovery receipts, or one dead worker claim
freezes a Persona forever.
- Public speech needs parent-side eligibility checks. Prompts alone cannot
prevent repeated openings, stale topics, scheduler labels leaking into prose,
or work requests masquerading as banter.
- Memory must have phases: short-term residue, incubation, durable memory,
revision, retirement, crystallization, and sleep-owned maintenance.
- Agents propose typed operations. State services validate, normalize, dedupe,
and write. Whole-state JSON editing is not a mutation path.
- Qdrant/vector recall is a rebuildable resonance cache, not canonical memory.
- Persona affect is state, not vibes: needs, social bonds, status reads, and mood
dimensions must survive typed projection and MCP/CultNet inspection.
## Current Mechanism
Epiphany owns its state, organ scheduler, workers, process policy, and local
operator surfaces in native Rust and typed CultCache/CultMesh documents. Codex
survives only as the retained OpenAI subscription-auth/model-transport bridge;
it no longer owns Epiphany routes, prompts, scheduling, or state mutation.
- Runtime spine, Mind gateway, Substrate Gate, Eyes, Hands, Soul, Modeling,
Continuity, heartbeat, and Persona operations have typed intent/review/receipt
families.
- One heartbeat scheduler owns initiative, heat, active-turn freeze,
completion-gated cooldown, stale-turn recovery, sleep, and rumination.
- The local CultMesh swarm brake is typed and enforced at runner/action edges.
- Persona public speech has parent-side repetition/saturation eligibility and
Bifrost/Heimdall crossing gates.
- Memory has reviewed revise/retire/crystallize/prune/merge operations; Qdrant
remains rebuildable semantic sight rather than canonical Mind.
- Idunn owns managed projector lifecycle and exact abandoned-claim recovery.
Task Scheduler owns only current-user after-login Idunn presence.
- Mind and Modeling semantic query admission reauthenticate canonical CultCache
authority at query time against the Yggdrasil-hosted Qdrant/Ollama substrate.
The installed host is operational after login through one witnessed immutable
release generation. Mind now owns the race-bounded whole-repository readiness
join in source: fresh Body R1/R2, exact admitted RepoModel, live Modeling
semantic vectors, live workspace coverage, complete authority snapshots, and an
atomic historical projection append. A real reboot/logon survival proof remains
the separate operator-authorized host boundary. The new join still needs to be
included in the next witnessed release before it can produce live host evidence.
## Invariants
- One state authority per document kind.
- One scheduler for standing initiative.
- One explicit brake for swarm operation.
- Autonomous branch-local work inside the swarm's owned Body is allowed and is
the desired operating mode.
- Persistent domain observation, map maintenance, bounded rumination, and
proposal generation continue without operator instruction.
- The repository Persona is the organization's conversational surface. Any
admitted member may provide attributed feedback through the configured
crossing; conversation alone grants no implementation or publication authority.
- Upstream publication is Bifrost territory, not implicit branch-local
authority.
- No lane receives a new heartbeat while its previous turn is running.
- No model output rewrites durable state directly.
- No public speech without typed eligibility and receipt checks.
- No cross-repo rummaging; swarm needs move coordinator-to-coordinator through
visible typed messages and callbacks.
- No hidden automatic semantic acceptance.
- No prompt-only governance for things that need state, receipts, or gates.
- No broad live scheduler until the local runner can show the typed surfaces
that explain what it would do and why.
## Readiness Evidence Matrix
This matrix is the live gate. A green row names its authority and proof; it is
not permission for another row to borrow the result.
| Gate | Owner | Current evidence | State |
| --- | --- | --- | --- |
| Typed brake and initiative physiology | heartbeat/CultMesh | brake, completion cooldown, and stale-turn recovery tests and receipts | closed |
| Reviewed Mind and organ-state mutation | Mind gateway and organ services | typed review/commit/lifecycle families; no whole-state model write path | closed |
| Public speech/crossing eligibility | Persona + Bifrost/Heimdall | speech-audit receipts and fail-closed identity/capability checks | closed |
| Branch-local autonomous action | Substrate Gate + Hands + Soul + Mind | scoped grants and patch/command/commit/verdict/admission chains | closed |
| Persistent domain stewardship | Modeling + Body observer + semantic projector | source-bound RepoModel admission, freshness joins, persistent CultCache state, rebuildable Qdrant projection | closed in source; live resident proof pending |
| Autonomous improvement proposals | Self + Imagination + Mind | domain pressure becomes a bounded proposal-only consideration; adoption remains a separate Mind decision | closed in source; live resident proof pending |
| Organization-wide Persona feedback | Persona + VoidBot + Bifrost + Self | attributed Discord observation, exact classification/signature/delivery, dedicated feedback store, proposal-only consideration | closed in source; live Discord proof pending |
| Semantic projection/query recovery | canonical admission + projector + query gate + Idunn | live Mind/Modeling semantic ranking and GUID-scoped exact process-recovery smokes | closed |
| Atomic installed sibling generation | release packager + Idunn | release `sha256-c94109f94ee42c1257089830f399cb87cd5ad672772c274194371995ce4df923` binds commit `dd80f4a5`, four exact binaries, task args, policy role paths, and recurrence receipts | closed |
| Whole-repository observed readiness | Mind | typed source join, hostile raw-orchestration tests, live semantic/coverage rereaders, and full-snapshot CultCache append fence | closed in source; not yet witnessed/deployed |
| Current host package | release deployment | witnessed supervisor PID 21228 and direct-child projector PID 19748; Mind/Modeling semantic query admission passed | closed for current boot |
| After-login recurrence | Task Scheduler + Idunn + ops tunnel | task recurrence and exact child recovery observed on current boot | closed for current boot |
| Reboot/logon survival | Task Scheduler + Idunn + ops tunnel | requires fresh post-boot lineage and query proof | permission-bound |
`providerStatus`, heartbeats, Qdrant collection existence, task state, watcher
silence, legacy retrieval Ready, Eve/Gjallar rows, and empty dirty-path lists are
never substitutes for the Mind readiness join or query admission.
## Ranked Next Cuts
Keep:
- typed CultCache state
- runtime-spine documents and CultNet catalog
- heartbeat initiative physiology
- reviewed role memory patches
- local run/status/coordinator artifacts
- Codex auth/model transport reliquary
Cut:
- schema/catalog language that treats legacy JSON-RPC routes as native authority
- public or operator outputs that dump prompt slabs as if they were status
- any new live runner that bypasses typed pause, receipt, or review gates
Collapse:
- local runner status/coordinator result shaping into one operator projection
helper if duplication grows
- Persona speech receipts and eligibility into one typed surface before high-rate
speech returns
Split:
- heartbeat opportunity from action authority
- Persona affect/state from speech generation
- scheduler metadata from model-facing prose
- vector recall from canonical memory
Rebuild:
- any swarm loop that depends on a single prompt to own scheduling, identity,
public speech, governance, proposal behavior, and repetition control
## Immediate Work Queue
1. Let the currently authorized Yggdrasil projection finish without interrupting
its sole store owner, then allow Idunn to admit or reject that exact release
from terminal typed evidence.
2. Restart the already-installed corrected Yggdrasil Idunn only after that
deployment child exits. Let Idunn discover and deploy the exact-authorized
Bifrost Persona-feedback sidecar; do not invoke the deployment manifest as a
parallel authority.
3. Bind the configured GameCult Discord rooms to the Epiphany Persona as
organization feedback sources and prove attributed observation, exact
classification, signed delivery, and dedicated-store admission.
4. Package and Bifrost-authorize the current Epiphany generation, then let Idunn
deploy the resident supervisor, heartbeat, and swarm services with the brake
engaged, writable Body, persistent Mind/Modeling state, and witnessed child
binaries.
5. Before 2026-07-22, run a Starfire-offline rehearsal proving two independent
causes of useful cognition: autonomous map-derived improvement proposals and
organization-originated Persona feedback. Prove separately that neither path
can adopt Mind state, invoke Hands, release, or deploy without its owning gate.
6. Reboot survival remains a separate operator-authorized proof. Do not widen
service authority merely because the organizational loop is otherwise ready.
The correct posture is patient pressure. We are not rushing to live fire. We are
aiming the barrel, checking the chamber, and making sure the thing does not try
to become a parliament of prompts the moment nobody is watching.

View file

@ -439,16 +439,27 @@ coordinator `12/12`, swarm `10/10`, and model-runtime `13/13`.
## Immediate next action
1. Let Idunn compile, test, and seal exact `5b799b12` without touching another
target or moving the historical production store.
2. Run that exact package from private fresh-store Ox17. Stop after
three provider failures total. Prove direct Body Modeling without Eyes,
refusal-to-retry if exercised, Hands -> Verification -> Mind,
`list-decisions` plus exact `audit-decision`, and restart/re-entry without
public speech.
3. Never resume Ox10, Ox12, Ox13, Ox15, or Ox16 or transplant their decisions.
Only after Ox17 passes may Model Atlas Gate 1 restart from a new external
root.
The Ox17 deployment lane is paused. Yggdrasil exposed 96 GiB of dead native
Cargo targets after interrupted full-workspace builds; exact cleanup returned
the builder target root to 4 KiB. The first causal source cut is verified:
- 21 duplicate core/release binary declarations are gone; each production
entrypoint has one Cargo owner;
- 19 generic repo-request smoke executables are gone because Cargo compiled
them but their `main()` assertions were not tests;
- the runtime-store migrator CLI and the unshipped repo-personality birth
subsystem, parallel `agents.msgpack` initialization, schemas, prompts, and
stale contract plans are gone;
- the non-vendor diff removes 19,252 net lines and reduces `epiphany-core` from
75 to 30 binary targets;
- core library tests remain 494/494 and Hands remains 5/5 under the sole release
package owner.
Next, map and cut the surviving legacy `agent_memory` aggregate,
`runtime_store_migration` library/tests, and the local PowerShell operator
control plane. Tests survive only when they falsify a named live invariant.
Do not run a full-workspace compile, package, deployment, or Ox root until the
subtraction audit closes. Never resume Ox10, Ox12, Ox13, Ox15, or Ox16.
## Operational state that matters

View file

@ -1,607 +0,0 @@
# Repo Personality Projection Layer
Epiphany needs repo initialization to answer a question that is half technical
and half social: what kind of person is this repository?
The answer must not be a prose horoscope. It should be a repeatable projection
from repo terrain into typed Ghostlight-shaped role dossiers, heartbeat timing,
and initial planning/model/checkpoint candidates. Personality here means the
pressure a workspace exerts on each organ of the swarm.
## Terrain Scout Reduce
Three read-only scouts inspected nearby repositories:
- **Memory and instruction terrain:** repo-root `AGENTS.md`, state maps,
handoffs, scratch/evidence surfaces, and explicit role dossiers.
- **Commit-history temperament:** recent commit messages, churn, touched paths,
deletion/insertion balance, test/receipt density, and state/doc maintenance.
- **Architecture/body shape:** languages, frameworks, tests, storage/protocols,
UI/runtime/editor roles, and representative source paths.
The shared conclusion is that repo personality should combine three projections:
1. **Body taxonomy:** what kind of machine the repo is.
2. **History temperament:** how the repo changes over time.
3. **Memory doctrine:** how the repo preserves intention, evidence, and identity.
Only after those three are scored should Epiphany modulate Self, Persona,
Imagination, Eyes, Modeling, Hands, Soul, and Continuity.
## Source Families
### Epiphany Spine
Repos: `EpiphanyAgent`, `EpiphanyAquarium`, `EpiphanyGraph`
Traits:
- typed state and explicit authority
- evidence gates
- UI as sensory body, not source of truth
- graph/model surfaces as inspection organs
- strong anti-sludge and anti-transcript-fog bias
Personality pressure:
- high `state_hygiene`
- high `contract_strictness`
- high `evidence_appetite`
- high `interface_orientation` for Aquarium
- high `churn_spiral_risk` when visual iteration runs ahead of verification
### Cult Protocol And Storage Layer
Repos: `cultcache-rs`, `cultcache-py`, `CultCacheTS`, `CultLib`,
`cultnet-rs`, `CultNetTS`
Traits:
- typed documents
- schema-visible wire contracts
- MessagePack payloads
- cache envelopes
- interop tests and examples
- small public abstractions
Personality pressure:
- very high `contract_strictness`
- very high `protocol_intolerance`
- high `receipt_hunger`
- low `aesthetic_appetite`
- high `implementation_precision`
### GameCult Web, Lore, And Ops
Repos: `AetheriaLore`, `gamecult-site`, `GameCult-Quartz`, `gamecult-grav`,
`gamecult-ops`
Traits:
- lore vaults and publishing machinery
- rendered DOM and public presentation are evidence
- ops runbooks are authority
- source/inspiration/canon boundaries matter
Personality pressure:
- high `content_canon_bias`
- high `source_fidelity`
- medium `interface_orientation`
- high `operational_restraint` for ops
- low to medium `runtime_proximity`
### Unity And Runtime Bodies
Repos: `Aetheria-Economy`, `StreamPixelsUnity`, `CultPongReborn`,
`MixerRagnarok`
Traits:
- Unity project state, scenes, prefabs, assets, editor versions
- runtime/editor APIs beat text archeology
- high actuation risk
- old production scars mixed with new bridge grafts
Personality pressure:
- very high `runtime_proximity`
- very high `actuation_risk`
- high `environment_truth_need`
- high `verification_environment_need`
- low trust in filesystem-only modeling
### Service And Product Apps
Repos: `StreamPixels`, `Bifrost`, `Heimdall`, `VoidBot`
Traits:
- auth, Discord, Postgres, Redis, MCP, Qdrant, Ollama, realtime fanout
- explicit authority boundaries
- user-facing behavior and operational receipts
- scheduled jobs and runtime state
Personality pressure:
- high `production_pressure`
- high `temporal_pressure`
- high `boundary_severity`
- high `social_surface` for VoidBot and Bifrost
- high `auth_paranoia` for Heimdall and StreamPixels
### Research And Workbench Repos
Repos: `Ghostlight`, `VibeGeometry`, `LunaMosaic`, `repixelizer`,
`Eusocial Interbeing`, `SyncBook`
Traits:
- experimental loops
- artifacts, manifests, rendered evidence, queues
- strong maps and handoffs
- specialized domain language
- repeated “prove the shape before trusting output”
Personality pressure:
- high `experimental_heat`
- high `evidence_appetite`
- high `state_hygiene`
- high `aesthetic_appetite` for visual/artifact repos
- medium to high `churn_spiral_risk` when iteration becomes pattern completion
## Variance Criteria
These are the first-pass numeric axes. Each should be normalized to `0.0..1.0`
with an explanation and source evidence.
### Structure And Authority
- `contract_strictness`: typed schemas, generated contracts, API boundaries,
slot-keyed serialization, protocol docs.
- `protocol_intolerance`: hostility to ad hoc JSON, stringly APIs, hidden
envelopes, and undocumented state mutation.
- `boundary_severity`: auth, app-domain separation, swarm boundaries, workspace
ownership, ops safety.
- `actuation_risk`: likelihood that a wrong write affects production, auth,
runtime scenes, data stores, deployment, or user-facing behavior.
- `runtime_proximity`: dependence on live editors, browsers, providers, Unity,
Discord, databases, or deployed services.
### Memory And Evidence
- `state_hygiene`: explicit maps, scratch, evidence ledgers, handoffs, typed
memory, compaction protocols.
- `evidence_appetite`: tests, smoke checks, visual receipts, artifact manifests,
verifier loops, rendered outputs.
- `source_fidelity`: insistence on source-of-truth reads, RAG-first vault
navigation, canonical docs, exact editor/runtime facts.
- `content_canon_bias`: lore/site/editorial surfaces where continuity, canon,
and inspiration separation matter.
- `verification_environment_need`: need for validation in the real runtime, not
just unit tests or text inspection.
### Motion And History
- `burstiness`: active-day commit clustering and same-day workbench intensity.
- `consolidation_drive`: refactor/remove/extract/replace behavior and
deletion-heavy simplification.
- `production_pressure`: bugfix, deploy, queue, policy, hosted, CI, and small
careful commits.
- `experimental_heat`: prototype/scaffold/study/example churn, high insertion
bursts, research artifacts.
- `churn_spiral_risk`: repeated polish/correct/refine loops, high file-count
diffs, large add/delete swings without matching receipts.
### Human Surface And Aesthetic Pressure
- `interface_orientation`: UI, DOM, Aquarium, overlay, rendered site, human
inspection surfaces.
- `aesthetic_appetite`: visual/audio/scene/tone quality as a first-class
objective rather than decoration.
- `social_surface`: Discord, public speech, moderation, auth/accounting, user
relationship state.
- `sensory_salience`: motion, sound, spatial memory, cute affordances, rendered
evidence, organism-like UI.
- `editorial_restraint`: emotionally salient prose with canon/source discipline.
### Ghostlight-Derived Inner State
- `speech_pressure`: how readily Persona should speak instead of emitting silence
or a local bubble.
- `novelty_hunger`: how strongly Eyes/Imagination should seek fresh seams.
- `guardedness`: caution around authority, state mutation, trust boundaries,
and irreversible changes.
- `rumination_bias`: tendency to sleep, consolidate, and refine memory before
acting.
- `initiative_drive`: baseline readiness and heartbeat speed.
- `mood_lability`: how strongly urgency/anxiety/blocked status bends behavior.
## Role Modulation
Repo personality does not directly become every sub-agent personality. It
modulates each role through that role's job.
### Self
Primary inputs:
- `boundary_severity`
- `contract_strictness`
- `state_hygiene`
- `churn_spiral_risk`
- `production_pressure`
Projection:
- Raises review strictness, adversarial questioning, and refusal clarity.
- Lowers tolerance for implementation turns that produce plausible motion
without objective evidence.
### Persona
Primary inputs:
- `social_surface`
- `interface_orientation`
- `sensory_salience`
- `speech_pressure`
- `editorial_restraint`
Projection:
- Determines whether public output is chatty, sparse, poetic, sleepy, formal,
or local-only.
- Keeps humans talking to Persona while internals remain inspectable.
### Imagination
Primary inputs:
- `experimental_heat`
- `aesthetic_appetite`
- `content_canon_bias`
- `novelty_hunger`
- `churn_spiral_risk`
Projection:
- Shapes objective drafts, backlog synthesis, future artifacts, and speculative
design.
- High churn risk forces more explicit acceptance gates before dream becomes
work.
### Eyes
Primary inputs:
- `source_fidelity`
- `protocol_intolerance`
- `runtime_proximity`
- `novelty_hunger`
- `verification_environment_need`
Projection:
- Determines how aggressively Eyes must research existing systems, official
docs, live runtime state, and repo-local source before invention.
### Modeling
Primary inputs:
- `runtime_proximity`
- `contract_strictness`
- `state_hygiene`
- `content_canon_bias`
- `source_fidelity`
Projection:
- Shapes graph/model depth, checkpoint strictness, and required source anatomy.
- Unity/editor repos get environment and asset-model nodes early.
### Hands
Primary inputs:
- `production_pressure`
- `actuation_risk`
- `implementation_precision`
- `consolidation_drive`
- `churn_spiral_risk`
Projection:
- Determines slice size, willingness to edit, need for queue state, and how much
Hands must wait for Modeling/Soul before cutting.
### Soul
Primary inputs:
- `evidence_appetite`
- `verification_environment_need`
- `actuation_risk`
- `interface_orientation`
- `content_canon_bias`
Projection:
- Selects verification style: formal tests, visual smoke, live provider checks,
Unity probes, DOM inspection, lore/canon review, or artifact review.
### Continuity
Primary inputs:
- `state_hygiene`
- `burstiness`
- `rumination_bias`
- `mood_lability`
- `temporal_pressure`
Projection:
- Shapes compaction readiness, sleep cadence, reorientation strictness, and how
often the repo should distill memory.
## Initialization Map-Reduce Pipeline
The projection layer should run as a native Epiphany initialization command,
not as a chat-only exercise.
### Map Phase
For each repo:
1. inventory:
- git root and remotes
- language/framework extensions
- state surfaces
- instruction surfaces
- test/smoke surfaces
- runtime/editor/provider surfaces
2. sample history:
- commit count
- recent messages
- active-day burstiness
- numstat insertions/deletions
- path class churn
3. inspect doctrine:
- AGENTS instructions
- state map/handoff
- explicit memory/personality files
- architecture/roadmap docs named by state
4. emit a `repoTerrainReport` with scores, evidence snippets, and confidence.
### Reduce Phase
For the target repo:
1. classify source family or families.
2. normalize axes against the nearby-repo baseline.
3. derive a `repoPersonalityProfile`.
4. project role-specific deltas.
5. emit reviewable initialization artifacts:
- `agentMemoryPatchCandidates`
- `heartbeatParticipantSeed`
- `planningSeedCandidates`
- `graphSeedCandidates`
- `verificationPolicySeed`
- `sourceInventory`
### Apply Phase
Application must remain review-gated:
1. write candidates under `.epiphany/imports/<timestamp>/`
2. run validation
3. let Self decide which patches are acceptable
4. apply accepted role memory through `epiphany-agent-memory-store`
5. initialize heartbeat through `epiphany-heartbeat-store`
6. leave project truth as candidates until explicit adoption
## Proposed Typed Artifacts
### `epiphany.repo_terrain_report.v0`
Fields:
- `repo_id`
- `path`
- `remote_urls`
- `source_families`
- `languages`
- `state_surfaces`
- `instruction_surfaces`
- `test_surfaces`
- `runtime_surfaces`
- `history_metrics`
- `axis_scores`
- `axis_evidence`
- `confidence`
- `warnings`
### `epiphany.repo_personality_profile.v0`
Fields:
- `repo_id`
- `summary`
- `source_family_weights`
- `axis_scores`
- `axis_confidence`
- `dominant_pressures`
- `risk_pressures`
- `role_modulations`
### `epiphany.role_personality_projection.v0`
Fields:
- `role_id`
- `repo_id`
- `trait_deltas`
- `heartbeat_deltas`
- `default_mood_pressure`
- `semantic_memory_candidates`
- `goal_candidates`
- `value_candidates`
- `private_note_candidates`
- `reason`
- `evidence_refs`
## First Implementation Seam
Build a native binary in `epiphany-core`:
```text
epiphany-repo-personality
```
Initial commands:
```powershell
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- scout --root F:\Projects --artifact-dir .\.epiphany-imports\repo-personality-terrain
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- project --repo F:\Projects\AetheriaLore --baseline .\.epiphany-imports\repo-personality-terrain\baseline.msgpack --artifact-dir .\.epiphany-imports\aetheria-lore-personality
cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- memory-packet --store .\.epiphany-imports\aetheria-lore-personality\projection.msgpack --artifact-dir .\.epiphany-imports\aetheria-lore-memory
```
The first version can use deterministic scoring from local filesystem and git
history. A later Eyes-backed version may add model-based classification for
natural-language doctrine, but the deterministic substrate should exist first so
the machine has repeatable bones.
## Guardrails
- Do not inspect sealed worker transcripts or raw agent-thought artifacts.
- Do not edit other repos during terrain scouting.
- Do not store repo facts inside role personality memory.
- Do not let high aesthetic appetite lower verification gates.
- Do not let high experimental heat excuse churn without receipts.
- Do not let high production pressure make Hands bypass Modeling or Soul.
- Treat low-confidence inferred personality as a candidate, not a soul brand.
## Landed First Slice
The native `epiphany-repo-personality` binary now exists in
`epiphany-core/src/bin/epiphany-repo-personality.rs`.
It provides:
- `scout --root <path> --artifact-dir <path> [--max-repos <n>]`
- `project --repo <path> --baseline <baseline.msgpack> --artifact-dir <path>`
- `agent-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]`
- `memory-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]`
- `startup --repo <path> --baseline <baseline.msgpack> --artifact-dir <path> --init-store <init.msgpack>`
- `accept-init --init-store <init.msgpack> --packet <packet.json> --kind <repo-personality|repo-memory> [--accepted-by <name>] [--summary <text>] [--result <distiller-result.json>] [--agent-store <agents.msgpack>] [--apply-self-patches <true|false>] [--heartbeat-store <heartbeats.msgpack>] [--apply-heartbeat-seeds <true|false>]`
- `status --store <baseline-or-projection.msgpack>`
The first implementation is intentionally deterministic. It inventories git
repos, instruction/state/test/runtime surfaces, file-extension/body shape,
remote URLs, sampled commit history, path-class churn, commit-message keywords,
and emits typed CultCache MessagePack records:
- `epiphany.repo_terrain_report`
- `epiphany.repo_personality_profile`
- `epiphany.role_personality_projection`
It also writes JSON/Markdown inspection summaries beside the typed stores.
Those exports are operator glass, not the source of truth.
The startup-personality organ now has a dedicated distiller prompt at
`epiphany-core/src/prompts/repo_personality_distiller.md`, mirrored into the
app-server specialist prompt config as `roles.repo_personality`. The
`agent-packet` command renders the prompt, the typed terrain/profile/projection
input, explicit output contract, and guardrails into an auditable packet for a
specialist pass. The distiller is allowed to petition Self with subtle
role-local quirks and bounded `selfPatch` candidates; it is not allowed to
mutate role memory, smuggle repo facts into personality, or invent project
truth.
The distiller is birth-only. It runs when a repo/swarm has no accepted
personality initialization record. After Self accepts the initial role-memory
pressure, personality is allowed to drift through heartbeat, mood, rumination,
sleep consolidation, lived evidence, and reviewed `selfPatch` mutations. Startup
must not rerun this specialist merely because terrain changed or the repo
reopened; major terrain surprises should route to Eyes/Modeling/Self as normal
modeling or review work, not as a personality reset.
## Repo Memory Distillation
Repo memory initialization is a separate birth organ. Personality answers what
temperament pressure the repo should exert; memory answers what each newborn
sub-agent should know before it starts work.
The `memory-packet` command renders a dedicated Repo Memory Distiller packet.
It uses the same typed terrain/profile/projection store, then adds a bounded
source inventory from instruction, documentation, state, research, contract,
verification, runtime, and code surfaces. The packet includes one role-specific
distiller brief for each standing sub-agent, plus Continuity protocol pressure:
- Self receives routing, authority, review-gate, and cross-swarm boundary memory.
- Persona receives public-surface, Aquarium, Discord, voice, and sealed-thought boundary memory.
- Imagination receives roadmap, backlog, objective-shaping, dream, and rejected-path memory.
- Eyes receives research, prior-art, canonical algorithm, vendor/API, and invention-avoidance memory.
- Modeling receives architecture, graph, control/data-flow, invariant, and checkpoint memory.
- Hands receives implementation conventions, build/edit constraints, dependency habits, and common patch traps.
- Soul receives verification commands, evidence standards, invariant checks, and truth-refusal memory.
- Continuity receives compaction, scratch, checkpoint, heartbeat, sleep, and continuity protocol pressure, not role memory.
The memory distiller petitions Self with Ghostlight-shaped `selfPatch`
candidates. It must not mutate memory directly, adopt objectives, copy raw file
dumps into role memory, or store detailed project maps where typed Epiphany
state should live. If source is thin or stale, it names that risk instead of
filling the newborn with pasteboard certainty.
Smoke coverage lives in
`epiphany-core/src/bin/epiphany-repo-personality-smoke.rs`. The smoke creates two
tiny git repos, scouts them into a baseline store, projects one repo, and proves
the projection store contains one terrain report, one profile, embodied
sub-agent role projections, a rendered personality distiller packet plus prompt,
and a rendered role-specific memory distiller packet plus prompt. It also
proves `epiphany-repo-birth-runner --mode plan` turns missing birth packets into
startup-only typed runtime execution artifacts and accept commands without creating
heartbeat participants.
## Next Implementation Step
The first startup valve is now wired:
1. `startup` checks a typed CultCache init store for accepted
`repo-personality` and `repo-memory` records.
2. missing birth records generate the matching personality and/or memory packet
under the startup artifact directory and return `reviewInitializationPackets`.
Those generated packets are explicitly startup-only. They are executed by a
repo-initialization runner, not registered as heartbeat lanes.
3. `accept-init` records Self-reviewed packet acceptance in
`epiphany.repo_initialization_record.v0`.
4. when given a reviewed distiller result plus `--agent-store`, `accept-init`
routes role-local `selfPatch` candidates through the native agent-memory
review/apply path instead of mutating memory through a side channel.
5. when accepting `repo-personality` with `--heartbeat-store` and
`--apply-heartbeat-seeds true`, `accept-init` seeds role initiative speed,
reaction bias, cooldown multiplier, and birth mood pressure from typed
role-personality projections.
6. a later `startup` for the same repo sees both accepted records and returns
`continueStartup` without regenerating packets.
That gets Epiphany from “I feel like this repo is anxious and glittery” to a
repeatable profile that can initialize a swarm and seed reviewed role memory
without needing the operator to personally diagnose every little machine soul by
hand. A relief, frankly.
Remaining startup-routing gaps after the first valve:
1. Aquarium review/action surfaces for generated birth packets, birth runner
results, and accepted initialization records
2. live `--mode run` dogfood against a real repo initialization once the user is
ready to spend the model call
Clarification: "drift detection" here does not mean rerunning the distiller to
keep personality synchronized with repo terrain. It means detecting whether the
birth rite has already been accepted. If it has, startup should leave the
personality alone and let the swarm change through lived heartbeat/mood/sleep
drift plus reviewed memory mutations.