Skip to main content

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.

License: MIT Schema Version Python


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


Download files

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

Source Distribution

ucs_parser-0.1.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

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

ucs_parser-0.1.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

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

Hashes for ucs_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 acb1b1f1ce4ee4d14ab64b2260db0988286b802d22f90bbfe9a80e9a4e099967
MD5 355f7fbfd6b0c6e49247d6cd3fa574ab
BLAKE2b-256 751fd267032b33b1ffbb93f4a16ff0db4d383eaf91e9c89b85082202c33625cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for ucs_parser-0.1.0.tar.gz:

Publisher: publish.yml on XwhyZ-WHYLD/universal-cognitive-schema

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

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

Hashes for ucs_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d73d07ead493c12d09b66189349cd0814426950437b0deec0a2f4488c2bf521
MD5 cdb8d9a8a16d275e678422d8b1b9084c
BLAKE2b-256 68d03c0718fd8b32bb5ac9dccc7e325e1236dcf0083ffc9a9f80f6a60d66b4ca

See more details on using hashes here.

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

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

Supported by

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