Skip to content

Protocolith 0.7.0

Latest

Choose a tag to compare

@NeoZorK NeoZorK released this 18 Nov 17:18
Immutable release. Only release title and notes can be modified.
738ce8d

Added

  • Selective disclosure. protocolith disclose --policy FILE (also core.build_disclosure, MCP protocolith_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
    seq or by a range, first match wins, default hidden. protocolith verify-disclosure FILE [--anchors DIR] [--reveal ENTRY]
    (core.verify_disclosure, core.verify_reveal, MCP protocolith_verify_disclosure) checks structure, chain, full entries,
    anchors, and that a revealed entry is exactly the one committed to. protocolith atlas --policy FILE builds the matching atlas
    (hidden records shown as HIDDEN rows). New codes BAD_POLICY, BAD_DISCLOSURE, DISCLOSURE_HASH, DISCLOSURE_CHAIN;
    protocolith schema policy; conformance vectors spec/vectors/disclosures.json; core specification section 15; MCP now
    has 15 tools. See docs/guides/selective-disclosure.md and examples/selective_disclosure/.

  • Example examples/phantom_mean_reversion/. A published simulation study as a retrospective record: frozen protocol, two
    anchors, a card, and reproduce.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 (also core.anchor_head and the MCP tool protocolith_anchor)
    writes an anchor statement (canonical JSON of the head; its sha256 is the anchor_id) to <store>/anchors/, and optionally
    adds an RFC 3161 time-stamp (--tsa URL; the signature is not verified by the core, the openssl ts -verify command 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, MCP protocolith_verify with anchors) reports
    ANCHOR_MISMATCH (ledger rewritten), ANCHOR_AHEAD (truncated) and ANCHOR_INVALID; summary shows the number of
    anchors and the last anchored seq. 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, MCP protocolith_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/list and prompts/get with research-agent-protocol, instructions for an AI agent;
    initialize advertises tools, resources and prompts. The server now has thirteen tools.

  • mypy --strict runs in CI over protocolith.core (uv run mypy); mypy joins the dev extra.

  • 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 DOI 10.5281/zenodo.24021995) and an abstract that describes the ledger core.