mirror of https://github.com/garrytan/gstack.git
/override[:\s]/i in INJECTION_PATTERNS matched the bare word followed by
whitespace or a colon, no instruction-like context required. Every other
entry in the list is a multi-word intent phrase; this one rejected
ordinary technical prose ("--port-override -1", "override the default
region", "AWS_PROFILE to override profile selection"), silently
blocking valid gstack-learnings-log / gstack-decision-log entries.
Narrow the pattern to the actual injection-phrase shape ("override
previous/prior/above/the rules/instructions/system prompt"), matching
the style of the neighboring patterns. Still catches genuine override-
based injection attempts; stops rejecting plain English and CLI docs
that happen to contain the word.
Fixes #2401
|
||
|---|---|---|
| .. | ||
| diagram-render | ||
| bin-context.ts | ||
| conductor-env-shim.ts | ||
| gbrain-exec.ts | ||
| gbrain-guards.ts | ||
| gbrain-local-status.ts | ||
| gbrain-sources.ts | ||
| gstack-decision-semantic.ts | ||
| gstack-decision.ts | ||
| gstack-memory-helpers.ts | ||
| is-conductor.ts | ||
| jsonl-store.ts | ||
| redact-audit-log.ts | ||
| redact-engine.ts | ||
| redact-patterns.ts | ||
| staging-guard.ts | ||
| worktree.ts | ||