Repository navigation
Added
-
Selective disclosure.
protocolith disclose --policy FILE(alsocore.build_disclosure, MCPprotocolith_disclose) writes a
publishable view of a ledger in which each entry is shown in full, as a summary, or hidden; the hash chain stays intact, so a
reader sees how many entries exist and that none was dropped. A policy chooses the level by protocol (exact or prefix), by
seqor by a range, first match wins, default hidden.protocolith verify-disclosure FILE [--anchors DIR] [--reveal ENTRY]
(core.verify_disclosure,core.verify_reveal, MCPprotocolith_verify_disclosure) checks structure, chain, full entries,
anchors, and that a revealed entry is exactly the one committed to.protocolith atlas --policy FILEbuilds the matching atlas
(hidden records shown asHIDDENrows). New codesBAD_POLICY,BAD_DISCLOSURE,DISCLOSURE_HASH,DISCLOSURE_CHAIN;
protocolith schema policy; conformance vectorsspec/vectors/disclosures.json; core specification section 15; MCP now
has 15 tools. Seedocs/guides/selective-disclosure.mdandexamples/selective_disclosure/. -
Example
examples/phantom_mean_reversion/. A published simulation study as a retrospective record: frozen protocol, two
anchors, a card, andreproduce.py, which re-runs the study (numpy only, about five seconds) and compares the output with the
committed results (IDENTICAL, or EQUAL within 1e-9 where floating-point rounding differs). The README states plainly what a retrospective record proves and what it does not. -
External anchoring of the ledger head.
protocolith anchor(alsocore.anchor_headand the MCP toolprotocolith_anchor)
writes an anchor statement (canonical JSON of the head; its sha256 is theanchor_id) to<store>/anchors/, and optionally
adds an RFC 3161 time-stamp (--tsa URL; the signature is not verified by the core, theopenssl ts -verifycommand is printed),
a Wayback snapshot (--wayback URL), a local git tag (--git-tag [--sign], never pushed) and a statement file
(--write-head FILE). Nothing networked or git-related happens without its option.verify-ledger --anchors
(core.verify(store, anchors=True),core.verify_anchors, MCPprotocolith_verifywithanchors) reports
ANCHOR_MISMATCH(ledger rewritten),ANCHOR_AHEAD(truncated) andANCHOR_INVALID;summaryshows the number of
anchors and the last anchoredseq. New error codes:ANCHOR_MISMATCH,ANCHOR_AHEAD,ANCHOR_INVALID,
ANCHOR_EXISTS,ANCHOR_FAILED,NOT_A_GIT_REPO,EMPTY_LEDGER,BAD_URL. Conformance vectors:spec/vectors/anchors.json.
Specification section 13 and the guide Anchor your results. -
claim_check(protocolith claim-check --seq N | --protocol ID,core.claim_check, MCPprotocolith_claim_check):
what may and may not be said about a record (supported,may_say,must_not_say, anchored, frozen before the record,
independent reproduction), from fixed templates. Specification section 14. -
MCP prompts:
prompts/listandprompts/getwithresearch-agent-protocol, instructions for an AI agent;
initializeadvertises tools, resources and prompts. The server now has thirteen tools. -
mypy --strictruns in CI overprotocolith.core(uv run mypy);mypyjoins thedevextra. -
README badges for status, package, repository and project facts; a ledger and core issue form; a ledger demo GIF generated from a real run (
scripts/build_demo_gif.py).
Fixed
- The command line no longer fails at import or at parser build when the home directory cannot be determined: it falls back to the temporary directory (
protocolith._paths.home_dir).
Changed
- Citation metadata: Zenodo DOI of 0.6.0 (
10.5281/zenodo.24291830), a DOI badge (concept DOI10.5281/zenodo.24021995) and an abstract that describes the ledger core.