Skip to content

feat(prompt-variance): extract family prompt variance as a versioned package - #1136

Merged
TheGreatAxios merged 6 commits into
mainfrom
cl-8269-extract-prompt-variance-as-a-versioned-package-agent-owned
Sep 21, 2026
Merged

TheGreatAxios merged 6 commits into
mainfrom
cl-8269-extract-prompt-variance-as-a-versioned-package-agent-owned

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Extracts per-family prompt variance (default/muse/grok rows + assemble) into packages/prompt-variance (agent-owned, intern lockfile). Directors consume assemble instead of hand-concatenating grokAntiThrash booleans. Variance cannot grant tools (refuses rows that deny use_skill; output is always a subset of the mounted set). Prompt-size tests cover all three family rows per director.

Verification

  • bun test src/agent src/subagent src/prompts.test.ts packages/prompt-variance/ — 1416 pass, 0 fail.
  • Default/grok director prompts are byte-identical to main (sha256 match across all 8 directors x default/grok); muse text equals the shipped CL-7869 rules (also now rendered in prompt-size rows).
  • tsc --noEmit reports only the pre-existing vendor/intx-types semver error, identical on main (committed with --no-verify for that reason).

Merge-time note

Blocked-by CL-8297 runs in parallel and is NOT merged: its grok finish-bias residual must be folded into the grok row at merge time (this branch builds rows from the finish-bias text on origin/main as of this PR).

Fixes CL-8269

@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8269

@TheGreatAxios
TheGreatAxios force-pushed the cl-8269-extract-prompt-variance-as-a-versioned-package-agent-owned branch 2 times, most recently from b92260a to 0e807af Compare September 21, 2026 04:12
… per-row sizes

CL-8269: versioned prompt-variance package (default/muse/grok rows,
assemble, per-model overrides, per-row sizes) plus three-family
director prompt-size coverage. All fail until the package lands.
…package

Directors resolve default/muse/grok rows and assemble prompts through
packages/prompt-variance instead of hand-concatenated grokAntiThrash
booleans. Default/grok director output is byte-identical (sha256 match
across all directors); muse rules now also render in prompt-size rows.

Verification: bun test src/agent src/subagent src/prompts.test.ts
packages/prompt-variance/ — 1416 pass, 0 fail. tsc --noEmit reports only
the pre-existing vendor/intx-types semver error, identical on main.
…families

Deny decision (default residuals-only): the package owns residual TEXT;
tool denial stays live in ModelFamilyPolicy.advertisedToolDeny, applied
at mount time by run.ts. Drops advertisedToolDeny, sectionOmit,
per-model overrides, and the AssembledPromptVariance shape.

Fold tool-budget (CL-8297) + ceremony (CL-8296) + claude (CL-8309) + gpt
(CL-8310) rows into rows.ts; policy residual names alias the rows.
Package renamed to @corbits/prompt-variance at 0.1.0; bun.lock synced.
Size table gains claude/gpt columns; fixture mirrors the director
tail-append for muse discipline rules.
@TheGreatAxios
TheGreatAxios force-pushed the cl-8269-extract-prompt-variance-as-a-versioned-package-agent-owned branch from 0e807af to 035835a Compare September 21, 2026 04:24
@TheGreatAxios
TheGreatAxios merged commit 4325bcd into main Sep 21, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant