Repository navigation
[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>.mdis the record: aProjectSnapshotmarkedrecord_kind: project-recordandupdate_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.mdis 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 legacyprojects/<slug>.mdwith norecord_kindis 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 alayer: statusdocument with none, counts it underprotected_rejectedand logs the file and fact ids, and the rest of the batch still applies. Re-runningpalinode project init <slug>on a status file with no live fact appends a fresh dated seed line above its Consolidation Log and reportsstate: "reseeded"; a file with a live fact, or with untagged bullets thatbootstrap-idsshould tag, is reportedexistsand left alone.- Session-end keeps a project record's pointer current. When a session-end names a project whose
projects/<slug>.mdis a project record, it sets two fields in the record's frontmatter:last_activity(the session's timestamp) andlatest_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 asrecord_file. - A path save can write
typeinto an untyped legacy file, on an explicit opt-in.set_type(--set-typeon the CLI; also on REST and the OpenClaw plugin) lets a path save to an existing file that has notypewrite 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: truewithoutexpires_at(orttl) in its metadata getsexpires_atstampedcontext.core_default_ttl_daysout, 180 by default (0turns the stamp off). The response names it ascore_expires_at_stamped, and the MCP, CLI and OpenClaw plugin receipts say so. A suppliedexpires_atis kept.palinode lintnow lists each core memory'sauthority, or "none recorded", ascore_authority. Authority is shown, never enforced. - The OpenClaw plugin has a
palinode_project_inittool. It calls the samePOST /project/initendpoint, 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_reviewreviews everycore: truememory in the store, wherever it lives (archive/excepted), not only what consolidation reads. Its signals are age sincelast_updated, last access when the index recorded one, a missing or pastexpires_at, a body overcontext.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 datecore_default_ttl_daysgives), orKEEP. Nothing is applied and no memory file changes. The run writeslogs/core-review-<date>.md;logs/is never memory, so the report is not indexed, consolidated, committed or injected as core.--dry-runprints 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_reviewwithcore: true, andPOST /reviewwith{"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-*.mdproposes anything,/context/primecarries acore_reviewrow (file,summary), rendered as a### Core reviewline bypalinode_session_initandpalinode 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 updateinstalls it.
Changed
- A save that sets
core: trueis 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 existingcore: trueforward is checked the same way. A body overcontext.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 aProjectSnapshot, adaily/note, a session-end record (session-end-*), and a save whosesourcecontains the wordtest,tests,pytest,probeorsmoke. A project record or a project index (record_kind: project-recordorproject-index) is aProjectSnapshotmeant to be core, and it is admitted under the same rules; any otherProjectSnapshotis refused.Insightis admitted. A save that setscore: falseis never refused by these rules. Each refusal names its rule and says to passcore=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. Thecoreparameter's description points to them. The OpenClaw plugin'spalinode_savenow passes the server's refusal text on instead of a bare status code. /wraprecords 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/cleardoes to running work, so the old closing line✓ session saved + pushed — safe to /clear now.promised more than anyone knows. The light/wrapgains a Step 0a, and the heavy/wrapa 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_endblockersasRUNNING LOCALLY,RUNNING ELSEWHEREorINTERRUPTEDentries. 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.mdor/wrapskill as it is.palinode init --force(with--wrap-policy heavyfor the heavy variant) installs the new body, and also replaces the other files init manages, so read its--dry-runoutput first.- The heavy
/wrapno 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_endblockersas aNOT MERGEDentry 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/wraphas no merge step and is unchanged. Upgrading leaves an installed heavy/wrapas it is;palinode init --wrap-policy heavy --forceinstalls the new body, and also replaces the other files init manages, so read its--dry-runoutput first. - Building palinode no longer warns that its data folders are ignored packages. setuptools treated
palinode/api/ui/static,palinode/api/ui/templatesandpalinode/hooks/scriptsas would-be namespace packages.include-package-datais now off, so package data comes only from the explicit[tool.setuptools.package-data]lists, which now also namepy.typed. The wheel's contents are unchanged: the same 265 files, built directly or from the sdist. A test checks that every data file underpalinode/is listed, so a new one can't be left out of the wheel. palinode init --hookno longer adds permission rules to your user settings. In a project,init --hookadds threepermissions.allowrules 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.jsonwhen 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-runprints the same line. A project install is unchanged. Rules an earlier run already added to your user settings are not removed: delete them frompermissions.allowby 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: statusfiles,category: historyfiles, orprojects/*-status.md/*-history.md, so a consolidation log cannot take a dated note's slot, andpalinode migrate frontmatterwithholdstypefrom 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 --hookfrom your home directory writes the user form. Claude Code reads user settings from$CLAUDE_CONFIG_DIR/settings.jsonwhen that variable is set, and from~/.claude/settings.jsonotherwise. Launchers that setCLAUDE_CONFIG_DIRpoint it at a per-profile directory.palinode hooks update,palinode init --hookandpalinode doctorused 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'shooks_currentwarns when the two settings files register different palinode hooks, and names both files. Run from$HOME,init --hookused 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-hooksand--agy-hooksrefuse to run from$HOMEand point to the user-level install indocs/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 plaininitinto a Codex install. -
A project's own core record now reaches that project's sessions. A
core: trueProjectSnapshot 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_projectsinstead of underskipped_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-runthere is a real preview.python -m palinode.consolidation.cronread its arguments by hand and ignored anything it did not recognise, so--nightly --days 7 --dry-runran 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--dayswithout a whole number exits 2 with the usage and runs nothing, and--helpprints the usage.--dry-runis now accepted and passed to the same previewpalinode consolidate --dry-runruns: 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-gateto preview one that is not yet due. Cron lines using--nightly,--days Nand--ignore-gatebehave as before; the attached form--days=N, which used to be ignored, is now read.palinode doctor'sconsolidation_schedule_effectivecheck reads a cron line's--daysthe same way, and says that a line with an unreadable--daysno longer runs a pass, where it used to say the configured value governed. -
palinode hooks updaterepairs a home install an earlier release wrote in the project form. Before this release,palinode init --hookrun 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.jsonwhen that is set, else~/.claude/settings.json) that form now counts as one palinode wrote:palinode hooks updateandpalinode init --hookfrom your home directory rewrite it to the user form,~/.claude/hooks/…, without--force, keeping a backup of the file, andpalinode doctor'shooks_currentcheck warns until they do. A changed timeout is kept, and the scripts are checked in~/.claude/hooks/, where the new form runs them, sohooks updaterun from a project no longer installs them into that project. A project's own.claude/settings.jsonkeeps 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.