Skip to main content

cgh-classify

Human-trainable confidentiality classification for cgh. You label a few files, a lightweight local model (TF-IDF + naive Bayes, standard library only) generalizes to the rest, and the egress gate and guard enforce the result. Nothing ever leaves the machine.

pip install cgh-classify
cgh classify label payroll.xlsx            # mark confidential
cgh classify label README.md --not         # mark public
cgh classify train                         # fit + sweep the repo
cgh classify review                        # files the model is unsure about
cgh findings --key confidential

How labels and predictions interact

Source Finding written Effect on the egress gate
Human label, confidential confidential = true (block) blocked everywhere
Human label, public confidential = false allowlisted, including strict mode
Model prediction, confidential confidential = true (block) blocked everywhere
Model prediction, public confidential.predicted = false no effect

The asymmetry is deliberate: a model may block on its own say-so (worst case, a false positive costs a summary), but only a human label can clear a file in mode = "secure", where the gate is an allowlist.

Configuration

[plugin.classify]
# threshold = 0.7      # predict confidential above this probability
# uncertain_low = 0.35 # review window lower bound
# uncertain_high = 0.65

Your labels are the asset: they live in .codegraph/classify_labels.json, the trained model in .codegraph/classify_model.json, both machine-local and cheap to retrain (cgh classify train is instant on thousands of files).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgh_classify-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cgh_classify-0.1.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file cgh_classify-0.1.3.tar.gz.

File metadata

  • Download URL: cgh_classify-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cgh_classify-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f71e2944e1bc0e5d2e5d0cecc7b83cc73780533741d34992493542074fc6095d
MD5 e0ec112e85921a96a0005325bd476340
BLAKE2b-256 291945636d2e4d633b84ae79d62c4ce201c0c623fa1eecad36452ed4633485f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_classify-0.1.3.tar.gz:

Publisher: release.yml on altikva/cgh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cgh_classify-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cgh_classify-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cgh_classify-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 be450e676b6cba9fb09746a133468839bd629f809e3a54c6df0b8bc5e5c8e3ed
MD5 552923d8736774432db1b11ab7d66b78
BLAKE2b-256 ae4a1a72b335500d40fbafac99c3b74b699febb74678414d21f35c4fbff21690

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_classify-0.1.3-py3-none-any.whl:

Publisher: release.yml on altikva/cgh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page