Skip to content

Tighten Guardex anti-fragmentation prompt guidance#346

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/tighten-token-fragmentation-prompts-2026-04-22-22-41
Apr 22, 2026
Merged

Tighten Guardex anti-fragmentation prompt guidance#346
NagyVikt merged 1 commit intomainfrom
agent/codex/tighten-token-fragmentation-prompts-2026-04-22-22-41

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

  • teach Guardex guidance that low output alone is not the disease when a run is bounded
  • update gx prompt task-loop copy to say inspect once, patch once, verify once, then finish
  • lock the stronger wording with focused prompt tests

Verification

  • node --test test/prompt.test.js
  • openspec validate --specs
  • git diff --check

Guardex already preferred phase-based execution, but the copied task-loop prompt was still too sparse. This change makes the repo contract and gx prompt say low output is fine when bounded, and that long runs should collapse back to inspect once, patch once, verify once, then finish.

Constraint: Prompt copy must stay short enough for gx prompt output
Rejected: Only patch AGENTS.md | gx prompt would keep emitting weaker task-loop wording
Confidence: high
Scope-risk: narrow
Directive: Keep task-loop copy phase-shaped; do not reintroduce vague micro-step prompt text
Tested: node --test test/prompt.test.js; openspec validate --specs; git diff --check
Not-tested: Full gx prompt output in a live protected-repo bootstrap
@NagyVikt NagyVikt merged commit 0fe4139 into main Apr 22, 2026
1 check passed
@NagyVikt NagyVikt deleted the agent/codex/tighten-token-fragmentation-prompts-2026-04-22-22-41 branch April 22, 2026 20:41
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