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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6c10d04b3ea979ab2b502ee1bf0217d6ead212a44f73506f1b6b032a93d0a3
|
|
| MD5 |
e205fa1859b0b4de306695e2030c1493
|
|
| BLAKE2b-256 |
b2543328590cf38e6f0adc88a439a3f711e651a04376b68a34fc67738c0f1169
|
Provenance
The following attestation bundles were made for cgh_classify-0.1.2.tar.gz:
Publisher:
release.yml on altikva/cgh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cgh_classify-0.1.2.tar.gz -
Subject digest:
1b6c10d04b3ea979ab2b502ee1bf0217d6ead212a44f73506f1b6b032a93d0a3 - Sigstore transparency entry: 2336580058
- Sigstore integration time:
-
Permalink:
altikva/cgh@8ea1ecc0c510abb3afcb8e846d2632a307341d84 -
Branch / Tag:
refs/tags/v0.10.1 - Owner: https://github.com/altikva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8ea1ecc0c510abb3afcb8e846d2632a307341d84 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efdd3e669c9b2f4a7b20ef9931f7d7cd75455dee5e0fe2f7dd86c447f3c8f355
|
|
| MD5 |
826ad99577ad1319839be86393873067
|
|
| BLAKE2b-256 |
d47f7e8f760a1a3e8095c2b3883bf5afdc05e200b9870dc4dfc6f86a1c682571
|
Provenance
The following attestation bundles were made for cgh_classify-0.1.2-py3-none-any.whl:
Publisher:
release.yml on altikva/cgh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cgh_classify-0.1.2-py3-none-any.whl -
Subject digest:
efdd3e669c9b2f4a7b20ef9931f7d7cd75455dee5e0fe2f7dd86c447f3c8f355 - Sigstore transparency entry: 2336580063
- Sigstore integration time:
-
Permalink:
altikva/cgh@8ea1ecc0c510abb3afcb8e846d2632a307341d84 -
Branch / Tag:
refs/tags/v0.10.1 - Owner: https://github.com/altikva
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8ea1ecc0c510abb3afcb8e846d2632a307341d84 -
Trigger Event:
push
-
Statement type: