Skip to content

v0.26.0 — Project records and a governed core

Latest

Choose a tag to compare

@Paul-Kyle Paul-Kyle released this 04 Dec 22:15

[0.26.0] — 2026-12-03

Compatibility: upgrade the palinode API before, or together with, its clients: the new core rules run in the API, and the new commands need it. A save that sets core: true is now checked by the API, so the check applies to every client of this API, older ones included. A body over context.core_gist_max_chars (1500), a ProjectSnapshot that is not a project record or project index, a daily/ note, a session-end-* note, or a source naming a test, probe or smoke run is refused with HTTP 400, and nothing is written. A re-save or append of an existing core memory is checked the same way even when it does not mention core, so a core memory an earlier release accepted (a dated snapshot, a long body) can no longer be updated while it stays core: re-save it with core=false, or shorten it. Older CLIs and MCP servers show the refusal's reason; an older OpenClaw plugin shows only 400 Bad Request, and the reason appears with this release's plugin. A core save with no expires_at, including a re-save of an existing core memory that has none, is now given one 180 days out (context.core_default_ttl_days; 0 turns this off), and older clients do not say so. An expired core memory is not injected at session start, as before: the API logs it once and the weekly core review proposes demoting it, but the session gets no other notice, so a core memory saved under this release drops out of every session after 180 days unless it is re-saved or given a later expires_at. Core memories already on disk get no expiry until they are re-saved. Against an API older than this release, the new client features do nothing useful: palinode project init and palinode_project_init fail with 404 Not Found; palinode review --core, and palinode_review with core: true, run the ordinary project review instead and exit 0; --set-type is ignored and the save is refused as before; and core saves are not checked at all. With CLAUDE_CONFIG_DIR set, palinode hooks update, palinode doctor and palinode init --hook use $CLAUDE_CONFIG_DIR/settings.json instead of ~/.claude/settings.json. A hook registered only in ~/.claude/settings.json is then not refreshed, and doctor reports no palinode hooks, or, when the profile has its own settings file, that the two files differ; run palinode hooks update once without the variable as well. The session-start digest changes shape: /context/prime adds core_review (file, summary) when the newest core review proposes something; a core project record is listed under core_memories and no longer under recent_snapshots; and project records that are not core, status files and history logs leave recent_snapshots. Consolidation of a store with no project records is unchanged. A projects/<slug>.md that is a project record is no longer compacted into, and projects the capture controls exclude move from skipped_no_target_projects to skipped_excluded_projects in the run result. python -m palinode.consolidation.cron now exits 2 and runs nothing on an unknown, abbreviated or malformed flag, where it used to ignore the flag and run a pass (an abbreviated --night ran the weekly pass), so check your cron lines. palinode init --hook run from $HOME no longer adds permissions.allow rules to your user settings, and it does not remove the ones an earlier run added: delete them by hand if you don't want them in every project. Hook registrations that an earlier init --hook from $HOME wrote in the per-project form, "${CLAUDE_PROJECT_DIR}"/.claude/hooks/…, are rewritten to the user form by palinode hooks update, which keeps a backup. The new /wrap bodies, light and heavy, reach an existing project only through palinode init --force. The session-start hook shows as stale until refreshed, because its version stamp moves from 0.24.0 to 0.26.0, and an older copy does not show the core review pointer. Upgrading: run palinode hooks update; add the weekly core review to cron (docs/OPERATIONS.md § Core review): 0 13 * * 0 cd /path/to/palinode && PALINODE_DIR=~/palinode venv/bin/python -m palinode.core.core_review >> logs/core-review.log 2>&1; and palinode init --force (with --wrap-policy heavy for the heavy variant) installs the new /wrap body, and also replaces the other files init manages, so read its --dry-run output first.

Project records and a governed core. A project can have a record, a small pointer that may be core, made by palinode project init together with a status layer that consolidation compacts into; session-end keeps the record's pointer current. Core memory gets rules: the API checks every save that sets core: true (gist size, kind, and an expiry stamped 180 days out), and a weekly advisory review proposes what to demote, trim or expire. Also: /wrap records work still running, the consolidation cron entry point refuses flags it does not know, and palinode hooks update repairs a home install an earlier release wrote in the project form.

Added

  • palinode project init <slug> creates a project record and its status file. projects/<slug>.md is the record: a ProjectSnapshot marked record_kind: project-record and update_policy: replace, from a template with headings for what the project is, its repo and remotes, where it runs, its rules, and a pointer to its current state. projects/<slug>-status.md is the status layer that session-end appends to and nightly consolidation compacts into. It starts with one fact-stamped line, so the next nightly pass can address it. Neither file is marked core. A file that already exists is reported and left untouched, so a second run changes nothing. Each file written is git-committed. The slug must be lowercase letters, digits and single hyphens. Also on MCP (palinode_project_init) and REST (POST /project/init). When consolidation skips a project because it has no document to compact into, the log line now names this command. A project record is the project's pointer, not its state: nightly and weekly consolidation never compact into it (a project with a record and no status file is skipped, with that log line), while a legacy projects/<slug>.md with no record_kind is still compacted into, so existing stores are unaffected; palinode doctor's fact-marker check applies the same rule. A record that isn't core stays out of the startup digest's Recent snapshots, so it never takes a dated note's slot. A status layer always keeps a live fact: the executor refuses an ARCHIVE, ARCHIVE_BEFORE or RETRACT that would leave a layer: status document with none, counts it under protected_rejected and logs the file and fact ids, and the rest of the batch still applies. Re-running palinode project init <slug> on a status file with no live fact appends a fresh dated seed line above its Consolidation Log and reports state: "reseeded"; a file with a live fact, or with untagged bullets that bootstrap-ids should tag, is reported exists and left alone.
  • Session-end keeps a project record's pointer current. When a session-end names a project whose projects/<slug>.md is a project record, it sets two fields in the record's frontmatter: last_activity (the session's timestamp) and latest_snapshot (the session note just written). Every other field and the whole body are left as they are, and the change lands in the session-end's own commit. Without a record nothing is written, and no record is ever created. The session-end response, dry runs included, names the record as record_file.
  • A path save can write type into an untyped legacy file, on an explicit opt-in. set_type (--set-type on the CLI; also on REST and the OpenClaw plugin) lets a path save to an existing file that has no type write the type into it. The file's other frontmatter is kept. Without the opt-in the save is refused as before, and the refusal now names the opt-in. A file that already has a type keeps it, and a daily note is never typed. The MCP tool does not advertise the flag yet, because its save schema is at its size budget.
  • A core save with no expiry is given one, and lint shows who licensed each core memory. A save that sets core: true without expires_at (or ttl) in its metadata gets expires_at stamped context.core_default_ttl_days out, 180 by default (0 turns the stamp off). The response names it as core_expires_at_stamped, and the MCP, CLI and OpenClaw plugin receipts say so. A supplied expires_at is kept. palinode lint now lists each core memory's authority, or "none recorded", as core_authority. Authority is shown, never enforced.
  • The OpenClaw plugin has a palinode_project_init tool. It calls the same POST /project/init endpoint, and passes the server's refusal text on when a slug is rejected.
  • A weekly, advisory review of the core set. python -m palinode.core.core_review reviews every core: true memory in the store, wherever it lives (archive/ excepted), not only what consolidation reads. Its signals are age since last_updated, last access when the index recorded one, a missing or past expires_at, a body over context.core_gist_max_chars, a kind core admission refuses, a retired record still flagged core, and a contradiction from a newer record. It proposes one op per memory, with its reason: PROPOSE_SUPERSEDE, PROPOSE_DEMOTE, PROPOSE_TRIM_TO_GIST, PROPOSE_SET_EXPIRY (with the date core_default_ttl_days gives), or KEEP. Nothing is applied and no memory file changes. The run writes logs/core-review-<date>.md; logs/ is never memory, so the report is not indexed, consolidated, committed or injected as core. --dry-run prints it and writes nothing, and an unknown flag is refused. It needs no model; docs/OPERATIONS.md § Core review has the weekly cron line. On demand: palinode review --core, palinode_review with core: true, and POST /review with {"core": true}. The review and core admission share one set of rules, so a memory admission would refuse is one the review proposes to demote or trim. PROGRAM.md's "Review core set monthly" is now "Review core set weekly" and describes what runs.
  • The session-start digest points at the newest core review. When the newest logs/core-review-*.md proposes anything, /context/prime carries a core_review row (file, summary), rendered as a ### Core review line by palinode_session_init and palinode prime. The SessionStart hook injects it above the core memories, so the size cap cannot cut it off, and injects it even when no core memory is in scope. The hook is now stamped 0.26.0; palinode hooks update installs it.

Changed

  • A save that sets core: true is checked before it is written. The check is in the save path every surface shares, so REST, MCP, the CLI and the OpenClaw plugin all apply it. A re-save or append that carries an existing core: true forward is checked the same way. A body over context.core_gist_max_chars (1500) is refused, not truncated, with the lint remediation core = gist + pointer; move detail to the full file, and nothing is written. Save and lint measure the body the same way. Core is also refused on a ProjectSnapshot, a daily/ note, a session-end record (session-end-*), and a save whose source contains the word test, tests, pytest, probe or smoke. A project record or a project index (record_kind: project-record or project-index) is a ProjectSnapshot meant to be core, and it is admitted under the same rules; any other ProjectSnapshot is refused. Insight is admitted. A save that sets core: false is never refused by these rules. Each refusal names its rule and says to pass core=false. The MCP server instructions now name the three kinds that belong in core: who the user is and how to work with them; an active project, as a gist plus a pointer; a standing rule that changes agent behaviour. The core parameter's description points to them. The OpenClaw plugin's palinode_save now passes the server's refusal text on instead of a bare status code.
  • /wrap records work still running, and no longer says it is safe to /clear. Quitting Claude Code ends background shells and subagents, and the docs don't say what /clear does to running work, so the old closing line ✓ session saved + pushed — safe to /clear now. promised more than anyone knows. The light /wrap gains a Step 0a, and the heavy /wrap a Step 0, that only report: they list running or interrupted local work and work on other machines, each with how to recover it (an agent ID plus the session ID, or a shell's full command), and put them in the session_end blockers as RUNNING LOCALLY, RUNNING ELSEWHERE or INTERRUPTED entries. The step also judges whether the inventory is complete (after a compaction or a restart it is not), and nothing is cleaned up while it may be incomplete. The closing line is now ✓ session saved + pushed. (heavy: ✓ heavy wrap complete.), followed when they apply by a count of local work that ends on quit, a separate count of work elsewhere, and a warning that the inventory may be incomplete. Nothing is running locally. may be added only when neither the count nor the warning applies. The archive step also writes from state that can be checked, and treats an agent's "done" as a claim to corroborate against an artifact such as a PR's merge state, command output or a file. Upgrading leaves an installed .claude/commands/wrap.md or /wrap skill as it is. palinode init --force (with --wrap-policy heavy for the heavy variant) installs the new body, and also replaces the other files init manages, so read its --dry-run output first.
  • The heavy /wrap no longer merges a PR that running work still holds. Its Step 0 inventory only reported, and Step 1 merged regardless, so a PR could be squash-merged while an agent or job was still pushing to its branch. Commits pushed after that were lost or stranded on an orphan branch, and the wrap note still said the work had landed. Step 1 now checks each PR against the inventory before merging it. A PR is skipped when its head branch, or the worktree that branch is checked out in, was recorded for an inventory entry, and every PR is skipped while the inventory may be incomplete. A skipped PR goes in the session_end blockers as a NOT MERGED entry with how to recover it, and the closing lines name it and say why. A skip is not a halt, and it replaces only the merge: the stop on multiple open PRs and the halt on a merge blocker are unchanged. The light /wrap has no merge step and is unchanged. Upgrading leaves an installed heavy /wrap as it is; palinode init --wrap-policy heavy --force installs the new body, and also replaces the other files init manages, so read its --dry-run output first.
  • Building palinode no longer warns that its data folders are ignored packages. setuptools treated palinode/api/ui/static, palinode/api/ui/templates and palinode/hooks/scripts as would-be namespace packages. include-package-data is now off, so package data comes only from the explicit [tool.setuptools.package-data] lists, which now also name py.typed. The wheel's contents are unchanged: the same 265 files, built directly or from the sdist. A test checks that every data file under palinode/ is listed, so a new one can't be left out of the wheel.
  • palinode init --hook no longer adds permission rules to your user settings. In a project, init --hook adds three permissions.allow rules to .claude/settings.json (Bash(git worktree remove:*), Bash(git worktree prune:*), Bash(git worktree unlock:*)), so an agent can clean up its own stale worktrees without a prompt. Run from your home directory, it used to add them to the user settings file ($CLAUDE_CONFIG_DIR/settings.json when set, else ~/.claude/settings.json), where an allow rule applies to every project. Now it registers the hooks there and leaves that file's permissions as they are, and prints one line naming the rules it skipped; --dry-run prints the same line. A project install is unchanged. Rules an earlier run already added to your user settings are not removed: delete them from permissions.allow by hand if you don't want them in every project.

