Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
617 changes: 108 additions & 509 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

498 changes: 131 additions & 367 deletions .github/workflows/publish-image.yml

Large diffs are not rendered by default.

396 changes: 105 additions & 291 deletions AGENTS.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ rounds of review found the opposite shape here and both were right. A change's
reads; its *record* — the drafts retracted, the gate that did not license it,
the precondition that closed first — belongs beside the thing it governs. When
`0587ace` evicted that record from `AGENTS.md` its message said
`tests/parity/README.md` residual 7 already held every clause, so "no second
copy of the record now exists to keep true". Restating either one here would
`tests/parity/README.md` (since deleted with the Python oracle) residual 7 already held every
clause, so "no second copy of the record now exists to keep true". Restating either one here would
recreate exactly that.

🔴 **Entries are anchored to a PR and a commit sha, never to a date.** A date
Expand All @@ -29,6 +29,7 @@ claim to cover them; `git log` and the PR history are the record for those.

| change | anchor | what you may have to do | why it was taken |
|---|---|---|---|
| **The Python client and pod are retired: `packages.cairn`, `apps.cairn` and `packages.server-image` are gone, and the `cairn-store` ghcr package gets no new tags.** The Go client (`default`/`cairn-go`) and the Go pod (`server-image-go` → `cairn-store-go`) are unchanged. `cairn -verbs`/`-exit-codes` are documented public surface. The `SUBSYSTEM_STORE_*`/`CAIRN_SUPABASE_*` aliases still work; their deprecation warning now names a CHANGELOG-announced removal instead of this retirement. | [#327](https://github.com/ZacxDev/cairn/pull/327) → `<UNFILLED>` | replace `#cairn` / `cairn.packages.${system}.cairn` with `default`; nothing else — § [*The Python client and pod are retired*](README.md#the-python-client-and-pod-are-retired--there-is-no-cairn-any-more) | Phase 5 of `claudedocs/plan-cairn-v1-event-log.md`: every curated-layer change would otherwise be written twice; §6.3 records each retired item's disposition |
| **Versioned JSON output: `cairn recall --json`, `cairn routes --json`, and new verbs `cairn associate --scope S --paths-from F` (`--json`, `--min-paths N`), `cairn refs` (ref collisions, by the reader's resolver; `--all-scopes` exits 11 on a cached scope with no route and prints a PARTIAL answer at 3 when an instance's cache is unreadable), `cairn parse --file F --json` (the reader's parse of an entry or a bullet body) and `cairn fold --file F --json` (the reader's ref fold of a JSON array of strings); `cairn validate --file F [--ref R]` checks one draft offline with the body predicate `create`/`put` apply and the store's 1 MiB body cap (with `--ref`, under the filename `create --ref R` would use).** Shapes carry `schema: 1` and are documented in `README.md` → *Machine-readable output*. | PR → `<UNFILLED>` | Nothing; every existing invocation prints what it did. A consumer parsing the new documents should refuse a `schema` it does not know. | The Python client's last consumers parsed its in-process report objects; these give the Go client the same answers as a stable contract, so the Python client can be retired (v1 plan Phase 5). |
| **`cairn log list\|search` cover the CURRENT REPO's records by default, PER RECORD** — a search keeps the hits whose own record ran in a worktree of the repo `--repo` names (default: the working directory); a list, the sessions with any record there (showing that directory and its first prompt). New **`--all-repos`** widens to every record; `--cwd PREFIX` replaces the default and is now per record too; the two together, or neither outside a git repo, are exit 2. stderr names what was covered (`cairn: sessions=…`). The scoped request is a NEW `POST /client/v1/log/{list,search}` with a `cwd_under` form. **Index migration 5** adds `transcript_units.cwd` and `transcript_session_cwds` and zeroes every index cursor. `log query` is unchanged and unscoped | [#329](https://github.com/ZacxDev/cairn/pull/329) → `<UNFILLED>` | ⚠ **Deploy `cairn-ui` first**: migration 5 runs on start and the backfill re-reads every stream in place (rate-limited; scoped results grow as it goes, `--all-repos` is unaffected); then pin the client. An older listener answers the scoped POST 405, which exits 3 with nothing printed. ⚠ **A script that searched every repo** must add `--all-repos`; one run outside a git repo must add `--all-repos` or `--cwd`; one using `--cwd` now gets per-record hits. [`README.md`](README.md) § *`cairn log` covers the current repo* | `--repo` only picked the instance, and the index kept ONE cwd per session (its first), so a search printed other repos' (and clients') records into the caller's own captured transcript: [`internal/client/log.go`](internal/client/log.go)'s header |
| **`cairn-capture` no longer HOLDS a session for a scope the routing table does not name** (on a host with more than one instance): it ships to the DEFAULT instance OWNER-ONLY (`*` declared), as a `*` session does. A session already bound to the DEFAULT instance is no longer withdrawn for it; one bound to ANOTHER instance is withdrawn from there and re-shipped whole to the default, owner-only — the `*` path (before, it was withdrawn and HELD). A scope the table EXPLICITLY routes to an instance this host does not configure is still held — the only routing hold left — and its `held_reason` now says so (`scope X is routed by the table to instance Y, which this host does not configure`). New mode **`--reevaluate-held [-apply]`** recovers the holds the old rule made | [#330](https://github.com/ZacxDev/cairn/pull/330) → `<UNFILLED>` | ⚠ **Sessions previously held stay held** until you run `--reevaluate-held` (read-only listing), then, with `-host`/`-worker`/`-capture-token-file`, `-apply`: it clears only holds whose destination answered the position probe; a 410 is listed `needs-server-restore` and left held — restore it by the server journal. The `routed back to …, which deleted this session's transcript` holds are never touched. ⚠ **If you match `held_reason` text**, the unconfigured-alias hold's wording changed. [`internal/capture/README.md`](internal/capture/README.md) step 3 and § *`--reevaluate-held`* | `scopeuse` reads header-shaped text anywhere in a transcript (test output, a source read, assistant prose) as a scope read, so a fixture name in a grep result held — and withdrew — whole sessions: measured on a two-instance host, 15 held this way, 14 on fixture names. An unnamed scope is a claim about no instance, so there is no leak to stop: [`internal/capture/route.go`](internal/capture/route.go)'s `Decide` |
Expand Down
Loading
Loading