Update agent workflow guardrails from two-week audit#1185
Draft
simple-agent-manager[bot] wants to merge 2 commits into
Draft
Update agent workflow guardrails from two-week audit#1185simple-agent-manager[bot] wants to merge 2 commits into
simple-agent-manager[bot] wants to merge 2 commits into
Conversation
The preflight evidence block was added to the PR body but re-running the old CI run uses the stale event payload. An empty commit triggers a fresh run with the current PR body. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
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
Knowledge, Policy, And Idea Updates
Updated SAM durable state outside the repo:
Local Subagent Critique
I attempted three full-context local subagents first, but all stalled and were shut down. I then spawned two narrower local critique agents; both completed and converged on the scoped approach used here: update existing task/workflow guardrails, avoid a new rule file, keep PR-specific state in ideas, and phrase profile guidance as setup/onboarding guidance.
Validation
pnpm lintpnpm typecheckpnpm testpnpm exec prettier --check AGENTS.md CLAUDE.md .claude/rules/09-task-tracking.md .codex/prompts/workflow.md .claude/commands/workflow.mdStaging Verification (REQUIRED for all code changes — merge-blocking)
N/A: docs-only — this PR modifies only agent instruction files (
.claude/rules/*.md,.claude/commands/*.md,.codex/prompts/*.md,AGENTS.md,CLAUDE.md). No runtime code (.ts,.tsx,.go) was changed.UI Compliance Checklist (Required for UI changes)
N/A: no UI changes.
End-to-End Verification (Required for multi-component changes)
N/A: no multi-component code changes. This PR updates agent instruction documents only.
Data Flow Trace
N/A: docs-only change.
Untested Gaps
N/A: docs-only change.
Post-Mortem (Required for bug fix PRs)
N/A: not a bug fix. This PR adds guardrails based on a two-week audit of recurring agent workflow failures.
Specialist Review Evidence (Required for agent-authored PRs)
Agent Preflight (Required)
Classification
External References
N/A: internal agent instruction update based on audit of recent workflow failures.
Codebase Impact Analysis
Affected files:
CLAUDE.md,AGENTS.md,.claude/rules/09-task-tracking.md,.claude/commands/workflow.md,.codex/prompts/workflow.md. No runtime code paths affected.Documentation & Specs
Updated agent instruction files directly. No public docs changes needed — these files are agent-facing, not user-facing.
Constitution & Risk Check
Checked Principle XI: no hardcoded values introduced. All guidance is behavioral (agent workflow rules), not configuration.
Notes
This is intentionally a draft PR. Do not merge until Raphaël reviews it.