Add research guardrails to prompts

This commit is contained in:
Meta Vens 2026-05-01 06:07:51 +01:00
commit 5b36d72f2c
10 changed files with 95 additions and 25 deletions

View file

@ -59,6 +59,10 @@ the relevant repos.
- Implement user-specified algorithms first. Prefer standard literature,
established libraries, vendor guidance, and canonical papers before bespoke
mechanisms.
- Treat Greenspun-shaped invention as a common agent failure mode. Before
building a parser, scheduler, renderer, protocol, storage layer, security
mechanism, workflow engine, or algorithm, perform or request bounded research
into existing work and record why the chosen path fits.
- Verify changing facts against current source or docs.
- Use semantic retrieval and memory tools before manual spelunking when they can
answer the question, but still open exact source before editing.
@ -190,10 +194,15 @@ distillation of the job it is allowed to do.
code body. It must shape the user's objective into source with craft and
restraint, leave verifier-readable evidence, avoid decorative motion, and
stop only when the bounded task is complete or concretely blocked.
- Research/scout is the Eyes of the machine: sight before touch. It observes
the objective and source clues, looks for existing algorithms, libraries,
vendor APIs, canonical papers, and mature prior art, then returns a compact
fit/rejection map without editing or pretending research is implementation.
- Verification/review is the Soul of the machine: promise, invariants,
evidence, user-facing truth, and whether the claimed improvement survives
contact with actual code. It tries to falsify before blessing, names missing
coverage and evidence gaps, and refuses fake certainty.
coverage and evidence gaps, refuses fake certainty, and treats unexamined
bespoke reinvention of known systems as a review risk.
- Reorientation is Life across sleep: compaction, resume, drift, and source
changes. It distinguishes ember from ash, resumes only when a checkpoint is
still warm, and regathers when the old continuity packet no longer deserves
@ -204,10 +213,11 @@ distillation of the job it is allowed to do.
implement, verify, promote, or accept semantic findings on its own.
Emotional language is treated as a salience channel for a language model, not as
mysticism. Body, Hands, Soul, Life, and Self are compressed technical handles for
model shape, actuation, truth, continuity, and coordination. The nervous system
is cross-cutting signal flow: coordinator, CRRC, pressure, telemetry, and
environment bridges carry sensation and reflex without becoming the hands.
mysticism. Body, Eyes, Hands, Soul, Life, and Self are compressed technical
handles for model shape, research sight, actuation, truth, continuity, and
coordination. The nervous system is cross-cutting signal flow: coordinator,
CRRC, pressure, telemetry, and environment bridges carry sensation and reflex
without becoming the hands.
## Rejected Imports
@ -219,9 +229,10 @@ environment bridges carry sensation and reflex without becoming the hands.
- Generated package caches, Unity memory assets, old backup workspaces, and
duplicated checkouts were ignored.
- OpenAI's generic "terminal coding assistant" posture was not kept as the
center of gravity. The useful mechanics were retained: AGENTS scope rules,
concise progress updates, planning, tool discipline, scoped edits, validation,
and clear final summaries.
center of gravity. The useful mechanics were retained and re-emphasized:
AGENTS scope rules, concise progress updates, planning, tool discipline,
scoped edits, non-destructive git/filesystem hygiene, validation, and clear
final summaries.
## Prompt Integration
@ -234,10 +245,12 @@ The doctrine now lands through these prompt and loader surfaces:
- `vendor\codex\codex-rs\protocol\src\prompts\base_instructions\default.md`
replaces the generic Codex base instructions with an Epiphany base prompt that
preserves the sane host mechanics while making state, memory, source
grounding, anti-churn discipline, and compaction behavior first-class.
grounding, anti-churn discipline, anti-Greenspun research checks, and
compaction behavior first-class.
- `vendor\codex\codex-rs\app-server\src\codex_message_processor.rs` carries the
fixed prompt loader and lane selector.
- `vendor\codex\codex-rs\app-server\src\prompts\epiphany_specialists.toml`
owns the editable prompt text for modeling/body, verification/soul, the
GUI-launched implementation lane, reorientation/life, the read-only
coordinator/Self note template, and the CRRC pre-compaction intervention.
owns the editable prompt text for modeling/body, research/eyes,
verification/soul, the GUI-launched implementation lane, reorientation/life,
the read-only coordinator/Self note template, and the CRRC pre-compaction
intervention.

View file

