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.2.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.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgh_classify-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1b6c10d04b3ea979ab2b502ee1bf0217d6ead212a44f73506f1b6b032a93d0a3
MD5 e205fa1859b0b4de306695e2030c1493
BLAKE2b-256 b2543328590cf38e6f0adc88a439a3f711e651a04376b68a34fc67738c0f1169

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_classify-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: cgh_classify-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efdd3e669c9b2f4a7b20ef9931f7d7cd75455dee5e0fe2f7dd86c447f3c8f355
MD5 826ad99577ad1319839be86393873067
BLAKE2b-256 d47f7e8f760a1a3e8095c2b3883bf5afdc05e200b9870dc4dfc6f86a1c682571

See more details on using hashes here.

Provenance

The following attestation bundles were made for cgh_classify-0.1.2-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

0.1.3

2 files

This release

0.1.2 This release

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