Repository navigation
fix(person-gate): strip every spelling of the person token; check inherited env - #710
Merged
Merged
Conversation
…erited env Follow-ups to #709: takePersonToken deletes every case-insensitive spelling of HUNCH_PERSON_TOKEN, hasPersonToken(undefined) checks process.env, and a test pins the anonymous lane's absence check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🧠 Hunch — Engineering Memory Guard✅ This PR touches no recorded invariants (directly or via blast radius) and re-introduces nothing deliberately retired across 5 changed file(s). 📜 Hunch Constitution — 2 policy receipt(s)
|
…duals-2 # Conflicts: # CHANGELOG.md
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Follow-ups to #709.
takePersonTokenstill reads the token fromHUNCH_PERSON_TOKEN, and now deletes every case-insensitive spelling of the name fromprocess.env, the same wayhunch uidoes for its children. Before this, a process that started with two spellings (a case-sensitive parent on Windows) kept one, and children inherited it.hasPersonToken(undefined)now checksprocess.env, which is whatrun()inherits, instead of reporting no token.runAnonymousLaneclones repos and runs the installed CLI.Checks:
test/matrix-release-verification.test.ts: 14/0test/person-gate.test.ts: 22/0test/env-surface.test.ts: 7/0critic-risk (security): PASS.
Residuals:
HUNCH_PERSON_TOKEN*that was already in the developer's shell. The older test does the same.hasPersonToken(undefined) === trueis conservative:run()strips the token unlessallowPersonTokenis set. The only production caller passesactor.env, so runtime behaviour is unchanged today..gitattributeseol=lf. Committed blobs are LF.🤖 Generated with Claude Code