From c16e6b8a51636435db356f37ad6eb975b5156b93 Mon Sep 17 00:00:00 2001 From: 0thernet Date: Fri, 27 Nov 2026 13:30:03 -0500 Subject: [PATCH] local-efficiency 0.11.0: retire session-transcripts The owner retired session transcript sync. Removes the session-transcripts skill with its catalog entry, routing fixtures, provenance, skills.sh grouping and README counts. disk-reclaim drops its transcript cross-references and now always runs the legacy `oh reclaim` pass with `--no-transcripts`. Existing transcripts branches and local transcript files are not touched. Co-Authored-By: Claude Opus 5.5 --- .github/plugin/marketplace.json | 2 +- CHANGELOG.md | 10 ++ README.md | 8 +- catalog/catalog.json | 24 +--- catalog/provenance.json | 7 -- catalog/routing-fixtures.json | 54 +-------- .../.codex-plugin/plugin.json | 2 +- .../.cursor-plugin/plugin.json | 2 +- plugins/local-efficiency/README.md | 7 +- plugins/local-efficiency/plugin.json | 2 +- .../skills/disk-reclaim/SKILL.md | 20 ++-- .../references/targets-and-boundaries.md | 6 +- .../skills/session-transcripts/SKILL.md | 103 ------------------ .../session-transcripts/agents/openai.yaml | 6 - .../references/mapping-and-sanitization.md | 58 ---------- skills.sh.json | 3 +- 16 files changed, 40 insertions(+), 274 deletions(-) delete mode 100644 plugins/local-efficiency/skills/session-transcripts/SKILL.md delete mode 100644 plugins/local-efficiency/skills/session-transcripts/agents/openai.yaml delete mode 100644 plugins/local-efficiency/skills/session-transcripts/references/mapping-and-sanitization.md diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json index d6e723f..ba2baf5 100644 --- a/.github/plugin/marketplace.json +++ b/.github/plugin/marketplace.json @@ -40,7 +40,7 @@ "name": "local-efficiency", "source": "plugins/local-efficiency", "description": "Managed Codex and Claude autonomy, local scheduling, CI isolation, and guarded maintenance for Hraness repository work.", - "version": "0.10.0", + "version": "0.11.0", "license": "MIT" } ] diff --git a/CHANGELOG.md b/CHANGELOG.md index 5060ad3..78938fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## local-efficiency 0.11.0 - 2026-11-27 + +- The `session-transcripts` skill is removed. The owner retired session + transcript sync; nothing in the pack syncs, pushes or deletes agent + session transcripts any more. Transcripts already pushed to `transcripts` + branches and local transcript files are left as they are. +- `disk-reclaim` no longer mentions transcript sync. The legacy `oh reclaim` + pass is always run with `--no-transcripts`, and `oh transcripts` is not + run. + ## local-efficiency 0.10.0 - 2026-11-27 - Two new skills move here from the retired Diocles repository: diff --git a/README.md b/README.md index 3b648f9..e7c0008 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,17 @@ [![skills.sh](https://skills.sh/b/hraness/skillpack)](https://skills.sh/hraness/skillpack) -Hraness Agent Skills is a public collection of 36 workflows for AI coding +Hraness Agent Skills is a public collection of 35 workflows for AI coding agents, in five packs. The four portable packs contain 33 workflows; -`local-efficiency` adds three for Hraness development machines. +`local-efficiency` adds two for Hraness development machines. Eleven cover work in one repository: mapping it, explaining how code behaves, assessing a change, writing tests, measuring performance, updating docs, and refactoring without changing behavior. Two plan multi-phase work and carry it out with independent review of each phase. Nineteen come from Rob Cheung’s Semantic Algos: 16 named reasoning methods and three skills that compile, run, and present Sem computations. One manages -installed copies of this pack. Three manage local scheduling, disk reclaim -and session transcripts on Hraness development machines. Every skill’s source is in this repository. Install only the packs you need, in the agent host you already use. +installed copies of this pack. Two manage local scheduling and disk reclaim +on Hraness development machines. Every skill’s source is in this repository. Install only the packs you need, in the agent host you already use. You don’t need a Hraness account, app, or service to use these skills. diff --git a/catalog/catalog.json b/catalog/catalog.json index 092ad1f..1c5c58c 100644 --- a/catalog/catalog.json +++ b/catalog/catalog.json @@ -532,8 +532,7 @@ ], "adjacent": [ "skillpack-admin", - "disk-reclaim", - "session-transcripts" + "disk-reclaim" ] }, { @@ -546,27 +545,10 @@ ], "negative": [ "remove one approved Git worktree by exact path", - "change transcript routing or redaction rules" + "sync or delete agent session transcripts" ], "adjacent": [ - "local-efficiency", - "session-transcripts" - ] - }, - { - "name": "session-transcripts", - "plugin": "local-efficiency", - "owner": "Persisting, auditing, and reclaiming Claude Code and Codex session transcripts on private orphan branches.", - "positive": [ - "sync agent session transcripts to their private repositories", - "audit where session transcripts are stored and which can be reclaimed" - ], - "negative": [ - "free disk space from build output and package caches", - "summarize what happened in one agent session" - ], - "adjacent": [ - "disk-reclaim" + "local-efficiency" ] } ] diff --git a/catalog/provenance.json b/catalog/provenance.json index 5360550..612a49f 100644 --- a/catalog/provenance.json +++ b/catalog/provenance.json @@ -344,13 +344,6 @@ "localPaths": [ "plugins/local-efficiency/skills/disk-reclaim" ] - }, - { - "name": "session-transcripts", - "classification": "original", - "localPaths": [ - "plugins/local-efficiency/skills/session-transcripts" - ] } ] } diff --git a/catalog/routing-fixtures.json b/catalog/routing-fixtures.json index 123cbe3..460e079 100644 --- a/catalog/routing-fixtures.json +++ b/catalog/routing-fixtures.json @@ -809,34 +809,14 @@ { "id": "negative-disk-reclaim", "kind": "negative", - "prompt": "Push this Mac's idle Claude and Codex transcripts to their private repositories.", + "prompt": "Remove the finished worktree at ~/src/app-feature by its exact path.", "expected": [ - "session-transcripts" + "local-efficiency" ], "excluded": [ "disk-reclaim" ] }, - { - "id": "positive-session-transcripts", - "kind": "positive", - "prompt": "Dry-run transcript sync and show which repository each Claude and Codex session would go to.", - "expected": [ - "session-transcripts" - ], - "excluded": [] - }, - { - "id": "negative-session-transcripts", - "kind": "negative", - "prompt": "Clear stale node_modules and package caches to recover disk space.", - "expected": [ - "disk-reclaim" - ], - "excluded": [ - "session-transcripts" - ] - }, { "id": "pairwise-disk-reclaim-local-efficiency", "kind": "pairwise", @@ -851,36 +831,6 @@ "excluded": [ "local-efficiency" ] - }, - { - "id": "pairwise-disk-reclaim-session-transcripts", - "kind": "pairwise", - "prompt": "Reclaim local Claude transcripts older than two weeks once they are saved on their transcripts branches.", - "candidates": [ - "disk-reclaim", - "session-transcripts" - ], - "expected": [ - "session-transcripts" - ], - "excluded": [ - "disk-reclaim" - ] - }, - { - "id": "pairwise-local-efficiency-session-transcripts", - "kind": "pairwise", - "prompt": "Audit how many local agent session transcripts are still unsynced and which private repository each belongs to.", - "candidates": [ - "local-efficiency", - "session-transcripts" - ], - "expected": [ - "session-transcripts" - ], - "excluded": [ - "local-efficiency" - ] } ] } diff --git a/plugins/local-efficiency/.codex-plugin/plugin.json b/plugins/local-efficiency/.codex-plugin/plugin.json index 2a0b71d..36cfe0a 100644 --- a/plugins/local-efficiency/.codex-plugin/plugin.json +++ b/plugins/local-efficiency/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "local-efficiency", - "version": "0.10.0", + "version": "0.11.0", "description": "Managed Codex and Claude autonomy, local scheduling, CI isolation, and guarded maintenance for Hraness repository work.", "author": { "name": "Hraness", diff --git a/plugins/local-efficiency/.cursor-plugin/plugin.json b/plugins/local-efficiency/.cursor-plugin/plugin.json index 6136a9f..c26e77e 100644 --- a/plugins/local-efficiency/.cursor-plugin/plugin.json +++ b/plugins/local-efficiency/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "local-efficiency", - "version": "0.10.0", + "version": "0.11.0", "description": "Managed Codex and Claude autonomy, local scheduling, CI isolation, and guarded maintenance for Hraness repository work.", "author": { "name": "Hraness", diff --git a/plugins/local-efficiency/README.md b/plugins/local-efficiency/README.md index 9fcb5ae..1d0d437 100644 --- a/plugins/local-efficiency/README.md +++ b/plugins/local-efficiency/README.md @@ -1,9 +1,8 @@ # Local Efficiency -Local Efficiency is an optional pack of three Agent Skills for Hraness -development machines: `local-efficiency` with its bundled Bun scripts, -`disk-reclaim` for node disk cleanup with `oh-router reclaim`, and -`session-transcripts` for persisting agent session transcripts. The +Local Efficiency is an optional pack of two Agent Skills for Hraness +development machines: `local-efficiency` with its bundled Bun scripts and +`disk-reclaim` for node disk cleanup with `oh-router reclaim`. The `local-efficiency` skill installs and audits a managed baseline for Codex and Claude: approval and autonomy guidance, local capability-lane scheduling, validation receipts, throughput telemetry, worktree and dev-server diff --git a/plugins/local-efficiency/plugin.json b/plugins/local-efficiency/plugin.json index 7388913..609df20 100644 --- a/plugins/local-efficiency/plugin.json +++ b/plugins/local-efficiency/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "local-efficiency", - "version": "0.10.0", + "version": "0.11.0", "description": "Managed Codex and Claude autonomy, local scheduling, CI isolation, and guarded maintenance for Hraness repository work.", "author": { "name": "Hraness", diff --git a/plugins/local-efficiency/skills/disk-reclaim/SKILL.md b/plugins/local-efficiency/skills/disk-reclaim/SKILL.md index d8d5cd1..4ae1875 100644 --- a/plugins/local-efficiency/skills/disk-reclaim/SKILL.md +++ b/plugins/local-efficiency/skills/disk-reclaim/SKILL.md @@ -6,9 +6,8 @@ description: >- growth, or when previewing, running or tuning deterministic node cleanup with `oh-router reclaim`, plus the legacy `oh reclaim` pass for the targets the Router does not cover yet. Do not use for Git worktree removal by exact path - (use local-efficiency's worktree-cleanup), for transcript routing or - sanitization rules (use session-transcripts), or to delete backups, model - weights, credentials or source. + (use local-efficiency's worktree-cleanup), or to delete backups, model + weights, credentials, session transcripts or source. --- # Node disk reclaim @@ -19,12 +18,12 @@ legacy pass only for what the Router does not cover. | Tool | Covers | Schedule | | --- | --- | --- | | `oh-router reclaim` (OH Router, `ohd`) | Build output in linked Git worktrees under the scan roots (`~/src` by default), stale package-cache entries, and finished linked worktrees | `ohd` runs it every 15 minutes; it applies only under disk pressure | -| `oh reclaim` (legacy OH CLI) | Trash, finished Claude background jobs, `.local/tmp` scratch, dead Claude session scratchpads, temp-dir runtime caches, caches of uninstalled apps, Time Machine local snapshots, and session transcript sync | Manual only | +| `oh reclaim` (legacy OH CLI) | Trash, finished Claude background jobs, `.local/tmp` scratch, dead Claude session scratchpads, temp-dir runtime caches, caches of uninstalled apps, and Time Machine local snapshots | Manual only | Read [reclaim targets and strict exclusions](references/targets-and-boundaries.md) before adding a deletion target or approving a removal by hand. Never delete active worktrees, primary checkout build directories, `.local` release staging -directories, unverified transcripts, backups, model weights, or credentials +directories, session transcripts, backups, model weights, or credentials without the owner's explicit approval for that exact path. ## Router reclaim (`oh-router reclaim`) @@ -63,14 +62,15 @@ It stays installed and working for the targets above that the Router does not cover, but it no longer receives updates. Run it by hand only: ```sh -oh reclaim --json # dry run: status and transcript breakdown, deletes and pushes nothing -oh reclaim --apply --no-transcripts # disk targets only -oh reclaim --apply # disk targets plus transcript sync and >14d transcript reclaim +oh reclaim --json --no-transcripts # dry run: deletes nothing +oh reclaim --apply --no-transcripts # disk targets only oh reclaim --pressure-only --json # build-cache check used under disk pressure (add --apply to run it) ``` -- Always read the dry run first. `--apply` with transcripts also pushes to - GitHub; follow the session-transcripts skill before running it. +- Always read the dry run first, and always pass `--no-transcripts`. Session + transcript sync is retired: an `oh` release older than the retirement still + pushes transcripts and deletes idle local copies without that flag, and + newer releases accept it and do nothing. Never run `oh transcripts`. - Each full `--apply` writes a receipt to `/reclaim/status.json` and appends to `/reclaim/reclaim.log`. A full pass that ends below the low-space alert threshold (10% of the volume, 1 to 60 GiB) or reports diff --git a/plugins/local-efficiency/skills/disk-reclaim/references/targets-and-boundaries.md b/plugins/local-efficiency/skills/disk-reclaim/references/targets-and-boundaries.md index 3deae83..073b3c3 100644 --- a/plugins/local-efficiency/skills/disk-reclaim/references/targets-and-boundaries.md +++ b/plugins/local-efficiency/skills/disk-reclaim/references/targets-and-boundaries.md @@ -67,9 +67,9 @@ thresholds. 7. **Time Machine local snapshots (macOS):** unprivileged `tmutil thinlocalsnapshots` and `deletelocalsnapshots`; a warning when `sudo` is needed. -8. **Session transcripts and the Codex SQLite cache:** see the - session-transcripts skill. Local transcripts are deleted only after 14 idle - days and verified on the remote `transcripts` branch, or classified retired. +8. **Session transcripts and the Codex SQLite cache:** not a target. Transcript + sync was retired on 2026-11-27; run `oh reclaim` with `--no-transcripts` and + leave local transcripts and existing `transcripts` branches alone. `oh reclaim` also prunes worktree build output and package caches with its own guards (Git-ignored, no tracked files, nothing open, idle past 12 hours or 2 diff --git a/plugins/local-efficiency/skills/session-transcripts/SKILL.md b/plugins/local-efficiency/skills/session-transcripts/SKILL.md deleted file mode 100644 index 11b266b..0000000 --- a/plugins/local-efficiency/skills/session-transcripts/SKILL.md +++ /dev/null @@ -1,103 +0,0 @@ ---- -name: session-transcripts -description: >- - Deterministically map, sanitize, persist, and reclaim Claude Code and Codex - session transcripts onto isolated orphan branches (`transcripts`) in private - `hraness/*` repositories with `oh transcripts`. Use when syncing active or - historical transcripts, auditing transcript storage, or reclaiming idle - (over 14 days) local session data and Codex SQLite projections. Do not use - for general disk cleanup (use disk-reclaim), for reading or summarizing a - session's content, or to push transcripts to a public repository. ---- - -# Session transcript persistence and reclaim - -`oh transcripts` persists Claude Code and Codex session transcripts into the -private `hraness/*` repositories they belong to, keeps long-running active -transcripts updated incrementally, and reclaims local storage once sessions -are idle. It ships in the legacy OH CLI (`oh`), which stays installed for this -and for the legacy reclaim pass; the OH Router has no transcript sync yet. - -Read [mapping, sanitization, and branch layout](references/mapping-and-sanitization.md) -before changing routing rules, redaction patterns, or retention thresholds. - -## Inspect and sync - -1. Always preview routing and reclaim candidates first with a dry run: - - ```sh - oh transcripts - oh transcripts --json - ``` - - The dry run reads local transcript headers and Codex's `state_5.sqlite` - index read-only, classifies every session (`hraness/`, the fallback - repository, or `retired`), and reports exact sync and reclaim counts without - writing Git objects, pushing, or deleting files. It can take several - minutes; run it in the background. - -2. Persist and reclaim idle local copies (pushes to GitHub, deletes local - files that are verified on the remote): - - ```sh - oh transcripts --apply - ``` - - To update the remote `transcripts` branches without deleting local files: - - ```sh - oh transcripts --apply --no-reclaim - ``` - - `oh reclaim --apply` runs the same sync as part of the legacy disk pass. - -## Fallback repository - -Sessions that map to no single private repository (home-directory and -multi-repo sessions, sessions whose repository is public, a fork, or has no -local checkout) go to a fallback repository built into `oh transcripts`. That -fallback is still `hraness/diocles`, which is being retired. No other existing -private `hraness/*` repository is meant to hold these sessions, so the fallback -has not moved yet. - -Until a new fallback ships, read the dry run's `hraness/diocles` row as the -fallback. Once `hraness/diocles` is archived, the private-repo check refuses -it: those sessions are reported as `Cannot persist`, nothing is pushed for -them, and their local files are kept rather than reclaimed. Do not work around -that by pushing them elsewhere by hand. - -## Core invariants - -- **Never touch `main` or working trees.** Commits are built through a - temporary `GIT_INDEX_FILE` (`git hash-object -w`, `git update-index - --cacheinfo`, `git write-tree`, `git commit-tree`) and pushed with - `--force-with-lease` to `refs/heads/transcripts`. Active branches, staged - changes, and CI workflows on `main` are untouched. -- **Private `hraness/*` repositories only.** Before any push, `gh repo view - --json isPrivate,isArchived,isFork` must show `isPrivate: true`, - `isArchived: false`, and `isFork: false`. Sessions mapped to public - repositories, forks, or missing checkouts route to the fallback. Retired - projects are never pushed. -- **Sanitize before hashing.** Inline base64 images and screenshots, data URLs, - opaque blobs over 32 KiB, and credential patterns (API keys, GitHub tokens, - JWTs, Bearer tokens, private keys) are elided or redacted before `git - hash-object`. Files over 45 MiB split deterministically into `.partNNN.jsonl` - chunks. -- **Active sessions stay intact locally.** Sessions open in `cmux`, tracked as - active by OH launchers, or modified within `--idle-days` (default `14`) are - synced incrementally when their `(size, mtimeMs)` changes, while their local - `.jsonl` files stay so `--continue` and `--resume` keep working. -- **Reclaim requires remote proof.** Local `.jsonl` transcripts and Claude - `/` subagent directories are deleted only when idle past - `--idle-days`, absent from active `cmux` sessions, and either recorded with a - verified commit SHA on `origin/transcripts` in - `/transcript-sync/ledger.json` or classified `retired`. -- **Safe SQLite compaction.** Codex's `thread_history_1.sqlite` projection - cache is pruned in bounded `BEGIN IMMEDIATE` batches for threads no longer - kept on disk, followed by `PRAGMA wal_checkpoint(TRUNCATE)` and an in-place - `VACUUM` (never a `rename()` over an open WAL database; `SQLITE_BUSY` defers - `VACUUM` cleanly). -- **Never read or copy provider auth files.** Scan only Claude - `projects/*/*.jsonl` and Codex `sessions/`, `archived_sessions/`, - `state_5.sqlite` and `thread_history_1.sqlite`. Leave OAuth tokens, Keychain - items, cookies, and `auth.json` untouched. diff --git a/plugins/local-efficiency/skills/session-transcripts/agents/openai.yaml b/plugins/local-efficiency/skills/session-transcripts/agents/openai.yaml deleted file mode 100644 index 3253475..0000000 --- a/plugins/local-efficiency/skills/session-transcripts/agents/openai.yaml +++ /dev/null @@ -1,6 +0,0 @@ -interface: - display_name: "Session Transcripts" - short_description: "Persist and reclaim agent session transcripts" - default_prompt: "Use $session-transcripts to dry-run transcript routing and reclaim on this node and summarize where each session would be stored." -policy: - allow_implicit_invocation: true diff --git a/plugins/local-efficiency/skills/session-transcripts/references/mapping-and-sanitization.md b/plugins/local-efficiency/skills/session-transcripts/references/mapping-and-sanitization.md deleted file mode 100644 index 2147be6..0000000 --- a/plugins/local-efficiency/skills/session-transcripts/references/mapping-and-sanitization.md +++ /dev/null @@ -1,58 +0,0 @@ -# Mapping, sanitization, and branch layout - -## Sources scanned per node - -- **Claude global:** `~/.claude/projects//.jsonl` (and - the sibling `/` directory during reclaim). -- **OH-managed Claude profiles:** - `/claude-profiles//config/projects//.jsonl` - (synthetic continuation and `*-fixture-*` directories are skipped). -- **Codex global:** `sessions/**/*.jsonl` and `archived_sessions/**/*.jsonl` in - the Codex home (`$CODEX_HOME`), enriched read-only from its `state_5.sqlite` - `threads` table. -- **OH-managed Codex profiles:** `sessions/**/*.jsonl` and - `archived_sessions/**/*.jsonl` in each profile's Codex home - (`/codex-profiles//home`), enriched from - `/sqlite/state_5.sqlite`. - -## Deterministic repository resolution order - -1. **Git origin:** Codex `threads.git_origin_url` or - `session_meta.payload.git`, parsed to `owner/repo`. -2. **Checkout prefix:** the working directory matched against the local - checkouts in the OH config's projects and `~/src/*` (longest path prefix - wins). Both fetch and push `origin` URLs must name the same repository. -3. **Worktree and directory naming rules:** a fixed table maps worktree and - directory name prefixes under `~/src` (even for worktrees already pruned - from disk) to their active private `hraness/*` repository. -4. **Generic launch directories (`~` or `~/Documents`):** reads up to the first - 350 JSONL records and uses, in order, a dominant non-home `cwd` (at least - 70% of non-home observations), a Claude `custom-title` matching a stored - project key, a dominant `~/src/` or `~/Documents/` path reference - (at least 70% with at least 3 hits), and the Claude project slug. -5. **Fallback:** multi-repo and general home-directory sessions route to the - fallback repository (see the main skill), as do sessions whose target is - public, a fork, or has no local checkout. -6. **Retired filter:** a token matching a retired project name classifies the - session as `retired`; it is never pushed and is reclaimed locally once idle. - -## Orphan branch tree layout - -On `refs/heads/transcripts` of each target private repository: - -```text -nodes/ - / - manifest.json - claude/ - YYYY-MM/ - .jsonl - profile_-.jsonl - codex/ - YYYY-MM/ - rollout--.jsonl -``` - -Partitioning under `nodes//` keeps nodes from writing overlapping -paths. If two nodes push at once, the batch push fetches the new tip and -replays its tree update with `--force-with-lease`. diff --git a/skills.sh.json b/skills.sh.json index 52f9284..e466853 100644 --- a/skills.sh.json +++ b/skills.sh.json @@ -64,8 +64,7 @@ "description": "Coordinate local agent scheduling, bootstrap, browser recovery, and maintenance commands on Hraness development machines.", "skills": [ "local-efficiency", - "disk-reclaim", - "session-transcripts" + "disk-reclaim" ] } ]