Repository navigation
Conversation
The build-suite, export-db-tables, publish-derived and load-supabase-mirror examples sent every agent to fixed shared paths (/tmp/chronicle-suite, /tmp/chronicle-mirror, /tmp/chronicle-build-artifacts.jsonl). --replace deletes the output directory first, so concurrent agents deleted or swapped each other's output. Every example that starts a build now makes its own RUN_DIR with mktemp -d, as #315 does for build-bundle, and the chained steps reuse that run's RUN_DIR. README section 4 documented a Chronicle Explorer app under explorer/ that no commit of this repo has ever contained; it is removed. The OBR examples now use the registered package ids (obr-efo-{receipts,expenditure}-march-2026), and three harness examples for packages never registered on main are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up from #351, which retires Whichever merges second should:
|
|
#351 landed on main and removed
Git merges this PR's |
Resolves the conflicts with #351, which retired load-supabase-mirror. It takes main's side of each load hunk and keeps this PR's $RUN_DIR arguments on export-db-tables and publish-derived, so the chained note now covers those two steps only. It drops main's old SOI Table 1.4 block, because this PR moved that block next to Table 1.1, and keeps the Explorer section removed. The harness report prose now names each build's <output-dir>/reports and <output-dir>/reports/agent_acceptance.json. `<output-dir>` is the output_dir that build-suite prints. Read top to bottom, $RUN_DIR at that point names a later per-package run, as the round-2 review found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Docs only. This PR fixes two problems found on 2026-10-07 and two stale-example problems found while checking them. It changes only
README.md,docs/agent-source-package-harness.mdanddocs/storage-architecture.md.1. Shared
/tmpoutput paths. Thebuild-suite,export-db-tablesandpublish-derivedexamples sent every agent to the same fixed paths:/tmp/chronicle-suite,/tmp/chronicle-mirrorand/tmp/chronicle-build-artifacts.jsonl.--replacerunsshutil.rmtreeon a non-empty output directory (_prepare_output_dirinchronicle/suite.py,bundle.pyandmirror.py), so concurrent agents deleted or swapped each other's output.write_build_artifacts_jsonlalso opens its file with"w". The fix follows #315, which gave thebuild-bundleexamples the same pattern and is now on main:RUN_DIR="$(mktemp -d)"and writes under"$RUN_DIR/...". Basenames are unchanged.$RUN_DIR, and the prose names the producing step. These areexport-db-tablesandpublish-derived. Retire the hosted Supabase mirror and query_sources #351 retired the third,load-supabase-mirror.<output-dir>/reportsand<output-dir>/reports/agent_acceptance.json, where<output-dir>is theoutput_dirthatbuild-suiteprints. It no longer names$RUN_DIR, because read top to bottom$RUN_DIRat that point belongs to a later per-package run.--replacestays onbuild-suiteandexport-db-tables. Inside your own run directory it clears only your own earlier output, which re-running a single build line needs. The docs say so.RUN_DIRto the parent of theoutput_dirthatbuild-suiteprints.build-suiteprints its report, which includesoutput_dir(chronicle/harness.py,BuildSuiteReportinchronicle/suite.py).git grep -n /tmp/ -- README.md docs/finds only the two prose warnings that name/tmp/chronicle-suiteas the thing not to do.RUN_DIRwould sit between the strict Table 1.1 build and the export that reads it.validate-concept-alignmentsexample builds its own fixture facts. Before, it read a file written about 300 lines earlier.2. README "Run Chronicle Explorer" documented an app that is not in the repo. The section is removed; on main it is section 3, so after this PR the Quick Start is "1. Install" and "2. Validate fixture facts", followed by main's "Retired legacy target tables". Where the app went:
explorer/path (git log --all -- explorer 'explorer/**'is empty).codex/source-packages-pe-parity) as "Arch Explorer" withARCH_EXPLORER_DATA_DIRS. It reached main through Add Arch source package core harness #7, and Add Ledger governance and raw fact boundary checks #68 renamed it, all without app code.explorer/folder of one local checkout of this repo (remotePolicyEngine/arch-data, which redirects here):@cosilico/arch-explorer, a Next 16 + Tailwind 4 workbench last edited 2026-05-15. It was never pushed, and no PolicyEngine or CosilicoAI repo holds it, so the README cannot point at it.3. Stale OBR package ids. The README and harness doc ran
validate-package obr-efo-receipts, which fails withSource package not found. The registered ids areobr-efo-receipts-march-2026andobr-efo-expenditure-march-2026.4. Three harness examples for packages never on main. These are
ons-uk-population-projections-2022,nrs-mid-year-population-estimates-2024andnrs-vital-events-reference-tables-2024. None is registered, their only package commits (7a5a7b0, 3475f96) are not ancestors of main, and no open PR or branch registers them. The examples are removed.Merge with main
The branch merges main at 13294b9. The conflicts all came from #351, apart from README's Explorer hunk. Each was resolved as the 2026-11-15 comment here describes:
$RUN_DIRnote, now covering the export and the derived publish only;$RUN_DIRarguments;Chronicle Governance
This PR does not touch the Chronicle source-data boundary: no source package, consumer contract, schema or code changes.
Tests
At
ce145b0(2026-10-07, before the merge with main): every edited bash block was extracted and run verbatim, each in a fresh shell withRUN_DIRunset.build-suiteruns passed: 7 US, 56 UK and 3 README UK.export-db-tables→publish-derived(with--wrangler-command true, so nothing uploaded) → the then-current dry-run mirror load, and every report readvalid: true.build-suiteblock each kept a complete, separate output (80 facts and aledger.db). With the old fixed path, buildingcms-aca-oep-state-levelaftersoi-table-1-1replaced the first agent's 80 SOI facts with 153 CMS facts.--require-axiom-validationandvalidate-concept-alignmentsblocks need theaxiomCLI and were not run.At
d82eedf(after the merge), static checks:bash -npasses on all 37 bash blocks in the three docs.validate-package,build-suite,build-fixture-facts,build-source-cellsandbuild-source-rowsresolve on main.RUN_DIR="$(mktemp -d)"sits between a producer and its consumer. README: strict build → export → publish-derived. Harness: strict build → export → publish-derived. Storage: step 2 → steps 4 and 5.tests/test_supabase_mirror_retired.py'sRETIRED_SURFACE_STRINGSappears in the three docs.An independent review at
d82eedfre-runs the doc examples there.🤖 Generated with Claude Code