feat(mentor): native deslop lint as fix cards (#6)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
PRD S3.4: the deslop doctrine's deterministic findings — banned-vocab tiers and em-dash density — are now computed in Swift at pass invocation, one line after the #31 stats capture, with no engine round-trip. Findings land as real fix cards (emitter lint) through FixCardStore, so they render in the existing palette with ask-before Apply on mechanical mapping cards; mapped phrases (the skill's verb swaps + #31, e.g. utilize→use) case-match their anchor per ADR-0006, everything else closes Done/Skip. One card per phrase over its tier allowance, whole-word case-insensitive matching (delved never fires delve), em-dash density card first when over budget; emit dedups against OPEN cards so re-runs make progress and the engine never re-cards a live lint finding. The tiers ship as data (Resources/deslop-lint.json mirroring the deslop skill verbatim — key/landscape/highlight/bare-underscore omitted as POS-ambiguous) with a <home>/deslop-lint.json override that wins whenever it exists and decodes: trivially editable without a recompile. Finish-audit fixes folded in: whitespace-only override phrases can no longer silently kill a whole submit (the guard mirrors the store's trimmed validation), and submit now refuses a symlinked cards/ dir (promote's posture — the lint auto-fires it every Run Pass). Suite 489; one EditorSession load-flake cleared in isolation and on the idle re-run. Closes #6
This commit is contained in:
1 parent
22bca36857
commit
4724e00b73
13 files changed
+687
-7
No files matched your search
@@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
### Added
|
||||
|
||||
- **mentor:** Native deslop lint at pass invocation (PRD S3.4) — running a pass now computes the deslop skill's deterministic findings (banned-vocab tiers + em-dash density) natively in Swift at the invocation — after first-draft stats capture, before the engine turn, no engine round-trip — and each finding lands as a real fix card (emitter `lint`) under `<piece>/cards/`, rendered by the existing Fix Cards palette with ask-before Apply on mechanical mapping cards (mapped phrases like `utilize`→`use` carry the replacement; unmapped ones land demonstration for judgment). One card per phrase over its tier allowance, case-insensitive whole-word matching (`delved` never fires `delve`), anchor = the first match with case preserved, em-dash density card first when over budget, tiers ranked by first match. The tier data ships as `Resources/deslop-lint.json` mirroring the deslop doctrine verbatim (`key`/`landscape`/`highlight`/bare `underscore` deliberately omitted as POS-ambiguous — add via `<home>/deslop-lint.json`, which wins whenever it exists and decodes); emit dedups against OPEN cards before submit so re-runs make progress (closed cards never block) and the engine never re-cards a live lint finding. A failed lint never blocks the pass (the stats-capture posture). Suite 487 (issue #6)
|
||||
|
||||
- **mentor:** Prompt-end constraint ordering verified + pinned (#1) — the PRD's cross-cutting rule audited on the app's REAL wire: an ACP probe (initialize → session/new → session/prompt against the provisioned museion-pass1) plus the engine's own state.db read-back show constraint bodies never ride the system prompt — they enter as `skill_view` results, so "assembly order" is the mentor's tool-call order, and the baseline already loaded deslop AFTER the piece but by model choice. Both personas (pass 1.5 / session 1.2) gain the verbatim-shared "Draft first, rules last" pin converting observed-once into instructed-always; `PersonaLoadOrderTests` guards presence + parity over the bundled payload; the verified layout, the `hermes -z` trap (one-shot swaps the skills directive — a `-z` probe loads ZERO skills and assembles a different prompt), and the additive-only propagation cost (content edits need a hand-copy to master/profile copies; byte-match then migrates) live in `docs/research/prompt-layout-factsheet.md` with the probe script in-repo. Suite 479 + 1 load-flake cleared in isolation (issue #1)
|
||||
|
||||
- **mentor:** Profiles S4 — per-surface engine lifecycle + model-switch UX (#137) — passes run on their OWN one-shot engines (`hermes acp -p museion-passN` spawned per pass run, torn down at the verdict — a model switch costs nothing, the next spawn reads fresh config) streaming into transient unrostered transcripts (#129: one Sessions surface over the chat engine); the Chat engine stays resident and a Chat model change in Settings restarts it in place, deferred to turn end while a reply streams; Run Pass names the missing provider key and disables with an Open Settings link until the key lands (pane re-entry re-checks). Finish-audit (3 reviewers) fixed a post-await activation steal that could flip the surface mid-pass and lose the Cancel (one `claimActive` gate), plus a PRE-EXISTING `rescan` bug where a stale scan snapshot "vanished" a just-opened piece and killed its session with unflushed edits. Suite 477 (issue #137)
|
||||
|
||||
Reference in new issue
Block a user