feat(mentor): pin prompt-end constraint ordering (#1)
CI / ci (push) Canceled after 0s

Both personas gain the verbatim-shared "Draft first, rules last"
section (pass 1.5, session 1.2): the writer's material enters
context before the rule skills, so the deslop constraint tables sit
after the draft, nearest the writing they govern — the PRD's
prompt-end rule. A real ACP audit (the app's exact wire — never
-z: one-shot mode swaps the skills directive and loads nothing)
showed the baseline already read the piece before deslop, but by
model choice; the pin converts observed-once into instructed-
always, and PersonaLoadOrderTests guards presence + verbatim
parity over the bundled payload.

Verified layout, probe traps, and the additive-only propagation
cost are documented in docs/research/prompt-layout-factsheet.md
with the probe script in-repo; real-run verify: piece → persona →
deslop → verdict, 6 fix cards + 2 research candidates landed on
the real rails. Suite 479 + 1 load-flake cleared in isolation.

Closes #1
This commit is contained in:
AlexKucera committed 2026-10-30 11:20:01 +01:00
1 parent a1d1cd3d3c
commit 22bca36857
11 files changed
+332 -14

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ Owned by the root AGENTS.md contract. Vocabulary is bound by CONTEXT.md (Mentor,
- Seeding is additive-only: bundled skills land in the master if absent; existing master skills and profile skills are never overwritten. Copy-era real dirs in a profile migrate to master symlinks only on byte-match (a diverged dir stays a copy); untracked/user skills are never touched.
- `seed-manifest.txt` lists the shipped set — update it when adding or removing a mentor skill. `ste-writing` and `writing-for-agents` stay in ref/ as authoring tools, never seeded.
- Deslop owns the single subtractive rule set; serif-writing owns the method. Other skills reference both; none restates them.
- The persona pair shares three sections verbatim by design (Knife floor, silent learnings, voice anchor) — edit them together or not at all.
- The persona pair shares four sections verbatim by design (Knife floor, silent learnings, voice anchor, draft-first-rules-last) — edit them together or not at all. The load-order pin (`## Draft first, rules last`, #1) keeps style constraints at/near the working-context end (PRD prompt-end rule; verified layout: `docs/research/prompt-layout-factsheet.md`); `MuseionTests/PersonaLoadOrderTests.swift` guards presence and verbatim parity.
## Work Guidance