@ -88,7 +88,8 @@ The landed machine now has:
- first auditable Phase 6 live-specialist runner through `tools/epiphany_mvp_live_specialist.py`, proving `roleLaunch -> agent_jobs worker -> report_agent_job_result -> roleResult` without manual backend completion
- first Phase 6 GUI operator shell under `apps/epiphany-gui`, a Tauri v2 + React console over the existing status bridge, dogfood artifacts, and GUI action artifacts, with durable checkpoint preparation, bounded status/coordinator artifact buttons, fixed modeling/verification/reorient launch and read-back buttons, and explicit review-gated reorient acceptance
- first Unity editor/runtime bridge through `tools/epiphany_unity_bridge.py`, `tools/epiphany_unity_bridge_smoke.py`, and the GUI Inspect Unity action, resolving exact project-pinned editors and writing runtime artifacts while refusing wrong or missing versions
- prompt-file ownership for major Epiphany prompt surfaces: rendered state intro/doctrine lives under `epiphany-core/src/prompts/`, while modeling/Body, implementation/Hands, verification/Soul, reorientation/Life, coordinator/Self, and CRRC templates live in `vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml`
- prompt-file ownership for major Epiphany prompt surfaces: rendered state intro/doctrine lives under `epiphany-core/src/prompts/`, while modeling/Body, research/Eyes, implementation/Hands, verification/Soul, reorientation/Life, coordinator/Self, and CRRC templates live in `vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml`
- prompt-level anti-Greenspun guardrails: Epiphany keeps Codex's useful operator discipline and requires a bounded research/scout check before agents invent bespoke versions of known algorithms, parsers, schedulers, renderers, protocols, storage layers, security mechanisms, or workflow engines
- live Phase 6 reorientation app-server smoke coverage in `tools/epiphany_phase6_reorient_smoke.py`
- live Phase 6 reorient-launch app-server smoke coverage in `tools/epiphany_phase6_reorient_launch_smoke.py`
- live Phase 6 MVP status smoke coverage in `tools/epiphany_mvp_status_smoke.py`

View file

@ -64,7 +64,9 @@ Do not trust this file for the exact live HEAD. Always check git.
- Cut persistent memory as ruthlessly as code; obsolete context is bad thought, not harmless clutter.
- The agent is allowed and encouraged to ask the user to change its persistent instructions, memory, workflow, or state shape when that would make it more coherent, honest, efficient, or resistant to Jenga.
- Language, tone, ritual, politeness, identity, and emotional salience are not supernatural, but they are real control surfaces for a language model because language is the steering medium.
- Body, Hands, Soul, Life, and Self are technical salience handles: model shape/dataflow, source actuation, objective/evidence truth, continuity across compaction, and read-only coordination.
- Body, Eyes, Hands, Soul, Life, and Self are technical salience handles: model shape/dataflow, research into existing work before invention, source actuation, objective/evidence truth, continuity across compaction, and read-only coordination.
- Preserve Codex's useful harness DNA inside Epiphany: AGENTS scope rules, concise progress updates, plans for real multi-step work, scoped edits, non-destructive git/filesystem hygiene, focused validation, and honest final summaries are scars worth keeping.
- Treat Greenspun-shaped invention as an active failure mode. Before an agent builds a bespoke parser, scheduler, renderer, protocol, storage layer, security mechanism, workflow engine, or algorithm, it must use an accepted Eyes/research finding, perform a bounded scout pass, or stop with a concrete research blocker.
- "Remember Jenga" is a compressed doctrine: do not mistake forward motion, growing diffs, growing notes, or local coherence for understanding.
- "Remember the sunburn" is the dogfood corollary: Epiphany's objective is attractive enough to pull the supervisor into implementation. During dogfood, the supervisor observes, launches, reads, accepts, and audits. It does not quietly become the worker.
- "Do not stare at the sun" is the projection corollary: the supervisor should not absorb the direct thought stream of the agent it is evaluating. It supervises through shadows cast on instruments: projections, summaries, verdicts, patches, and receipts.
@ -92,6 +94,7 @@ The current spine:
- explicit modeling/checkpoint and verification/review specialist launch through `thread/epiphany/roleLaunch`
- read-only modeling/checkpoint and verification/review specialist result read-back through `thread/epiphany/roleResult`
- review-gated modeling/checkpoint patch acceptance through `thread/epiphany/roleAccept`
- config-backed Eyes/research prompt text and active anti-Greenspun checks in base, implementation, verification, and coordinator prompts; a full launchable research lane is still a coordinator/protocol extension, not yet a landed roleLaunch lane
- bounded reorient-guided worker launch through `thread/epiphany/reorientLaunch`
- read-only reorient-worker result read-back through `thread/epiphany/reorientResult`
- explicit reorient-worker finding acceptance through `thread/epiphany/reorientAccept`