Rename Ledger to Chronicle: repo, package, CLI (with ledger alias) - #142
Merged
Conversation
Code identity renames: dist policyengine-ledger -> policyengine-chronicle, import packages policyengine_ledger -> policyengine_chronicle and ledger -> chronicle, CLI entry 'chronicle' with a back-compat 'ledger' alias, docs and prose to Chronicle/Microcosm naming. Frozen v1 machine surfaces (deliberately unchanged): fact-identity hash domains (ledger.*.v2), schema ids (ledger.bundle.v1, ledger.consumer_fact.v1, policyengine_ledger.*.v1), the ledger.db artifact filename, R2 buckets ledger-raw/ledger-derived, Supabase schema "ledger" + mirror table/column names (ledger_builds, ledger_source_status), governance role ids (ledger-*), concept authorities (ledger-us), source_package.yaml hashed specs, db/data, and the codex/thesis-ledger-facts branch wiring. The consumer-contract guard now rejects all four self-referential source names. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
Full local suite after all fixes: 611 passed, 1 skipped, ruff clean (the same 612 collected as pre-rename main). Frozen-surface verification: schema ids, hash domains, R2 buckets, Supabase names, governance role ids, hashed source_package specs, and db/data all byte-identical to origin/main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executes Max's rename order (2026-08-07): Ledger → Chronicle (chronicle.institute). The repo is already renamed to PolicyEngine/chronicle (GitHub redirects active).
Renamed (code identity):
policyengine-ledger→policyengine-chronicle; import packagespolicyengine_ledger→policyengine_chronicle,ledger→chroniclechroniclewith a back-compatledgeralias (María's documenteduv run ledger publish-rawflow keeps working)Frozen v1 machine surfaces (deliberately unchanged — existing artifacts, the witnessed journal, Supabase, and R2 depend on them):
ledger.{fact,observed_measure,dimension_set,universe_constraint_set,aggregate_fact,semantic_fact,concept_alignment,source_release,source_series}.v*ledger.bundle*.v1,ledger.build_artifact.v1,ledger.consumer_fact.v1,ledger.relational.v1,policyengine_ledger.{consumer_artifact,target_profile,resolved_target,approved_agents}.v1ledger.dbartifact filename; R2 bucketsledger-raw/ledger-derived; Supabase schema"ledger"and mirror tables/columns (ledger_builds,ledger_source_status);.ledger_derivedrow markerledger-*), concept authorities (ledger-us), hashedsource_package.yamlspecs,db/data/**, wire-contract JSON schemas (byte-identical packaged/docs copies)codex/thesis-ledger-factsbranch wiring in thesis-facts-append.ymlPOLICYENGINE_LEDGER_*/LEDGER_*env namesThe consumer-contract self-reference guard now rejects
{ledger, policyengine_ledger, chronicle, policyengine_chronicle}. A follow-up issue will scope the deliberate v2 migration of the frozen surfaces.Full local suite re-run in progress at PR-open time (subset gates for every previously failing class green locally; ruff clean); final count will be posted as a comment before merge.
🤖 Generated with Claude Code