feat(prompt-variance): extract family prompt variance as a versioned package - #1136
Merged
TheGreatAxios merged 6 commits intoSep 21, 2026
Conversation
TheGreatAxios
force-pushed
the
cl-8269-extract-prompt-variance-as-a-versioned-package-agent-owned
branch
2 times, most recently
from
September 21, 2026 04:12
b92260a to
0e807af
Compare
… 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
force-pushed
the
cl-8269-extract-prompt-variance-as-a-versioned-package-agent-owned
branch
from
September 21, 2026 04:24
0e807af to
035835a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extracts per-family prompt variance (default/muse/grok rows + assemble) into
packages/prompt-variance(agent-owned, intern lockfile). Directors consumeassembleinstead of hand-concatenatinggrokAntiThrashbooleans. Variance cannot grant tools (refuses rows that denyuse_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.tsc --noEmitreports only the pre-existingvendor/intx-typessemver error, identical on main (committed with--no-verifyfor 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