Fixed

  • Status and history logs no longer pass as snapshots. The session-start digest's Recent snapshots no longer lists layer: status files, category: history files, or projects/*-status.md / *-history.md, so a consolidation log cannot take a dated note's slot, and palinode migrate frontmatter withholds type from those same logs instead of filling it from their directory.

  • Palinode's hook tools use the Claude Code user settings file your sessions read, and palinode init --hook from your home directory writes the user form. Claude Code reads user settings from $CLAUDE_CONFIG_DIR/settings.json when that variable is set, and from ~/.claude/settings.json otherwise. Launchers that set CLAUDE_CONFIG_DIR point it at a per-profile directory. palinode hooks update, palinode init --hook and palinode doctor used only ~/.claude/settings.json, so a hook they added never reached a profile session. They now use the file Claude Code reads. The user-level scripts stay in ~/.claude/hooks/, because the registered command names them as ~/.claude/hooks/<script>, so one copy serves every profile. With the variable set, doctor's hooks_current warns when the two settings files register different palinode hooks, and names both files. Run from $HOME, init --hook used to write the per-project form, "${CLAUDE_PROJECT_DIR}"/.claude/hooks/…, into your user settings. That form fails in every other project. It now writes the documented user form, ~/.claude/hooks/…, which runs everywhere. --codex-hook, --cursor-hooks and --agy-hooks refuse to run from $HOME and point to the user-level install in docs/DEPLOYMENT-GUIDE.md, since none of them has a form that runs in every project. A user-level Codex install found in ~/.codex/hooks/ no longer turns a plain init into a Codex install.

  • A project's own core record now reaches that project's sessions. A core: true ProjectSnapshot satisfies both the core and the snapshot filters, and the startup digest kept it under Recent snapshots only. The Claude Code session-start hook and the OpenClaw plugin render only Core memories, so the record never reached a session in its own project. It now renders once, under Core memories, and no longer takes a dated snapshot's place in Recent snapshots.

  • Consolidation reports projects the capture controls exclude as excluded. They are listed as skipped_excluded_projects instead of under skipped_no_target_projects, so a project you excluded is no longer reported as missing a target. Their notes are still held and selected again on the next run.

  • The consolidation cron entry point rejects a flag it does not know, and --dry-run there is a real preview. python -m palinode.consolidation.cron read its arguments by hand and ignored anything it did not recognise, so --nightly --days 7 --dry-run ran the real nightly pass: it committed to the store and advanced the watermarks. The entry point now parses its flags properly. An unknown flag, an abbreviated one, or --days without a whole number exits 2 with the usage and runs nothing, and --help prints the usage. --dry-run is now accepted and passed to the same preview palinode consolidate --dry-run runs: the model is asked for its proposals and the summary is logged, and no memory file, commit, watermark, gate clock or run-history entry is written. The activity gate applies to a preview as it does to a pass, so add --ignore-gate to preview one that is not yet due. Cron lines using --nightly, --days N and --ignore-gate behave as before; the attached form --days=N, which used to be ignored, is now read. palinode doctor's consolidation_schedule_effective check reads a cron line's --days the same way, and says that a line with an unreadable --days no longer runs a pass, where it used to say the configured value governed.

  • palinode hooks update repairs a home install an earlier release wrote in the project form. Before this release, palinode init --hook run from your home directory registered all four Claude Code hooks in your user settings in the project form, "${CLAUDE_PROJECT_DIR}"/.claude/hooks/…. In the user settings file that runs each project's copy of the script, which is usually absent, so the hooks did nothing, and no command repaired it. In the user settings file ($CLAUDE_CONFIG_DIR/settings.json when that is set, else ~/.claude/settings.json) that form now counts as one palinode wrote: palinode hooks update and palinode init --hook from your home directory rewrite it to the user form, ~/.claude/hooks/…, without --force, keeping a backup of the file, and palinode doctor's hooks_current check warns until they do. A changed timeout is kept, and the scripts are checked in ~/.claude/hooks/, where the new form runs them, so hooks update run from a project no longer installs them into that project. A project's own .claude/settings.json keeps the project form, and a registration in a form palinode never wrote is still left alone.

Removed

Security

OpenClaw: the 0.26.0 plugin archive is attached. The plugin test suite and isolated package import passed; no live OpenClaw gateway check was run.

Full changelog for v0.26.0