Repository navigation
chore(hooks): allow anchored env|grep in the env-dump guard; red tests outside the diff need an issue number - #1101
Merged
Conversation
…s outside the diff need an issue number pre-tool.sh (all three copies): a bare env/printenv piped into a grep whose pattern starts with ^ is a prefix-scoped listing, not a dump. It is how a phase checks for the orchestrator's own SEQUANT_* vars leaking into the suite (#1086). Bare env, printenv, export and an unanchored env | grep TOKEN still block. 8 new cases per hook copy in the integration test. exec and qa skills (all three copies): a failing test in a file the diff never touched must be re-run with the SEQUANT_* vars unset, settled against base in the same worktree, and named in the PR body with an issue number. PRs #1036, #1042 and #1048 wrote 'pre-existing, unrelated' for the same three failures; none filed, and the same failures stopped the #1060 gate a week later. Entire-Checkpoint: 2ebe233c071c
…l passes the relay isolation guard (AC-16) Entire-Checkpoint: 02360586d1fc
Merged
5 of 6 tasks
admarble
added a commit
that referenced
this pull request
Sep 24, 2026
…networkAccess known key (#1107) * docs: 2.16 release notes — README what's new, Codex backend reference, troubleshooting, two missing changelog entries - README: What's new in 2.16; Codex note links the new reference page. - docs/features/codex-agent-backend.md: prerequisites, init --agent codex provisioning, user-config trust entry, run.codex settings, what the driver passes (#1076/#1079 sandbox overrides), doctor checks, limitations. - docs/troubleshooting.md: Codex Issues section (hooks silently skipped, skills not discovered, pre-2.16 commit/network failures, doctor probes). - CHANGELOG: Changed entries for #1065 (qa declared-evidence gate) and #1101 (env|grep guard, red tests need an issue number); note the run.codex.networkAccess known-key fix. - settings.ts: add networkAccess to KNOWN_KEYS[run.codex] so the documented key no longer warns as unknown; regression test. * docs(codex): note typed usage-limit failures (#1087) and link the driver guide
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
envorprintenvpiped straight into a grep whose pattern starts with^(env | grep '^SEQUANT_'). That is a prefix-scoped listing, not a dump, and it is how a phase checks for the orchestrator's ownSEQUANT_*vars leaking into the suite (bug(test): suite isn't hermetic against the SEQUANT_* env phases inject — exec sees red tests it didn't cause and opens no PR #1086). Bareenv,printenv,exportand an unanchoredenv | grep TOKENstill block.SEQUANT_*vars unset, settled against base in the same worktree, and named in the PR body with an issue number (link one or file one). PRs fix(sync): never rewrite a user-owned AGENTS.md or write a machine-specific scripts/dev symlink (#990) #1036, fix(sync): exclude templates/opencode from the generic diff/copy engine (#1030) #1042 and fix(state): stop reconcile from matching (#N) commit-mention as issue merge #1048 each wrote "3 pre-existing failures, unrelated" for the same three tests on 2026-09-10/11; none filed, and the same failures stopped the gate(#497): dogfood the Codex driver on a real /qa — human verdict decides P2/P3 #1060 gate a week later. ci(gate): required checks on main, up-to-date rule, red-main revert, and mechanical proof for any "pre-existing failure" claim #1093 is the mechanical follow-up.__tests__/pre-tool-hook.integration.test.ts(3 bare forms still block, unanchored grep still blocks, 4 anchored forms pass).Test plan
npx vitest run __tests__/pre-tool-hook.integration.test.ts→ 375 passed (351 existing + 24 new)npx vitest run src/lib/__tests__/exec-skill-foreground-rule.test.ts src/lib/__tests__/assess-skill.test.ts→ 18 passednpm run lint:skill-calls,lint:skill-gates,lint:skill-sync→ clean, 44/44 skill files syncedmd5 | sort -u | wc -l→ 1)env/printenv/export→ exit 2 "Environment dump";env | grep '^SEQUANT_',printenv | grep -E '^(SEQUANT|CLAUDE)_',env | grep -i "^sequant_" | sort,ls; env | grep "^X"→ exit 0;env | grep SEQUANT→ exit 2Mutation verification
Mutation-verified: AC-1 — removed the anchored-grep carve-out from templates/hooks/pre-tool.sh;
allows the prefix-anchored listing×4 failed (4 failed, 20 passed, only the mutated copy); restored.Notes
The hook change reaches plugin users only with the next plugin release, since both the repo hook and the plugin-cache hook run.
🤖 Generated with Claude Code