Skip to content

T4: Migrate classification hook copy to hyp policy set#324

Merged
philcunliffe merged 1 commit into
integration/hyp-policy-verbfrom
task/hyp-policy-verb/T4
Jul 17, 2026
Merged

T4: Migrate classification hook copy to hyp policy set#324
philcunliffe merged 1 commit into
integration/hyp-policy-verbfrom
task/hyp-policy-verb/T4

Conversation

@philcunliffe

Copy link
Copy Markdown
Contributor

Implements task T4 of hyp-policy-verb.

Migrates the consent-sensitive classification hook copy (LLP 0106) off the deprecated hyp ignore --sync/--local-only/--private misnomer and onto the class-neutral hyp policy set <path> <token> verb (registered since T2).

  • CLASSIFICATION_CHOICES swaps its flag field for the CLI class token.
  • verbArgvForClass returns ['policy', 'set', targetPath, token], dispatched against the registry's two-word policy set path.
  • buildClassificationPrompt prints hyp policy set <cwd> <token>.
  • Pinned consent-copy tests updated in the same commit, with an exit-criterion assertion that no ignore-spelled command is taught for a non-ignore class.
  • @ref glosses cite LLP 0111#teaching for the verb surface.

Checks: npm test (2284 pass), npm run typecheck (clean).

Task-Id: T4

…111)

Swap the consent-sensitive classification hook copy off the deprecated
`hyp ignore --sync`/`--local-only`/`--private` misnomer and onto the
class-neutral `hyp policy set <path> <token>` verb (registered since T2).

- CLASSIFICATION_CHOICES: replace the `flag` field with the CLI-edge class
  `token` (`sync`/`local-only`/`ignore`).
- verbArgvForClass now returns ['policy', 'set', targetPath, token], dispatched
  against the registry's two-word `policy set` path.
- buildClassificationPrompt prints `hyp policy set <cwd> <token>`.
- Pinned consent-copy tests updated in the same commit, plus an exit-criterion
  assertion that no ignore-spelled command is taught for a non-ignore class.
- @ref glosses cite LLP 0111#teaching for the verb surface; the store and class
  rationale keeps citing LLP 0103#cli.

Task-Id: T4

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@philcunliffe
philcunliffe merged commit a466610 into integration/hyp-policy-verb Jul 17, 2026
4 checks passed
@philcunliffe
philcunliffe deleted the task/hyp-policy-verb/T4 branch July 17, 2026 01:26
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