Repository navigation
Description
Why
Slice of setkernel/hq#1333 (v6 cut, hq#1247).
Personas are cut in v6: hq#1346 deletes the persona files and the installer step in hq. The other half still lives here: plugins/setkernel/hooks/persona.sh, an opt-in SessionStart hook (it runs only when SETKERNEL_PERSONA=1) that fetches agents/personas/<name>.md from hq. Once the files are gone it prints nothing and exits 0, so nothing breaks, but it is dead code that every seat loads, and its tests are the flaky ones in agent-plugins#54. hq#1333 says the hook lives in this plugin and points at owner steps that do not exist, so no part removes it.
Merging to main here is the release: plugin.json has no version, so every seat auto-updates. This repo is public: the issue, branch and PR carry no persona text and no private repo, host or client name (hq is the one private repo the rules allow).
Do not touch: any file in hq (hq#1346 owns the persona files and the installer); the other hooks (session-context.sh, verify-gate.sh, git-guard.sh, d1-guard.sh) and their tests; managed/** and plugins/setkernel/policy/holds.md (generated; touch only if bin/generate --check shows drift); rules/org-rules.md; plugins/setkernel/agents/reviewer.md. hq's Containerfile pins git-guard.sh and lib/scrub.awk from this repo by commit: leave both files byte-identical.
Acceptance criteria
-
plugins/setkernel/hooks/persona.shis deleted andhooks/hooks.jsonno longer lists it. The other twoSessionStarthooks (session-context.sh10 s,verify-gate.sh start30 s) keep their commands and timeouts,StopandPreToolUseare unchanged, andjq emptypasses on the file. - In
tests/run.shthe persona block is gone: from the comment# The persona hook (#37)(about line 838) up to, not including,# bin/dependabot-policy:(about line 929). That block also definessilent,with_emailandpersona_hook, which nothing else uses, so they go with it. The header comment on line 2 no longer names the persona hook. The test at line 796 (hooks.json records the baseline on SessionStart, readsSessionStart[0]) still passes. The PR body names the number of assertions removed (total before minus total after). -
bash tests/run.shandSHELL_UNDER_TEST=dashshow no new failures against main (the request-review assertions that fail on a Mac clone are not this PR's; CI is the judge). -
AGENTS.md(thehooks/line in Layout, thetests/run.shline, the trap line sayingpersona.shfetches from hq) andREADME.md(theplugins/setkernel/table row, thetests/run.shtable row, theallowManagedHooksOnlybullet that calls the persona hook the replacement for the VMs' old hook, and the whole## The persona hook (SessionStart)section) no longer describe the hook. The rule 'no secrets, personal data or personas here, ever' stays in both files. -
grep -rniE 'persona([^l]|$)' . --exclude-dir=.gitfinds only that rule's wording inAGENTS.mdandREADME.md(plaingrep personawould also hit 'personal data' and 'personal script', which stay). -
bin/generate --check, ShellCheck (shellcheck -S warningexactly as in.github/workflows/check.yml, which globshooks/*.sh) and the JSON check loop from check.yml are green on the PR head. - After the merge, one seat starts a new Claude session: its context shows the session-context hook output, no persona text and no hook error. Log line or screenshot on the issue.
- agent-plugins#54 (flaky persona test) is closed by the Lead with a comment saying the hook and its tests are gone. Closing keyword: the PR uses
Refs setkernel/agent-plugins#54, notCloses, so the Lead closes it by hand after the check above.
Files likely touched
- Delete:
plugins/setkernel/hooks/persona.sh - Edit:
plugins/setkernel/hooks/hooks.json,tests/run.sh,AGENTS.md,README.md - Do not touch: everything in hq, the other hooks and
hooks/lib/**,managed/**,rules/**,plugins/setkernel/agents/**.
Risk class
R3. A plugin hook change goes live on every seat the moment it merges (agent runtime), so it needs two approvals, a visual diff where docs render, and Raghav's /approve <sha>. The PR deletes about 90 lines of tests (about 36 assertions) together with the hook they cover: .github/workflows/check.yml here has no test-diff guard, so no allow-test-changes line is needed unless hq#563 is extended to this repo. If it is, Claude Lead adds allow-test-changes: after reading the removed tests; the author never adds it.
Activity
rigel-setkernel commentedon Nov 5, 2026
Picked up. Working on branch
agent/69-v6-e1-slice-7-remove-the-persona-session. Automated: @rigel-setkernel's agent onrigel-dev.feat(hooks)!: remove the opt-in persona SessionStart hook (#69) (#70)
setkernel-lead commentedon Nov 5, 2026
#70 merged and closed this issue; its description doesn't mark these 8 items met, so they stay unticked:
plugins/setkernel/hooks/persona.shis deleted andhooks/hooks.jsonno longer lists it. The other twoSessionStarthooks (session-context.sh10 s,verify-gate.sh start30 s) keep their commands and timeouts,StopandPreToolUseare unchanged, andjq emptypasses on the file.tests/run.shthe persona block is gone: from the comment# The persona hook (#37)(about line 838) up to, not including,# bin/dependabot-policy:(about line 929). That block also definessilent,with_emailandpersona_hook, which nothing else uses, so they go with it. The header comment on line 2 no longer names the persona hook. The test at line 796 (hooks.json records the baseline on SessionStart, readsSessionStart[0]) still passes. The PR body names the number of assertions removed (total before minus total after).bash tests/run.shandSHELL_UNDER_TEST=dashshow no new failures against main (the request-review assertions that fail on a Mac clone are not this PR's; CI is the judge).AGENTS.md(thehooks/line in Layout, thetests/run.shline, the trap line sayingpersona.shfetches from hq) andREADME.md(theplugins/setkernel/table row, thetests/run.shtable row, theallowManagedHooksOnlybullet that calls the persona hook the replacement for the VMs' old hook, and the whole## The persona hook (SessionStart)section) no longer describe the hook. The rule 'no secrets, personal data or personas here, ever' stays in both files.grep -rniE 'persona([^l]|$)' . --exclude-dir=.gitfinds only that rule's wording inAGENTS.mdandREADME.md(plaingrep personawould also hit 'personal data' and 'personal script', which stay).bin/generate --check, ShellCheck (shellcheck -S warningexactly as in.github/workflows/check.yml, which globshooks/*.sh) and the JSON check loop from check.yml are green on the PR head.Refs setkernel/agent-plugins#54, notCloses, so the Lead closes it by hand after the check above.(board-sync, hq#1238)