Repository navigation
Conversation
ZacxDev
force-pushed
the
chore/delete-python-oracle
branch
from
December 4, 2026 02:28
873acff to
381a806
Compare
ZacxDev
added a commit
that referenced
this pull request
Dec 4, 2026
…the four never-compared rows #327 audit rounds 0+1 (no 🔴; final commit, not re-audited): - §6.2's open gap closed with Go tests through the CLI entry point (`Run`): TestAnUnreadableScopeDirectoryIsReportedWithTheReadersSentenceAtExitThree (recall + validate over a mode-000 scope directory: exit 3, the store-wide sentence, the CPython-spelled tail naming the directory) and TestAnEnvironmentAliasIsAnnouncedOnStderrByTheCLI ($SUBSYSTEM_STORE_URL -> one deprecation line on stderr, none on stdout). The recall unreadable-ENTRY case already existed (TestAnUnreadableEntry...AtExitThree runs both verbs); the plan's "no Go test" claim was wrong and is corrected. These pin behaviour that already held, so they are invariant guards; mutation-checked, 4/4 killed, each by its own test: scope-dir read error swallowed; the alias sweep removed from Run; the sink pointed at stdout; the raw Go error in the store-wide sentence. transport.go's "no longer measured end to end" comment now names the test, and says the FILE-key half's emission is still unmeasured. - D1: the four `oracle_only` rows (raw-malformed-request-line, raw-malformed-absolute-target, post-bullets-not-json, post-bullets-deeply-nested-json) and their frozen goldens are deleted, and raw-malformed-absolute-target leaves the uniform-401 relation. Frozen corpus 128 -> 124, digest re-derived with frozen_corpus_digest() over the files. Conformance re-measured by running run_go.sh: SUMMARY requests=173 assertions=929 failures=0 skipped=0; 211 PASS / 0 FAIL / 0 SKIP. The CI skip pin moves 5 -> 0. The mechanism and its guards stay; a test pins that no shipped row carries the mark. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner
Author
|
Recorded open after the audit (final commit 3c57009, not re-audited):
🤖 Generated with Claude Code |
ZacxDev
added a commit
that referenced
this pull request
Dec 4, 2026
…the four never-compared rows #327 audit rounds 0+1 (no 🔴; final commit, not re-audited): - §6.2's open gap closed with Go tests through the CLI entry point (`Run`): TestAnUnreadableScopeDirectoryIsReportedWithTheReadersSentenceAtExitThree (recall + validate over a mode-000 scope directory: exit 3, the store-wide sentence, the CPython-spelled tail naming the directory) and TestAnEnvironmentAliasIsAnnouncedOnStderrByTheCLI ($SUBSYSTEM_STORE_URL -> one deprecation line on stderr, none on stdout). The recall unreadable-ENTRY case already existed (TestAnUnreadableEntry...AtExitThree runs both verbs); the plan's "no Go test" claim was wrong and is corrected. These pin behaviour that already held, so they are invariant guards; mutation-checked, 4/4 killed, each by its own test: scope-dir read error swallowed; the alias sweep removed from Run; the sink pointed at stdout; the raw Go error in the store-wide sentence. transport.go's "no longer measured end to end" comment now names the test, and says the FILE-key half's emission is still unmeasured. - D1: the four `oracle_only` rows (raw-malformed-request-line, raw-malformed-absolute-target, post-bullets-not-json, post-bullets-deeply-nested-json) and their frozen goldens are deleted, and raw-malformed-absolute-target leaves the uniform-401 relation. Frozen corpus 128 -> 124, digest re-derived with frozen_corpus_digest() over the files. Conformance re-measured by running run_go.sh: SUMMARY requests=173 assertions=929 failures=0 skipped=0; 211 PASS / 0 FAIL / 0 SKIP. The CI skip pin moves 5 -> 0. The mechanism and its guards stay; a test pins that no shipped row carries the mark. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ZacxDev
force-pushed
the
chore/delete-python-oracle
branch
from
December 4, 2026 03:14
3c57009 to
8bf8077
Compare
…e verb The Go client gains the answers the Python client's last consumers read from its in-process objects, as a stable contract (`schema: 1`, documented in README.md → "Machine-readable output"), so packages.cairn can be retired (v1 plan Phase 5): - `recall --json`: the reader's report — status, exit, warning, scope, instance, cache_root, state, candidates, entries with sections keyed by heading. Same exit code and stderr warning as the text form; a refusal prints no document. - `validate --file PATH`: one draft, offline, judged by `write.CheckEntryBytes` — the predicate create/put run on the pod (loader parse + closed tag vocabulary) — then the write-protocol advisories. Exit 0 / 5 malformed / 2 unreadable. - `associate --scope S --paths-from FILE|- [--min-paths N] [--json]`: which entries a list of repo-relative paths names, through store.AssociatePaths (the matcher recall's focus window already uses). Go-only verb, ledger class `resolved`. - `routes --json`: every instance's cache root (via instanceCache, the read verbs' own resolver) and the scope->instance table (null when none). `--json --check` is refused. doctor --json is unchanged (the parity gate pins its bytes until Phase 5 removes it). Tests: internal/client/jsonout_test.go pins literal key sets and fixture values. Mutation sweep, 17 mutants over the four features, 17 killed, each by the test that names its feature (incl. M6: validate --file on the loader alone, no vocabulary — killed only by the off-vocabulary-tag case). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nswers scope-absent Audit round 1 findings (no 🔴; ladder ended): - F1: `validate --file` judged a draft under its OWN basename/directory while create uses NormalizeRef(--ref)+".md" and the folded scope, and ignored the 1 MiB body cap. New `--ref REF` derives (scope, filename) exactly as create does and refuses a scope/ref that is not a safe path component (the pod 400s those before reading the body); without `--ref` the path-based judgement stays. The body cap (write.MaxEntryBytes, which api.maxBodyBytes is now defined from) is checked in both modes. README/CHANGELOG/comment narrowed to what holds. Expectations measured against the real pod first: draft.md/widget-api 5->0 with --ref (create 201); widget-api.md/--ref other 0->5 (create 6 entry-shape); x.runbook.md/--ref x 5->0; --ref x.process -> 2 (create 400); >1 MiB -> 5 in both modes (create 400). - F2: `associate` on a scope the cache does not hold printed nothing and exited 2 like a usage error. It now answers recall's way: a document with `status: scope-absent` (new `status` field, `associated` otherwise), exit 0 — the same answer for "never existed" and "not visible". Text form: one `scope-absent\t<scope>` line. - F3: the text form prints `below-threshold` lines. - F5: CheckEntryBytes's doc comment no longer splits validateEntryBytes's from its func; the caller-ledger sentence names CheckEntryBytes. - F4 (recall --json omits some report fields) stays open, additive. Red at the previous head, green here: the three F1 tests and the two associate tests (TestValidateRefWithoutFileIsAUsageError passes at both — an invariant guard). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…e reader's entry parse) Operator decision on devrc#3529: no local copies of cairn logic in devrc. Two generic read verbs so consumers ask the reader instead of re-implementing it (schema 1, README "Machine-readable output"): - `refs (--scope S | --all-scopes) [--json]`: every ref the cached entries make addressable, and every one `store.ResolveRefTiered` calls ambiguous (tier + candidate filenames). `refs_tried` is the denominator. `--all-scopes` counts each scope once, in the instance the routing table sends it to; a copy cached on another instance is listed in that instance's `not_routed_here`. - `parse --file PATH|- [--bullets] --json`: front matter, headings, sections and the nuance journal's bullets (start_line, date, openness, resolved_by, population, citation_id); `--bullets` parses any text as one journal body. Offline; not a well-formedness verdict. Both Go-only; ledgers updated (capability_ledger, want-go-only-verbs, read-ledger class probes). Tests: internal/client/parserefs_test.go — literal fixtures (alias-tier and filename-tier collisions, the alias-equals-another-slug non-collision, the routed instance count, all six populations). Mutation sweep 9/9 killed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…he Go server The Python oracle is being retired, so the 128 goldens recorded from it become a FIXED corpus: pinned by count and content digest (suite.check_frozen_corpus), never re-recorded (that would certify Go against itself). A future golden is recorded only from the Go server with `run_go.sh record <id>`, stamped `recorded_from: cmd/cairn-server`, and hand-reviewed; the README says so and names the freeze commit. - fold the go_only mark (routes, rows and goldens stay; only the mark goes), and refuse any unread row key so a retired mark cannot linger - cases.declared_routes reads `cairn-server -routes` out of the built binary; `suite.py run`/`record` require --server-binary, which run_go.sh passes - oracle.py split: the world/token half moves to fixture.py, the boot half and mutate.py go with the oracle - internal/api's route ledger test loses the go-only branch, keeps grow/shrink Measured: run_go.sh 211 PASS / 0 FAIL / 5 SKIP; with one Go-recorded golden's status changed, exactly `FAIL sessions-authorized`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…r gates
Phase 5 of the v1 event-log plan (P8): the Go pod is deployed and the Go
client is the default, so the Python implementation and everything that
compared it with the Go one is deleted.
Deleted: the `cairn` script, lib/, server/server.py + Dockerfile +
build-push.sh + verify-byte-identity.sh, tests/parity/, tests/dualrun/, and
every Python test whose subject was those (store API, CLI, write, instances,
doctor, read store/recall/resolver, read ledger, entry shape, requirements,
trailer strip, marker oracle sweep), plus the generators that recorded from
them (citation_ids.py, marker_corpus.py) and the env_pin sanitizer, which no
longer has a consumer. flake.nix drops packages.cairn, apps.cairn,
packages.server-image and checks.client-resolves-its-lib; serverEnv is
emptied (its three names were the Python pod's), so the Go image's Env is
`serverEnv // { PATH; SSL_CERT_FILE; }`.
Split, not dropped:
- test_flake_image_matches_dockerfile.py: its live half (cmd/cairn-server
defaults vs a Deployment, the image-env absence rule, the uid VALUE, the
flake readers) is tests/test_server_deployment_defaults.py
- the seed.sh tests (seed.sh is kept) are tests/test_seed.py
- the CPython re.I folding-rune sweep is tests/test_cpython_re_folding_runes.py
- test_env_aliases / test_tag_vocabulary / test_nuance_bullet_ceiling /
test_citation_render: the Go side is now pinned against LITERALS
Re-pointed, not deleted: test_go_client_ledgers and testlib/capability_ledger
compare `cairn -verbs` / `cairn-server -routes` with the capability ledger;
the flake's want-*.txt lists are folded and pinned to the same ledger.
Frozen as contracts (recorded from the oracle at ec1b756): the reader
fixture, the citation-id fixture (option (a)), the marker sweep fixture; each
pinned by digest. reader_fixtures.py now only materialises the frozen world,
byte-identical (125 files, bytes and mtimes) to the old builder's.
Env aliases keep working; their removal anchor moved from "packages.cairn is
retired" (now met) to a CHANGELOG-announced release, and the rendered warning
is pinned as a whole sentence (mutation-tested: an argument swap goes red).
memeval's synthetic world answers its l0 arm with the Go client (18/18).
routing_mutants loses its Python rows; its positive control is a Go row.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… deleted files - ci.yml: delete the `parity` and `dualrun` jobs and the nix steps building packages.cairn / checks.client-resolves-its-lib / packages.server-image; the go job runs test_go_client_ledgers.py AND test_memeval_world.py (both drive a compiled binary) and refuses a skip, floor 22 (measured with --collect-only); the conformance step's PASS floor is the measured 211, and a new NEGATIVE CONTROL step replays the corpus over a copy with one Go-recorded golden's status changed and requires exactly that case to FAIL (measured locally: `FAIL sessions-authorized`, failures=1) - ci_paths / test_ci_paths: parity and dualrun leave the gated-job ledger; the negative-control step joins the gated go steps - test_no_scrubbed_identifiers: cited verbs are checked against the capability ledger (itself asserted against `cairn -verbs`) instead of the Python parser - test_narrowing_echo_sites, test_control_mutant_count_is_pinned, test_agent_instructions_weight: the deleted sites/destinations leave their ledgers (the eviction playbook now names internal/client/ROUTING.md and the v1 plan) - residual 9's two declared-divergence paragraphs (verbs.go, snapshot.go) now state the rule; the fnmatch/HasPrefix measurement is kept as a property of the matchers. The retired `report_json` "tasks" key is noted as gone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…r runbook, plan §6.2 - claudedocs/plan-cairn-v1-event-log.md §6.2: every row of the P8 retirement ledger (which lived in the deleted tests/parity/README.md) with its disposition; the Phase 5 row says what was done and that tests/conformance/ was kept with a frozen corpus rather than removed; one open gap recorded (no Go test for recall over an unreadable entry / scope directory) - AGENTS.md: the two-servers/two-clients sections become one section on the retirement and the frozen contracts; the lib/ rule, the Python image pin and the parity gate are gone; routing rules point at internal/client/ROUTING.md (lib/README.md's routing section, re-homed with Go names) - README.md: no #cairn / packages.cairn / server-image; -verbs/-exit-codes documented as public surface; an upgrade note for consumers still pinning #cairn; the env-alias window's met condition and next step - CHANGELOG.md: one row for the retirement - server/README.md: rewritten around the Go pod; build-push/verify sections and the two-image comparison deleted; the dual-run byte-identity section kept as labelled history Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…prose conftest.py puts only tests/ on sys.path (lib/ and server/ held the deleted modules); testlib's hang_mechanism, public_ip_scan and skip_dirs had no remaining importer and are deleted; ROUTING.md is registered as a site of the one-instance narrowing (it carries it in full) and no longer lists the deleted sites as live; a few ci.yml comments stop describing the parity harness as running. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Python pod (`packages.server-image`, ghcr `cairn-store`) is gone from
the flake, so its build, control, both pushes and anonymous-pull proof are
deleted from the workflow, along with the `image=` output nothing else read.
The `cairn-store` package is no longer pushed; its existing tags stay in
ghcr untouched. The Go pod and UI legs are byte-identical apart from comments.
Guards, re-aimed rather than dropped:
- ordering: "whole Go half before first Python step" becomes "whole pod leg
before first UI step" -- the workflow states the legs never interleave, and
nothing pinned the UI leg's position before.
- PINNED_STEP_CONDITIONS: the Python version-tag `if:` is replaced by the UI
one, which was unpinned (its drop mutant passed the whole base suite).
- test_no_control_step_can_REFUSE_and_exit_ZERO now loops over every pinned
control/proof step, UI included (at base a UI `exit 0` was caught only by
the whole-body pin).
- route-ledger test keeps its Go-side assertions, drops the Python comparison.
- test_every_published_tag... now checks both derived packages (go, ui).
- flake-package set is {server-image-go, ui-image}; the prefix-trap control
stays, plus a control that the retired `server-image` returning is red.
Mutants: Python-only rows removed (PYTHON /data delete, PYTHON head-20);
re-aimed: mutable-latest tag, proof-at-other-package (now the UI package),
reword-a-push-step (UI archive into the pod package), ordering (UI build
first); added: drop-the-UI-tag-push-condition and UI-control exit-zero.
Battery: every row KILLED by its named test, 0 problems.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Measured 881 with `python3 -m pytest tests -p no:randomly --collect-only -q` on this tree, so FLOOR = m = 881, with a derivation line beside the others. Also: README no longer says "both pods" strip a trailing citation token. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hon oracle still runs The Python client, pod, parity and dual-run gates are deleted on this branch, but ~120 comment lines under cmd/ and internal/ still asserted, in the present tense, that `tests/parity/` diffs the two clients, that `tests/dualrun/` compares the two servers, that `packages.cairn` ships the Python client, or that a deleted file "carries" a closing condition. Each is rewritten minimally: - past tense where the sentence records what a retired gate did; - re-pointed where something still covers the property (frozen reader fixture, frozen conformance goldens, test_go_client_ledgers.py, test_tag_vocabulary.py, test_nuance_bullet_ceiling.py, ROUTING.md); - "no longer compared against a second implementation" stated plainly where nothing replaced the coverage (client_test.go, transport.go's deprecation emission, readledger's VERB_CLASS twin, validate advisory lines, the read-budget question that lived in lib/entry_shape.py); - dangling "see tests/parity/README.md" pointers kept as history with "read it at ec1b756". The banner/Staleness deferrals (tokenfile, control README, identity, jwks, cmd/cairn-server) now say the dual-run reason is gone and the surface is simply unbuilt; their closing conditions drop the dualrun arm. Comments and README prose only: every changed .go line is a comment. Historical narration ("the oracle did X", sha-dated measurements), false-positive matches (packages.cairn-server/-capture/-summary, testlib/mutant_tree.py), redact budget data and one t.Fatalf string literal are left as they are. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Client comments still told a reader to add a `go_only` row and a line in the retired `want-go-only-verbs.txt`; they now name the ledger row and `want-all-verbs.txt`. With this, `grep -rn go_only tests/ internal/ flake.nix` is empty — the retirement ledger's mechanical check for the fold — and `go test ./internal/api/ -run RouteLedger` stays green. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The floor fell below 1000 when the oracle's suites were deleted, and the four-digit transition pattern read `3063 -> 881` as absent, so the LAST transition it saw was the previous one and it went red on a correct file (CI: "the last floor transition says `-> 3063` while the job uses 881"). Measured: green with FLOOR = 881, red with the literal moved to 882. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…the four never-compared rows #327 audit rounds 0+1 (no 🔴; final commit, not re-audited): - §6.2's open gap closed with Go tests through the CLI entry point (`Run`): TestAnUnreadableScopeDirectoryIsReportedWithTheReadersSentenceAtExitThree (recall + validate over a mode-000 scope directory: exit 3, the store-wide sentence, the CPython-spelled tail naming the directory) and TestAnEnvironmentAliasIsAnnouncedOnStderrByTheCLI ($SUBSYSTEM_STORE_URL -> one deprecation line on stderr, none on stdout). The recall unreadable-ENTRY case already existed (TestAnUnreadableEntry...AtExitThree runs both verbs); the plan's "no Go test" claim was wrong and is corrected. These pin behaviour that already held, so they are invariant guards; mutation-checked, 4/4 killed, each by its own test: scope-dir read error swallowed; the alias sweep removed from Run; the sink pointed at stdout; the raw Go error in the store-wide sentence. transport.go's "no longer measured end to end" comment now names the test, and says the FILE-key half's emission is still unmeasured. - D1: the four `oracle_only` rows (raw-malformed-request-line, raw-malformed-absolute-target, post-bullets-not-json, post-bullets-deeply-nested-json) and their frozen goldens are deleted, and raw-malformed-absolute-target leaves the uniform-401 relation. Frozen corpus 128 -> 124, digest re-derived with frozen_corpus_digest() over the files. Conformance re-measured by running run_go.sh: SUMMARY requests=173 assertions=929 failures=0 skipped=0; 211 PASS / 0 FAIL / 0 SKIP. The CI skip pin moves 5 -> 0. The mechanism and its guards stay; a test pins that no shipped row carries the mark. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…se onto 9c2d9c4) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
e72afdf) #328 landed its own "6.2 Phase 2" section in claudedocs/plan-cairn-v1-event-log.md, so the Phase 5 retirement ledger this branch adds is renumbered 6.3 and every pointer to it (AGENTS.md, CHANGELOG.md, README.md, server/README.md, ci.yml's FLOOR comment, cli.go, three test docstrings) follows. The Phase 2 row's own "(§6.2)" is #328's and is left alone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ZacxDev
force-pushed
the
chore/delete-python-oracle
branch
from
December 4, 2026 15:33
8bf8077 to
820421e
Compare
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.
STACKED on #326 (versioned client JSON,
validate --file,associate,routes --json) — this branch is based onfeat/client-json-contracts; its diff againstmainincludes #326 until that merges.🔴 MUST NOT MERGE before the devrc PR that ports devrc off cairn's Python client has merged AND shipped (home-manager switch on both hosts). This PR deletes
packages.cairn/apps.cairn; any consumer still naming#cairngets an evaluation error.What
Phase 5 of
claudedocs/plan-cairn-v1-event-log.md(P8): the Python implementation is deleted and CI stays green on the Go one.cairnPython client,lib/,server/server.py+Dockerfile+build-push.sh+verify-byte-identity.sh,tests/parity/,tests/dualrun/, every Python test whose subject was those, the generators that recorded from them, flake outputspackages.cairn,apps.cairn,packages.server-image,checks.client-resolves-its-lib, theparity/dualrunCI jobs, and the Python leg ofpublish-image.yml(cairn-storegets no new tags;cairn-store-gois unchanged).test_flake_image_matches_dockerfile.py's live half →tests/test_server_deployment_defaults.py; theseed.shtests →tests/test_seed.py; the CPythonre.Isweep →tests/test_cpython_re_folding_runes.py; env-alias / tag-vocabulary / nuance-ceiling / citation-token pins now compare Go against literals.test_go_client_ledgers.py+testlib/capability_ledgercomparecairn -verbs/cairn-server -routeswith the capability ledger; the flake'swant-*lists are folded and pinned to the same ledger.ec1b756, pinned by digest, never re-recorded from Go): the 128 conformance goldens with norecorded_from, the reader fixture, the citation-id fixture (option (a)), the marker-sweep fixture.tests/conformance/README.mddocuments the freeze and the one way to add a future golden (run_go.sh record <id>→recorded_from: cmd/cairn-server, hand-reviewed). Thego_onlymark is folded.Evidence (local, scoped)
tests/conformance/run_go.sh: 211 PASS / 0 FAIL / 5 SKIP; with one Go-recorded golden broken, exactlyFAIL sessions-authorized(now a CI step).tests/memevalsynthetic world on the Go client: 18/18.publish_workflow_mutants.py:30 mutants, 0 problem(s);routing_mutants.pynew Go positive control KILLED.leakscanclean with both controls; touched pytest files and touched Go packages green.FLOORre-derived:python3 -m pytest tests -p no:randomly --collect-only -q→ 881.🤖 Generated with Claude Code