ChangeX core: canonical document model, append-only provenance journal, and the docx native-revisions adapter (M0 spine).
Project description
changex-core
Core of ChangeX — the provenance-first edit-tracking spine (roadmap M0).
This package contains, with no network access and no MCP dependency:
changex_core.model— a canonical, addressable document-node tree whosenode_idis an opaque, edit-invariant identifier (NOT a content hash). For docx paragraphs it reuses Word's nativew14:paraId; for nodes lacking a native id it mints a monotonic per-session counter. A content+position fingerprint is demoted to a fallback rebind anchor used only for fuzzy re-resolution.changex_core.ops— the frozen v0.1 op vocabulary (docx-only):text.insert,text.delete,text.replace,node.insert,node.delete,style.change. Offsets are node-relative and seq-ordered;beforesubstrings are validated against current node content.changex_core.journal— the append-only JSONL.changexjournal with an RFC 8785 (JCS) canonicalized sha256 hash chain, plusappend,read,replay,verify, andrevert.changex_core.adapters— theDocumentAdaptercontract and the docx adapter that loads a.docx, applies the v0.1 ops, and renders native Word revisions (<w:ins>/<w:del>/<w:delText>/<w:pPrChange>) with centrally-allocated uniquew:id,w:author = <model name>, andw:date.changex_core.render— an HTML/markdown redline projection of the journal.changex_core.baseline— a baseline snapshot + out-of-band mismatch warning.changex_core.cli— a thin CLI (changex track / review / verify) that exercises the spine for the M0 script-based acceptance test.
Threat model (hash chain)
The hash chain gives tamper-evidence for accidental corruption and naive
tampering only. An attacker who controls the .changex can recompute the whole
chain. Adversarial integrity requires out-of-band storage or signing (deferred to
M6).
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 changex_core-0.1.15.tar.gz.
File metadata
- Download URL: changex_core-0.1.15.tar.gz
- Upload date:
- Size: 92.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
444284cff9af331e249b5e76b0030fceb95ab44649f4199f3bb6207775af49bc
|
|
| MD5 |
b5f44d6abee9e1befdf4328328a9dddd
|
|
| BLAKE2b-256 |
07301cf40b7aba4f1402295a04ffd0dce873ca22b114c77e3beda262b3e16e71
|
File details
Details for the file changex_core-0.1.15-py3-none-any.whl.
File metadata
- Download URL: changex_core-0.1.15-py3-none-any.whl
- Upload date:
- Size: 119.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d032a642cf856b1321ffda693054008392d92e7217323990b58fe9b9d1101c6
|
|
| MD5 |
ee148d682d3b11c6995025e96c2eb9c6
|
|
| BLAKE2b-256 |
ed6364540f2f5e781a5461b6cbe71b3a9c8bd2b3abcf65f5a4e80b279831310a
|