Skip to content

refactor: dedup neutral guardrail persona + flatten run.ts wiring#197

Merged
suleimansh merged 1 commit into
mainfrom
chore/dedup-neutral-guardrail-run-wiring
Jul 4, 2026
Merged

refactor: dedup neutral guardrail persona + flatten run.ts wiring#197
suleimansh merged 1 commit into
mainfrom
chore/dedup-neutral-guardrail-run-wiring

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Internal quality pass over the compose-personas code. No behavior change; typecheck + tests green (ai-autopilot 265, framework 57).

What

  • personas/library.tsuiIntentDesigner was hand-listed in both sharedPersonas and vikeExtensionPersonas. Named the path-neutral tail once (neutralGuardrails) and spread it into both. Emitted persona order is byte-identical; the "neutral guardrails apply on every path" invariant is now structural instead of copy-maintained.
  • framework/src/run.ts — hoisted the duplicated verifyWorkspace ? { verifyWorkspace: true } : {} (used by the build and improve steps) into one const, and flattened the deploy step's double-nested ternary that tested opts.deploy twice into a single top-level branch.

No user-facing surface changed, so no changeset.

Closes #196

Name the path-neutral guardrail tail once (neutralGuardrails) and spread it
into both sharedPersonas and vikeExtensionPersonas so the invariant is
structural, not maintained by copy. In run.ts, hoist the duplicated
verifyWorkspace option and flatten the deploy step's double-nested ternary
that tested opts.deploy twice. No behavior change.

Closes #196
@suleimansh suleimansh added enhancement New feature or request priority: low Nice to have / latent labels Jul 4, 2026
@suleimansh suleimansh self-assigned this Jul 4, 2026
@suleimansh suleimansh merged commit 529481a into main Jul 4, 2026
2 checks passed
@suleimansh suleimansh deleted the chore/dedup-neutral-guardrail-run-wiring branch July 4, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: low Nice to have / latent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quality: dedup neutral guardrail persona + flatten run.ts deploy/workspace wiring

1 participant