Reference parser for the Universal Cognitive Schema — portable AI identity standard
Project description
ucs-parser
Reference parser for the Universal Cognitive Schema (UCS) — the open standard for portable AI identity across platforms.
What is UCS?
UCS is an open standard for representing a person's accumulated AI interaction profile in a portable, platform-agnostic format. It lets you move your cognitive identity — preferences, expertise, interaction patterns, projects — between AI platforms without starting from zero every time.
Installation
pip install ucs-parser
For full JSON Schema validation:
pip install "ucs-parser[validate]"
Quickstart
Parse a ChatGPT export
from ucs_parser import Parser
parser = Parser(source="chatgpt")
profile = parser.from_file("chatgpt_export.zip") # or conversations.json
# Write to file
profile.to_json("my_profile.ucs.json")
# Validate against the UCS schema
profile.validate()
# See per-dimension fidelity scores
print(profile.fidelity_report())
CLI
ucs parse chatgpt_export.zip --output my_profile.ucs.json
ucs validate my_profile.ucs.json
ucs fidelity my_profile.ucs.json
What gets inferred
From a ChatGPT conversations.json export, the parser automatically infers:
| Dimension | What is captured |
|---|---|
| Persona | Communication style blend, formality, verbosity, tone markers |
| Expertise map | Domains and depth levels from topic frequency |
| Preference corpus | Output format, response length, code language preferences |
| Interaction patterns | Prompt structure, common corrections, rejected behaviours |
| Temporal context | AI usage period and life chapter from message timestamps |
| Provenance | Source platform, extraction method, sanitisation attestation |
| Fidelity | Per-dimension confidence scores with interaction count |
Fidelity report
Every parsed profile includes an honest fidelity report:
Fidelity Report (generated 2026-04-16 13:00 UTC)
Overall: 0.72 Good overall fidelity with some gaps.
Persona ██████████ 0.91 High confidence — inferred from 2,847 interactions.
Expertise map ████████░░ 0.78 Good — 14 domains identified.
Project graph ██████░░░░ 0.65 Moderate — some projects lacked structured context.
Preference corpus █████████░ 0.88 High — strong signal from format corrections.
Interaction patterns ████████░░ 0.83 Good — consistent correction patterns detected.
Trust boundaries █████░░░░░ 0.52 Low — insufficient explicit delegation signal.
Temporal context ███████░░░ 0.72 Good — life chapters inferred from topic shifts.
Security
All profiles are sanitised by default. The sanitiser strips prompt-injection patterns, role-override syntax, and executable instructions before any content is written to a profile. The provenance.sanitised field attests to this.
Roadmap
- v0.1.0 — ChatGPT parser ✅
- v0.2.0 — Claude + Gemini parsers
- v0.3.0 — Injection library (UCS → system prompt for major platforms)
- v0.4.0 — Standalone fidelity scoring engine
- v0.5.0 — Delta sync protocol
- v1.0.0 — Stable schema + IETF Internet-Draft
Links
License
MIT — schema additionally released under CC0 1.0
Project details
Release history Release notifications | RSS feed
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 ucs_parser-0.1.0.tar.gz.
File metadata
- Download URL: ucs_parser-0.1.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acb1b1f1ce4ee4d14ab64b2260db0988286b802d22f90bbfe9a80e9a4e099967
|
|
| MD5 |
355f7fbfd6b0c6e49247d6cd3fa574ab
|
|
| BLAKE2b-256 |
751fd267032b33b1ffbb93f4a16ff0db4d383eaf91e9c89b85082202c33625cc
|
Provenance
The following attestation bundles were made for ucs_parser-0.1.0.tar.gz:
Publisher:
publish.yml on XwhyZ-WHYLD/universal-cognitive-schema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ucs_parser-0.1.0.tar.gz -
Subject digest:
acb1b1f1ce4ee4d14ab64b2260db0988286b802d22f90bbfe9a80e9a4e099967 - Sigstore transparency entry: 1317137967
- Sigstore integration time:
-
Permalink:
XwhyZ-WHYLD/universal-cognitive-schema@990bc58b80f927a7c1edc77c09a9f3618e31c7e0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/XwhyZ-WHYLD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@990bc58b80f927a7c1edc77c09a9f3618e31c7e0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ucs_parser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ucs_parser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d73d07ead493c12d09b66189349cd0814426950437b0deec0a2f4488c2bf521
|
|
| MD5 |
cdb8d9a8a16d275e678422d8b1b9084c
|
|
| BLAKE2b-256 |
68d03c0718fd8b32bb5ac9dccc7e325e1236dcf0083ffc9a9f80f6a60d66b4ca
|
Provenance
The following attestation bundles were made for ucs_parser-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on XwhyZ-WHYLD/universal-cognitive-schema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ucs_parser-0.1.0-py3-none-any.whl -
Subject digest:
2d73d07ead493c12d09b66189349cd0814426950437b0deec0a2f4488c2bf521 - Sigstore transparency entry: 1317137990
- Sigstore integration time:
-
Permalink:
XwhyZ-WHYLD/universal-cognitive-schema@990bc58b80f927a7c1edc77c09a9f3618e31c7e0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/XwhyZ-WHYLD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@990bc58b80f927a7c1edc77c09a9f3618e31c7e0 -
Trigger Event:
release
-
Statement type: