3 Commits
Author SHA1 Message Date
NotExpectedYet 387f7c3510 fix: override the shipped standard preset in the compaction overlay
Release / release (push) Successful in 9s
`presets/standard-compaction.patch.yml` inserted a second `preset-standard`
declaration. It happened to take effect because it applied last, but which of
the two declarations mounted was decided by the loader's duplicate-id handling,
and the composed tree carried two rows with the same id.

The file now overrides the shipped row by id, so the intent is explicit and only
one declaration exists. `test/presets.test.js` composes the shipped declaration
and the overlay through the harness's own patch engine and asserts one row, no
skipped patch, and the compaction budget applied — which the old insert form no
longer satisfies.
2026-11-09 08:30:11 +00:00
NotExpectedYet 1697c24c3c test: fail when a preset drifts from the harness standard
The two files under `presets/` are frozen copies of the harness's `standard`
composition, and nothing noticed when the harness moved on — a missing row only
surfaced as a broken preset in a session, after the copy had already shipped.

`test/presets.test.js` now loads the installed harness's `standard` patch,
removes the deltas this bundle documents, and requires the remaining rows to
match exactly; it also resolves every plugin and subpath a preset names against
the harness scope, so a removed export fails the suite instead of a session.
Both checks skip when a checkout has no harness.

The scope search and the `js-yaml` link the comparison needs live in
`scripts/harness-scope.mjs` and `dev-links.mjs`; the search tries every
candidate scope because the legacy `profiles/node_modules` mirror is only a
snapshot of the installation.
2026-11-06 07:20:35 +00:00
NotExpectedYet 4bc4296494 fix: stop the facet preset naming a prompt variable the harness dropped
The preset's persona row copied the deployment's suffix, "Your working directory
is {{cwd}}". The harness substitutes only registered prompt variables and throws
on an unregistered one during prompt assembly — so when a harness release stopped
registering `cwd` (only `provider` and `model` remain), every session on this
preset failed its first turn with

  unknown prompt variable "{{cwd}}" in section "deployment:persona-suffix"

and chat was dead rather than degraded. The row now carries the prefix only.

The folder is stated where it can follow the session instead: the facet binding
already names the facet, and now names the session folder as well when the two
differ — which is every conversation that started higher up and was narrowed, and
exactly the case where relative tool paths need saying out loud.

`test/presets.test.js` makes this class of failure impossible to reintroduce
silently: it scans every shipped preset for a variable reference and requires the
name to be one the harness registers, and holds this bundle's own rule and
binding text to no references at all. Restoring the old suffix fails it.
2026-10-19 09:56:26 +01:00