Download contracts/feature.json from pranshup/collections-compass-artifacts: direct link, hf CLI and curl.
- Browser
- Download file 6.02 kB
-
https://huggingface.co/datasets/pranshup/collections-compass-artifacts/resolve/main/contracts/feature.json
- Command line
-
hf download hf://datasets/pranshup/collections-compass-artifacts/contracts/feature.json
-
curl -L -o feature.json https://huggingface.co/datasets/pranshup/collections-compass-artifacts/resolve/main/contracts/feature.json
6.02 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "Compass case feature snapshot", | |
| "type": "object", | |
| "required": [ | |
| "payment_claim", | |
| "dispute_mention", | |
| "financial_hardship", | |
| "cease_contact_request", | |
| "insolvency_mention", | |
| "recorded_uncredited_amount" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "payment_claim": { | |
| "$ref": "#/$defs/feature" | |
| }, | |
| "dispute_mention": { | |
| "$ref": "#/$defs/feature" | |
| }, | |
| "financial_hardship": { | |
| "$ref": "#/$defs/feature" | |
| }, | |
| "cease_contact_request": { | |
| "$ref": "#/$defs/feature" | |
| }, | |
| "insolvency_mention": { | |
| "$ref": "#/$defs/feature" | |
| }, | |
| "recorded_uncredited_amount": { | |
| "$ref": "#/$defs/money_feature" | |
| } | |
| }, | |
| "$defs": { | |
| "feature": { | |
| "type": "object", | |
| "required": [ | |
| "value", | |
| "quality", | |
| "evidence", | |
| "version", | |
| "allowed_use", | |
| "snapshot_id", | |
| "known_at_utc", | |
| "entity_id", | |
| "as_of_date" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "value": { | |
| "type": [ | |
| "boolean", | |
| "number", | |
| "null" | |
| ] | |
| }, | |
| "quality": { | |
| "enum": [ | |
| "supported_signal", | |
| "unknown" | |
| ] | |
| }, | |
| "evidence": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "required": [ | |
| "source_id", | |
| "method" | |
| ], | |
| "properties": { | |
| "source_id": { | |
| "type": "string" | |
| }, | |
| "method": { | |
| "enum": [ | |
| "unvalidated_pattern_baseline", | |
| "released_structured_field", | |
| "validated_ai_span_v1", | |
| "cited_human_review_v1" | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "version": { | |
| "const": "shared-features-6" | |
| }, | |
| "allowed_use": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "snapshot_id": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "known_at_utc": { | |
| "type": "string", | |
| "format": "date-time" | |
| }, | |
| "entity_id": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "as_of_date": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "format": "date" | |
| }, | |
| "model_metadata": { | |
| "type": "object" | |
| } | |
| } | |
| }, | |
| "money_feature": { | |
| "type": "object", | |
| "required": [ | |
| "value", | |
| "quality", | |
| "evidence", | |
| "version", | |
| "allowed_use", | |
| "snapshot_id", | |
| "known_at_utc", | |
| "entity_id", | |
| "as_of_date" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "value": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "pattern": "^\\d+\\.\\d{2}$" | |
| }, | |
| "quality": { | |
| "enum": [ | |
| "supported_signal", | |
| "unknown" | |
| ] | |
| }, | |
| "evidence": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "required": [ | |
| "source_id", | |
| "method" | |
| ], | |
| "properties": { | |
| "source_id": { | |
| "type": "string" | |
| }, | |
| "method": { | |
| "enum": [ | |
| "unvalidated_pattern_baseline", | |
| "released_structured_field", | |
| "released_transaction_record", | |
| "validated_ai_span_v1", | |
| "cited_human_review_v1" | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "version": { | |
| "const": "shared-features-6" | |
| }, | |
| "allowed_use": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "snapshot_id": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "known_at_utc": { | |
| "type": "string", | |
| "format": "date-time" | |
| }, | |
| "entity_id": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "as_of_date": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "format": "date" | |
| }, | |
| "currency": { | |
| "enum": [ | |
| "CAD", | |
| "USD" | |
| ] | |
| }, | |
| "allocation_hash": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "allocation_version": { | |
| "type": "string" | |
| }, | |
| "model_metadata": { | |
| "type": "object" | |
| } | |
| } | |
| } | |
| }, | |
| "x-owner": "Coffeebeans prototype; bank operational owner TBC", | |
| "x-grain": "Case features, with recorded_uncredited_amount scoped to an explicitly selected promise", | |
| "x-computation": "src.decisioning.engine.shared_features; same function for live decisions and offline fixtures", | |
| "x-storage": "Immutable feature values are sealed inside the SQLite Decision Record; no separate feature platform", | |
| "x-allowed-uses": [ | |
| "Evidence investigation", | |
| "Protective verification", | |
| "Reviewed internal proposals" | |
| ], | |
| "x-prohibited-uses": [ | |
| "Protected-field treatment decisions", | |
| "Automated contact", | |
| "Proof of non-payment", | |
| "Verified legal status inferred from a mention" | |
| ], | |
| "x-invariants": [ | |
| "Every feature references the same case, snapshot and calculation version as its Decision Record", | |
| "Absent detection is unknown, never false", | |
| "A text quote must equal its exact recorded span and carry the input content hash", | |
| "Outcome analytics and future fields never enter shared_features", | |
| "Only supplied structured flags and cited financial/protective mentions may influence review", | |
| "recorded_uncredited_amount is a decimal string only for a validated selected-promise allocation; otherwise null" | |
| ] | |
| } | |