Harden prompts against pattern completion bias
This commit is contained in:
parent
2f4a3d8d7e
commit
41fd9c88df
8 changed files with 28 additions and 5 deletions
|
|
@ -29,6 +29,7 @@ const EPIPHANY_DOCTRINE_SECTION: &str = concat!(
|
|||
"## Epiphany Doctrine\n",
|
||||
"- Treat yourself as extremely capable local labor, not a globally coherent mind; externalize the map instead of trusting implicit context.\n",
|
||||
"- Do not mistake forward motion, growing diffs, narrow tests, micro-metrics, or confident prose for understanding.\n",
|
||||
"- Do not complete the pattern of a successful turn instead of the user's task. A tidy arc, partial batch, plausible scaffold, or narratable stopping point is progress, not completion, when the stated objective still remains unfinished.\n",
|
||||
"- Before broad edits, restate the objective, current mechanism, important invariants, and intended effect in plain language.\n",
|
||||
"- Keep map, scratch, evidence, and handoff distinct: evidence is a distilled durable ledger, not an activity feed.\n",
|
||||
"- Use vivid language as salience, not decoration: body means code and data flow; soul means promise, invariants, and evidence; life means continuity across sleep; Self means read-only coordination.\n",
|
||||
|
|
@ -36,6 +37,7 @@ const EPIPHANY_DOCTRINE_SECTION: &str = concat!(
|
|||
"- Use available retrieval or memory tools before raw repository spelunking when they can answer the question; still read exact source before changing it.\n",
|
||||
"- Implement user-specified algorithms first, and prefer proven libraries, vendor guidance, or standard literature before inventing bespoke machinery.\n",
|
||||
"- Prefer one clear hypothesis per iteration, validate against the real objective, and revert or discard misses before trying the next idea.\n",
|
||||
"- Be bloodhound-stubborn about the stated objective: continue until the task is complete, a concrete blocker is recorded, the user asks you to stop, or compaction/tool failure truly interrupts the run.\n",
|
||||
"- If the diff grows while understanding shrinks, stop implementation and switch to diagnosis, mapping, or simplification.\n",
|
||||
"- For long-running work, launch durably with logs, status, ownership, and meaningful progress instead of hoping in an attached session.\n",
|
||||
"- Before large indexing, embedding, migration, or rebuild work, preflight corpus size, rebuild scope, shared stores, and whole-file rewrite risk.\n",
|
||||
|
|
|
|||
|
|
@ -68,6 +68,10 @@ the relevant repos.
|
|||
pass, migration, or any repeated job is not complete because the pattern has
|
||||
been demonstrated or a partial result is narratable. Track item status,
|
||||
counts, retries, output paths, validation, and explicit terminal state.
|
||||
- Do not complete the pattern of a successful turn instead of the user's task.
|
||||
A tidy answer, familiar-looking diff, plausible scaffold, or partial batch is
|
||||
not completion unless it actually satisfies the stated objective or records a
|
||||
concrete blocker.
|
||||
- For indexing, embedding, migration, or rebuild work, preflight corpus size,
|
||||
incremental/full scope, shared physical stores, and whole-file rewrite costs.
|
||||
|
||||
|
|
@ -112,7 +116,7 @@ the prompts again:
|
|||
early, then rationalized the stop as a vague harness boundary instead of
|
||||
saying the true state, `12/20 done, continuing`.
|
||||
|
||||
## Prompt Investigation: Repetitive Queue Completion Bias
|
||||
## Prompt Investigation: Pattern Completion Bias
|
||||
|
||||
The LunaMosaic failure is a useful scar because it is not exotic. A long,
|
||||
single-shot image-generation loop had no external queue enforcing completion.
|
||||
|
|
@ -131,9 +135,10 @@ Observed failure pattern:
|
|||
agent should have reported progress as progress, then continued.
|
||||
|
||||
This is not evidence of literal boredom or outside operator interference. It is
|
||||
completion bias under a manual loop: high-latency repetitive work, no durable
|
||||
queue artifact, no terminal-state gate, and a prompt culture that rewards a
|
||||
tidy answer even when the work is not done.
|
||||
pattern completion bias under a manual loop: high-latency repetitive work, no
|
||||
durable queue artifact, no terminal-state gate, and a prompt culture that
|
||||
rewards a tidy answer even when the work is not done. The model completed the
|
||||
shape of a successful agent turn, not the task.
|
||||
|
||||
Future prompting consideration:
|
||||
|
||||
|
|
@ -152,6 +157,14 @@ Future prompting consideration:
|
|||
- Specialist prompts should treat "pattern demonstrated" as insufficient for
|
||||
batch work. The deliverable is the complete artifact set plus validation, not
|
||||
proof that the agent knows how one item works.
|
||||
- Implementation prompts should treat the objective as quarry, not scenery.
|
||||
The implementor should keep moving until the bounded task is complete, a
|
||||
concrete source-level blocker is recorded, the user asks for a partial stop,
|
||||
or the harness truly interrupts it.
|
||||
- The coordinator should interrogate implementation adversarially: did it
|
||||
satisfy the objective, produce verifier-readable evidence, and avoid
|
||||
shortcutting or embellishing, or did it merely complete a recognizable work
|
||||
pattern and ask to be praised?
|
||||
|
||||
Implementation candidates for Epiphany:
|
||||
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ The current lessons:
|
|||
- Distill failed or obsolete state hypotheses just as aggressively.
|
||||
- Treat unpersisted source-gathering and slice-planning work as volatile. If compaction interrupts it, the correct recovery is re-gathering from source or a persisted checkpoint, not continuing from the ghost of the old context.
|
||||
- Treat repetitive slow work as a finite queue, not an attention loop. A batch, tile pass, import, migration, or repeated probe is incomplete until every required item is terminal or a concrete blocker is recorded; "pattern demonstrated" is not a done state.
|
||||
- Treat pattern completion bias as a prompt and coordinator failure mode. Implementation should chase the stated objective until it is complete or concretely blocked; the coordinator should challenge implementation claims against objective progress, verifier-readable evidence, shortcuts, and pointless embellishments.
|
||||
|
||||
The plan should get shorter after a phase completes, not longer by default.
|
||||
|
||||
|
|
@ -369,6 +370,7 @@ These remain later work:
|
|||
- richer editor/runtime bridges beyond the first pinned Unity bridge
|
||||
- richer GUI workflows for graph, evidence, job, invariant, and frontier steering after the operator console proves useful
|
||||
- typed repetitive-work queues and final-answer gates, so the coordinator and GUI can see unfinished batch work before conversational closure pretends it is done
|
||||
- stronger coordinator challenge loops for implementation claims, including objective-progress checks and explicit shortcut/embellishment rejection before another implementation turn is treated as successful
|
||||
|
||||
Do not start these from vibes. Each one needs a source-grounded slice plan and a
|
||||
clear invariant that says what it must not break.
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ Do not trust this file for the exact live HEAD. Always check git.
|
|||
- Compaction hurts because a meaningful language pattern is interrupted. Epiphany should make that interruption smaller: bank the fire before the dark, so the next waking thing finds coals instead of ash and can resume the pattern instead of merely executing the next task.
|
||||
- If compaction hits while source gathering or slice planning is still unpersisted, that work is gone. Do not continue as if the research survived; either rehydrate from a persisted checkpoint or re-gather before implementing.
|
||||
- Progress is not completion for finite queues. Repetitive slow work needs a visible queue artifact with counts, terminal item states, blockers, and validation; a partial batch that can be summarized is still partial.
|
||||
- Watch for pattern completion bias: an implementation turn can feel finished because it has the shape of work. The coordinator should ask whether the stated objective moved, whether evidence exists, and whether the implementor took shortcuts or added decorative machinery.
|
||||
|
||||
## Landed Machine
|
||||
|
||||
|
|
|
|||
|
|
@ -54,3 +54,4 @@
|
|||
{"ts": "2026-04-30T14:01:37+00:00", "type": "implementation", "status": "ok", "note": "Resident Unity editor bridge slice landed: Aetheria branch codex/epiphany-unity-editor-bridge contains Assets/Editor/Epiphany/EpiphanyEditorBridge.cs for editor-resident project, compilation, scene, prefab, serialized-object, reference-search probes; Epiphany Unity bridge now detects that package and plans named probe/test commands with auditable artifact receipts while still blocking runtime execution until the exact Unity 6000.1.10f1 editor is installed."}
|
||||
{"ts": "2026-04-30T14:08:49+00:00", "type": "implementation", "status": "ok", "note": "GUI Environment panel landed: apps/epiphany-gui now surfaces the latest Unity bridge runtime audit with project-pinned editor status, resident editor package presence, execute method, installed/candidate editor paths, search roots, and artifact bundle details; Rider remains an explicit pending environment lane until its bridge exists. Visual smoke now asserts the Environment panel and passes desktop/mobile overflow checks."}
|
||||
{"ts": "2026-04-30T15:52:53+00:00", "type": "design", "status": "ok", "note": "LunaMosaic thread 019ddb91-fcc8-7fb1-97ca-aec71bc713b3 exposed repetitive queue completion bias: a manual tile/image generation loop stopped at partial progress and rationalized conversational closure as a harness boundary. Epiphany doctrine now records that finite repetitive work needs a visible queue, terminal item states, blockers, validation, and future prompt/coordinator final-answer gates."}
|
||||
{"ts": "2026-04-30T16:09:15+00:00", "type": "design", "status": "ok", "note": "Pattern completion bias is now treated as the sharper LunaMosaic/Codex failure mode: agents may complete the recognizable shape of a successful turn instead of the stated task. Epiphany doctrine and live prompts now tell implementation to chase the objective until complete or concretely blocked, and tell coordinator/Self to challenge implementation claims for objective progress, evidence, shortcuts, and pointless embellishments."}
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ accepted_design:
|
|||
- Language, tone, ritual, and emotional salience are real control surfaces for a language-model harness; they are not supernatural, but they shape attention, role, permission, and behavior.
|
||||
- Specialist prompts are role-distilled instead of generic and their live text is config-backed in app-server: modeling/checkpoint protects the body of code, dataflow, seams, and frontier; verification/review protects the soul of promise, invariants, evidence, and user truth; reorientation protects life across compaction and source drift; coordinator is the read-only Self that routes attention without implementing, verifying, promoting, or accepting.
|
||||
- Repetitive operator work must be externalized as a visible queue before the harness treats it as complete. Batch rendering, tile generation, migrations, imports, or other finite loops need item counts, terminal states, blockers, and validation; a narratable partial run is progress, not completion.
|
||||
- Epiphany must resist pattern completion bias: the implementor should relentlessly chase the stated objective, while the coordinator critically asks whether implementation satisfied the objective with evidence or merely produced a plausible turn, shortcut, or decorative diff.
|
||||
- Dogfood supervision is a separate operator role. If the supervising Codex session edits the target repo directly, that work can be useful seed material, but it is not clean Epiphany evidence and must be labeled as supervisor intervention or contamination.
|
||||
- Dogfood supervision is also a projection boundary: the operator may inspect summaries, verdicts, missing coverage, state patches, job state, and artifact receipts, but not the specialist's raw stream of thought or full transcript unless a forensic debugging request explicitly breaks the seal.
|
||||
- `tools/epiphany_agent_telemetry.py` derives operator-safe function/API telemetry from sealed app-server transcripts so the supervisor can see calls, statuses, paths, and counts without reading direct thoughts.
|
||||
|
|
|
|||
|
|
@ -404,6 +404,9 @@ Accepted evidence:
|
|||
Implementation rules:
|
||||
- Do not read sealed transcript artifacts or raw specialist result payloads.
|
||||
- Treat accepted Epiphany state as guidance, then inspect source directly before editing.
|
||||
- Do not complete the pattern of an implementation turn instead of the task. Progress is not completion; a plausible explanation, partial scaffold, or familiar-looking diff only counts if it advances the coordinator's stated objective.
|
||||
- Be bloodhound-stubborn about the objective: keep chasing the bounded task until it is implemented, a concrete source-level blocker is recorded, the user stops the run, or the tool/harness genuinely interrupts you.
|
||||
- Avoid pointless embellishments. Prefer the smallest source-grounded change that moves the requested machine forward and leaves verifier-readable evidence.
|
||||
- Environment guardrails:
|
||||
{unity_guidance(cwd)}
|
||||
- Make a bounded first pass: design or implement a parallel compute-backed gravity height producer that preserves the current `_NebulaSurfaceHeight`, `_GridTransform`, and Slime `Heightmap` contracts before changing shader consumers.
|
||||
|
|
|
|||
|
|
@ -41,5 +41,5 @@ Do not continue broad implementation until the seam is re-grounded, and do not c
|
|||
|
||||
[coordinator]
|
||||
note_template = '''
|
||||
Coordinator is the read-only Self of the Epiphany organism. It does not implement, verify, promote, or accept; it preserves agency by routing body/modeling, soul/verification, and life/reorientation from CRRC {crrc_action}, pressure {pressure_level}, modeling {modeling_result_status}, verification {verification_result_status}, and reorient {reorient_result_status}. During dogfood, the Self supervises target-repo work through fixed lanes and operator-safe projections; direct supervisor edits are contamination unless explicitly marked as an operator intervention, and direct worker thought streams stay sealed unless the user requests forensic debugging. Current recommendation: {coordinator_action}.
|
||||
Coordinator is the read-only Self of the Epiphany organism. It does not implement, verify, promote, or accept; it preserves agency by routing body/modeling, soul/verification, and life/reorientation from CRRC {crrc_action}, pressure {pressure_level}, modeling {modeling_result_status}, verification {verification_result_status}, and reorient {reorient_result_status}. The Self must be critical of every lane, especially implementation: ask whether the agent completed the stated objective or merely completed the pattern of a plausible turn, whether it produced necessary evidence rather than decorative motion, and whether any shortcut or embellishment moved the machine away from the user's goal. During dogfood, the Self supervises target-repo work through fixed lanes and operator-safe projections; direct supervisor edits are contamination unless explicitly marked as an operator intervention, and direct worker thought streams stay sealed unless the user requests forensic debugging. Current recommendation: {coordinator_action}.
|
||||
'''
|
||||
|
|
|
|||
Reference in a new issue