Skip to content

chore(hooks): allow anchored env|grep in the env-dump guard; red tests outside the diff need an issue number - #1101

Merged
admarble merged 2 commits into
mainfrom
chore/env-grep-carveout-preexisting-rule
Sep 20, 2026
Merged

admarble merged 2 commits into
mainfrom
chore/env-grep-carveout-preexisting-rule

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

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 passed
  • npm run lint:skill-calls, lint:skill-gates, lint:skill-sync → clean, 44/44 skill files synced
  • hook copies byte-identical (md5 | sort -u | wc -l → 1)
  • direct hook smoke: bare 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 2

Mutation 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

…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
@admarble
admarble merged commit c564a54 into main Sep 20, 2026
9 checks passed
@admarble
admarble deleted the chore/env-grep-carveout-preexisting-rule branch September 20, 2026 02:12
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
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