Skip to content

classification: opt-in document classification gate #192

Closed

Description

@thehoff

Summary

Add an opt-in document classification gate. Level strings, banner prefixes, the ceiling, and allowed markers live in classification.toml. The binary ships with no scheme.

When enabled, the Claude and Cursor pre-tool hooks scan text banners on Read, Write, Edit, StrReplace, and Grep, plus a narrow set of shell file reads and heredocs. A banner above the ceiling asks on Claude. Cursor has no ask decision, so the hook denies there. Bytes are not rewritten and markings are not stripped. Every touch is appended to a private JSONL ledger that gain does not read.

Not in this change

  • docx and pdf extractors (recorded as unscanned binary)
  • a gain pane
  • a compiled-in PSPF ladder (PSPF is an example config only)

Refiled after #191 was closed: that number is already the Tirith false-positive work in the tree.

Activity

  1. thehoff commented on Nov 3, 2026

    @thehoff
    OwnerAuthor

    Wrong forge. This checkout tracks lab (git.hoff-network.com). The classification gate is lab issue rtk-ai#250: https://git.hoff-network.com/thehoff/contextcrawler/issues/250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions