Skip to content
Back to skills

Park

BSecurity

Capture session with bookkeeping — quality gate, session log, project-doc update, open-loop routing, and a close-out audit that repeats until clean.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 4, 2026
ai-agentspythongoshellbashnodegitapisecuritydocumentation

Works with

  • claude code
  • terminal
  • api

Security analysis

B75/100
  • criticalModifies startup scripts or system services for persistence

Pro scans all 4 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add OpenCairn/OpenCairn --skill park --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Park?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Park
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/opencairn-park/badge)](https://www.skillsdirectory.com/skills/opencairn-park)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: park
description: Capture session with bookkeeping — quality gate, session log, project-doc update, open-loop routing, and a close-out audit that repeats until clean.
---

# Park - Session Capture

**Scoped rule loading:** `_shared-rules-planning.md` before project/task routing; `_shared-rules-reviewer.md` before attribution or reviewer preparation; `_shared-rules-content.md` before verbatim or structural operations. Read the applicable numbered sections at that point, from the same directory as the core `_shared-rules.md`; do not preload unrelated supplements.

Capture a work session: proportional quality gate, session log, project-doc update, reference-graph propagation, open-loop routing, and a close-out audit that repeats until clean.

**Args:** `$park --quick` requests the fail-closed quick path below. Quick mode activates only when the complete argument string is exactly `--quick`; bare `$park` and every other argument string, including `--quick foo`, run the full protocol. Never infer quick mode from a quiet-looking session.

**On the full path, Step 4b records per-needle coverage and despatches propagation only for an uncovered remainder; Step 8 finalises coverage.** A no-seat result skips only propagation delegation, never quality gates, backfill, mechanical verification or independent Step 9 review. A required seat runs in the background across Step 4c and Steps 5 and 7. Its planning/hub writes can overlap those steps: `locked-edit.sh` prevents lost updates, not stale-preimage conflicts. Exit 2/3 requires a fresh read and recomputation per §5.

**Concurrent parks are safe.** All shared-file writes go through the locking scripts (`write-session.sh`, `update-session-section.sh`, `backfill-files-updated.sh`, `locked-edit.sh`, `write-tickler.sh` — `_shared-rules.md` §5; exit 2/3 = a parallel writer changed the region: re-read and recompute, don't loop-retry; lock timeouts are §5 Failure mode B — kill the hung script, never fall back to a raw write). After each `locked-edit.sh` call, apply §5's anchored padded-line residue check and region-scoped malformed-fragment check; classify documentation hits before repairing. `$goodnight` uses the same machinery; parking before goodnight keeps its daily report coherent.

## Steps

### 0. Setup

Read **Caller contract** in the [shared close-out protocol](../_closeout.md); its inventory/verification/review sections are called at the steps below.

Resolve native delegation using **Delegation** in the [shared close-out protocol](../_closeout.md).

**Delegation-unavailable checkpoint (full path only).** Standing skill authorisation permits the required delegation unless an explicit higher-priority restriction forbids it. Before declaring unavailability, identify the required operation, the available native tools checked and the capability or constraint they cannot satisfy. A differently named tool, busy slot, observation timeout or still-running seat is not unavailability: adapt the call, collect or continue the existing seat. Use this checkpoint only when the required operation is unavailable across the exposed native interfaces, explicitly prohibited or returns a terminal unsupported error with no supported equivalent; retain that exact cause. Do not inline the independent audit, invent a clean report or change models.

Use Steps 2(a–c) and 3 to persist the attributable inventory, existing work product and session narrative. Before Step 3, perform Step 4c’s proportional quality inspection and §19 SOURCE check on that work; this checkpoint waives only Step 4b’s delegation-before-quality ordering. Record any unfinished quality/propagation/routing gates and the actual delegation reason in Pickup Context. If the failure happens later, reconcile the work already landed into that same assigned entry. Defer new structural/routing work and Steps 2(d), 4–9 that have not run. This explicit checkpoint branch permits only Step 10's monitor of the work actually performed, Step 11's transcript export and measurement close-out with outcome `blocked`; their outputs do not discharge review. When no audit began, report `✗ Audit: not run (delegation unavailable — <verified reason>)`; when an existing audit cannot finish, report `✗ Audit: not clean — <verified reason>`. Report `✗ Park: incomplete` and the actual saved log/export results. Offer to resume the saved checkpoint in a harness with independent review. An alternative completion policy requires explicit user authorisation; do not treat this branch as Park completion or use Step 12's success message.

**Full-run measurements:** keep a count of completed independent audit reports, rounds of fixes after those reports, and distinct confirmed audit findings. Before every completion or blocked return (including quick mode), record the observed counts as described under **Measurement close-out** below. Missing evidence stays unknown; human review time requires the user's report. Passive transcript collection measures the full request, including the final response.

**Check / Missing ledger.** From Step 1 onward, note each judgement call the user should verify and each detail this park needed but did not have, for the `Check:` / `Missing:` lines in Step 12 (and the quick completion). Collect them silently and do not stop the run to ask: text before the final message is easily missed, and a mid-run question makes park blocking. Where a write needs a missing value, never invent the missing value; omit it from the write and list it under `Missing:`. On the delegation-unavailable checkpoint, print the same lines after `✗ Park: incomplete`.

Run `"${VAULT_PATH:?VAULT_PATH not set}/.claude/scripts/resolve-vault.sh"`, then `"$VAULT_PATH/.claude/scripts/check-archive-layout.sh" --enforce "$VAULT_PATH"`; abort on either error (usual causes: `VAULT_PATH` unset, or a pending archive migration). Resolve `CODEX_ROOT="${CODEX_HOME:-$HOME/.codex}"`, read `$CODEX_ROOT/skills/_shared-rules.md`, and apply it throughout. `{VAULT}` below = the resolved vault path: the part after `VAULT_PATH=` in the resolver's output (§1). Set `PARK_REVIEW="$CODEX_ROOT/skills/park/scripts/park-review.py"` and `PARK_ARTIFACT="{VAULT}/.claude/scripts/park-artifact.py"`; abort if either is absent.

**Startup bundle (normal first tool call).** Codex has no UserPromptSubmit hook here. If the installed helper exists, run `python3 "{VAULT}/.claude/scripts/park-preflight.py" --manual --session-id "<actual parent session id>" --receipt "<new raw receipt path outside the vault>"`: it writes the complete raw JSON there, refusing an existing path, and prints only a bounded status summary with the receipt digest. Display that summary before loading rules, and read the receipt file only for a field the summary lacks; otherwise run the normal setup/ledger reads. Inspect actual command statuses and source hashes before reusing checked observations. This is a normal tool call, not pre-first-model delivery. Its task candidates never replace fresh Step 7 literal/semantic dedup, attribution, propagation, verification or independent audit.

Get date and time from bash — `date +"%Y-%m-%d"` and `LC_TIME=C date +"%I:%M%p" | tr '[:upper:]' '[:lower:]'` (`LC_TIME=C` guards `%p`, which expands empty under many locales).

Derive and display today's session-log path mechanically:

```bash
TODAY="$(date +%F)"
SESSION_DIR="{VAULT}/06 Archive/OpenCairn/Session Logs"
SESSION_LOG="$SESSION_DIR/$TODAY.md"
[ "$(dirname "$SESSION_LOG")" = "$SESSION_DIR" ] || { echo "ERROR: session log escaped current-log directory: $SESSION_LOG" >&2; exit 1; }
printf 'Session log path: %s\n' "$SESSION_LOG"
```

**Path invariant:** a new entry for today goes directly in `Session Logs/YYYY-MM-DD.md`, never `Session Logs/YYYY/YYYY-MM-DD.md`. Year subfolders contain archived logs; an archived path loaded by `$pickup` must not be carried into this park. Shell variables do not persist between tool calls, so re-derive and assert `SESSION_LOG` inside every later call that writes or edits today's log, or use the exact path printed above. A later-date continuation creates a new entry here, retaining a link to the earlier session.

**Parboil draft.** A mid-session snapshot may already hold this park's expensive half — session narrative, identifier enumeration, open-loop list — derived while the context was still cheap:

```bash
SID="$(. "{VAULT}/.claude/scripts/lib-session.sh"; _session_id)"
S="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/.session-state/${SID:-none}"
[ -f "$S.parboil.md" ] && { echo "LEDGER NOW: $(wc -l < "$S.tsv" 2>/dev/null || echo 0)"; cat "$S.parboil.md"; } || echo "no parboil draft"
```

Compare the draft's `SNAPSHOT-LEDGER-LINES: K` against `LEDGER NOW`. K is the exact `wc -l < "$S.tsv"` line count captured by the hook, not a count of bullets, files, or sections in the draft. **An equal count does not mean nothing changed** — the ledger records file writes only, so decisions taken, messages sent, bookings made and shell-mediated work all move the session on without moving the number. Equal count licenses adopting the *Files* sections, not the narrative: re-check Summary, Key Insights, Next Steps and the enumeration against what happened after the snapshot regardless. Higher → adopt as the base, and **read the delta paths** before extending the enumeration; a draft enumeration carried forward unread becomes the Step 6 agent's grep list, so an error there is a silent reference-graph miss, not a cosmetic one.

Either way the draft is a cheap artefact, not authority: anything in it that a file you read this session contradicts loses. Bare and escalated parks run Steps 2, 4–5 and 8–11 in full; an eligible explicit quick park follows the checked branch below. A parboil trigger that fires after this park has begun is satisfied by the active park; do not write or refresh a shadow snapshot mid-park.

**Full-path evidence receipts.** On entry to the full path, execute **Evidence** in the [shared close-out protocol](../_closeout.md) before capture/classification. Keep one generation through remediation; explicit quick mode still begins its own generation only after eligibility passes.

**Owned-agent and interruption boundary:** enumerate this session's live writing children before inventory; collect their actual terminal reports or retain their handles/expected writes as pending scope. Pending writes cannot silently enter an already-prepared review. Restart an interrupted park at Setup, reusing only hash-matching checked observations; rerun inventory/coverage for anything written since. The parboil draft is park-owned scratch removed by the Stop hook, not a durable Files row.

### 1. Merge-continuation check

If this session directly continues a just-parked session dated today (a `$pickup` loaded it and the work finishes its loose end, or this same conversation already parked today and has worked on since), `--quick` is ineligible: print `↪ --quick escalated to full park: merge-continuation`, then update the existing entry via `update-session-section.sh <log> N <section> [--replace]` (append to Summary / Files sections; `--replace` for Next Steps and Pickup Context). The section mode never touches the heading line: when the entry title no longer fits the merged work, correct it with `update-session-section.sh <log> --rename-heading N "<complete ## Session N - ... heading>"`, keeping N and its existing time suffix. Then run Steps 2 and 4–11 against the merged session's N. Before writing the addendum, run coverage and §19 over every continuation-touched file and print the SOURCE result; inherited gating is not enough. **Reconcile the whole merged entry**, including surviving Summary, Key Insights, Next Steps and Pickup Context; confirm inherited artefact classifications still fit. A continuation on a later calendar date creates a new entry with a continuation link. **Escape hatch:** if the addendum would exceed ~2× the target's current summary or touch >3 files unrelated to its topic, start a new session instead — a session titled X that hides hours of Y is invisible to topic search. Completion: `✓ Merged into Session N — [what was added]`. Otherwise proceed normally.

### 2. Inventory and change classification

(a) Execute **Inventory** in the [shared close-out protocol](../_closeout.md); retain its attributed list for Step 8.

#### Explicit `--quick` gate

Run this gate only when the complete argument string is exactly `--quick`, after inventory and before classification, full reads, persistence, routing, evidence capture, or agent despatch. Supply every repository touched during the session to `park-files.sh`, and `--root` for every directory it installed into outside the default sweep.

1. Review the session's actual tool calls and shell commands. Display one row per filesystem-mutating action as `tool/action | resolved path | ledger/park-files/repo coverage`. Every action must resolve to an inventoried path; print `none` only when there were no such actions. Any attributed creation, update, or deletion fails the gate, as does a mutation outside inventory coverage or an action whose target or ownership is uncertain.
2. Enumerate Step 4's at-risk sources before taking this shortcut, including the assigned entry on a continuation, unattributed `[transient]` hits and this session's harness scratchpad. Any durable work without a verified semantic home, or unresolved candidate, fails the gate.
3. Display checked results for external mutations (messages sent, bookings, purchases, pushes, remote edits); decisions, project-state changes, changed identifiers, or factual corrections requiring durable reconciliation; and resumable next steps or open loops. Read-only queries are non-mutating. Any positive or uncertain category fails the gate.
4. Display the evidence before branching: attributed-file count and inventory sources; mutation rows; transient and plan-file counts; conversation-only draft result; and world-state, project/identifier, and open-loop results. Nil must be a checked result, never a default.

If any condition fails, print `↪ --quick escalated to full park: [reasons]`, perform the deferred evidence/pre-state capture, and continue at Step 2(b), without rerunning setup or inventory. Otherwise follow the quick success path immediately; do not enter the remaining full-path steps.

#### Quick success path

Begin a fresh generation once, now that eligibility passed, before writing the log or creating its verifier receipt:

```bash
python3 "$PARK_REVIEW" begin-run
```

Keep this generation if a late mutation or verifier failure escalates the quick run; do not call `begin-run` again.

1. Apply Step 3's metadata and locked `write-session.sh --auto-number` mechanics once. Write a sparse entry containing every normal heading, including `Files Created`, `Files Updated`, and `Files Deleted`, with bare `None` under each Files heading; `None` under Key Insights; `None — work completed` under Next Steps and `**For next session:**`; and the normal `**Project:**` line.
2. Immediately rerun the same ledger, `park-files.sh`, and local-mutation census. This second inventory—not `park-verify.sh`—detects late files. Permit only the exact assigned session-log mutation. Any new or ambiguously attributed non-bookkeeping delta prints an escalation reason and retains the assigned N: never rerun Step 3; perform the deferred evidence/pre-state capture; apply Step 2(b)'s proportional classification and inspection to every late created or updated artefact, while recording late deleted paths from ledger, pre-state, or tool evidence without reading or classifying them; replace every affected `Summary`, `Key Insights / Decisions`, `Next Steps / Open Loops`, `Files Created`, `Files Updated`, `Files Deleted`, and `Pickup Context` section via `update-session-section.sh --replace`; finish Step 2(b–d); then resume the full path at Step 4.
3. With the second inventory still nil, re-derive `SESSION_LOG` per Step 0, then run the verifier through `python3 "$PARK_REVIEW" run-verifier -- "{VAULT}/.claude/scripts/park-verify.sh" "{VAULT}" "$SESSION_LOG" N` with no `--ident` or `--touched` arguments, preserving the verifier receipt. The verifier does not discover omitted files. Repair and rerun only failures confined to the newly assigned session block. A failure involving another file, a pre-existing entry, or any correction outside that block escalates before remediation: retain N, perform the deferred evidence/pre-state capture, convert every affected sparse section through the same `update-session-section.sh --replace` contract in item 2, and resume the full path at Step 4. Triage any unexpected REVIEW rather than treating it as file discovery.
4. Run the Step 10 skill monitor against the quick execution, then perform Step 11 transcript export. These outputs and the verifier receipt are Park-owned bookkeeping and do not invalidate eligibility. Branch past propagation capture, `build`, reviewer despatch, and `record-audit`; do not manufacture propagation or audit receipts. Skip project-doc mutation, reference-graph propagation and Step 8 collection, open-loop routing, semantic file review/classification, and the bounded audit because their inputs were checked nil.
5. Finish with the quick completion contract below and stop:

```text
✓ Quick eligibility: PASS — 0 attributed files; no at-risk work; no changed world/project/identifier state; no open loops
✓ Session N saved: 06 Archive/OpenCairn/Session Logs/YYYY-MM-DD.md
✓ Quality check: no attributed files
✓ park-verify: PASS
✓ Reference graph: skipped (--quick; no changed identifiers or world state)
✓ Open loops: none (quick eligibility)
✓ Audit: skipped (--quick)
✓ Skill monitor: [no gaps | N logged]
✓ Transcript exported: N sessions
[Check: / Missing: lines per Step 12 — omitted when empty]

Quick parked.

[Short session summary.]
```

(b) Execute **Coverage** in the [shared close-out protocol](../_closeout.md). Classify now; perform its quality read at Step 4c after the Step 4b coverage record (seat handle or complete discharge receipts) exists.

**Configured semantic second pass:** read [../_semantic-checks.md](../_semantic-checks.md). After enumerating authored checks, invoke its `check` comparison with the explicit negative case. During pre-log propagation, invoke its `propagation` comparison on retrieved candidate passages, including sibling framing. Keep every candidate in the disposition list; Jev does not retrieve missing paraphrases or establish a clean search.

**Authored-check gate:** apply the shared protocol's semantic conformance checks and §19 to how-tos, any runnable command written into a living doc (restore, re-enable and undo lines included), routed setup/integration actions, Next Steps and Pickup Context, including linked pre-existing procedures. Name the subject/component measured (pinning any scope the tool would otherwise auto-detect), exact command/inspection, pass, fail and where applicable `not yet`; show how observations differ under the competing hypotheses in the current state. For liveness, name the field that advances (not merely a recent timestamp); for logs, bind the interval and replay a real pass output. A README pointer or a success label alone is not a check. Retain positive/negative controls; unresolved criteria remain explicit rather than invented, and a deferred check ("pending", "to be confirmed") gets its command and pass/fail observation or becomes a stated limitation.

Enumerate the checks mechanically, never from memory: run ``rg --no-config -n -i -e '^\s*(`{3,}|~{3,})' -e '\b(confirm(s|ed|ing|ations?)?|check(s|ed|ing)?|verif(y|ies|ied|ying|ication)|test(s|ed)?|re-?(run|ran|runs|running|build|built|builds|building|generat(e|es|ed|ing|ion))|expect(s|ed|ing|ations?)?|when|should)\b' -- "<doc>"`` on every created or updated doc and keep the hits inside session-authored spans (one fenced block counts once). Read the complete authored spans for trigger-, expectation- and regeneration-shaped checks the pattern missed; a keyword hit is not proof of coverage. Disposition every hit, and each check drafted for Next Steps or Pickup Context, as one printed line before the gated text is saved (before Step 3 for the docs inventoried here): `check: <subject> | cmd: <command/inspection> | pass: <observation> | under-negative: <can this same pass appear while the hypothesis is false? show the result> | fail: <observation> | not-yet: <observation or n/a> | control: <same-run positive control>`, or `not a check: <locator>`. The under-negative field tests the proposed pass observation against the false hypothesis, not merely a different failure output. Map empty output, the interval before a first match, and a failure after a success marker separately to pass/fail/not-yet where applicable (otherwise n/a). If the pass also appears under the false hypothesis, record a limitation. The control field is required: it names what the same run shows about the instrument seeing its subject (the item held, mounted, present or reachable when the check expects refusal or absence). A check whose pass observation would also appear under the competing hypothesis, or that has no control, is saved as a stated limitation, not a check. Print `Authored checks: C enumerated (K keyword candidates, S semantic-only); P discriminating with control; L limitations; N not checks`.

(c) Apply its **Earlier audit reuse** rule.

(d) **Pre-log propagation pass:** Step 3 has not written the log yet, so stale living content is reconciled here in editing mode rather than recalled later in record-keeping mode. Build the initial Step 6 enumeration now: every `old → new` pair plus, for each named-entity claim, the entity's canonical identifiers. Run each search yourself in Step 6's exact shape (working directory `{VAULT}`, one Step 6 live-text search per identifier with Step 6's exclusion globs), reconcile every stale living hit per §12 through `locked-edit.sh`, and report `Pre-log propagation: I identifiers, H hits, U updated`. Give each needle's call the harness maximum timeout, or run the needles as one background job under Step 6's LIVE SEARCH batch rule (per-needle outputs, statuses and accounting); never loop many whole-vault needles in one default-timeout call. For a substantive reframe (scope, timeline, audience, constraint, underlying premise), also list the affected project's sibling artefacts (files in its folder, files its hub links, live planning lines that reference it) and read each one's framing for a premise the reframe invalidated: framing only, not the Step 4c read; report `Sibling framing: S reviewed, U updated`. This is the initial enumeration Step 4b despatches; the seat's sweep and Step 8's final delta remain the backstop, not the primary catch. For new data paths, search the parent path across infrastructure docs/scripts before adding automation; inspect owning retention/backup/exclusion rows. For reframes/new guides/cross-area moves, read the destination parent/index and linked constraints, and record the owning index/table row or exclusion. For dependency changes, inspect sibling `fallback` / `fall back` / `if ... not` instructions. **Wording coverage:** derive supplemental anchors from the user's request terms, decision IDs and owner-ID forms, plain-word variants of hyphenated names, and ancestor path components that govern placement. Read the edited sections' open/remaining/pending work and their same-premise recommendations or mechanism claims, plus linked run reports' remaining-work sections; classify historical records by their role rather than rewriting them automatically. Search meaningful paraphrases of the changed rule, and retain each anchor's receipt and each candidate's disposition. Add search anchors to the Step 6 enumeration and use its LIVE SEARCH boundary; an ancestor component is paired with the affected subject when too broad. Keep paragraph reads distinct from searches, naming their files/sections. Emit `Wording coverage: A anchors, C candidate passages, U updated` with receipts and dispositions. A Jev judgement over supplied candidates does not establish retrieval coverage. **New-entity check:** a home is the canonical file, section, registry row or index entry for an entity, not merely a new file. List introduced names and whether this session creates or splits such a home. From `{VAULT}`, search every name with `rg --no-config --hidden --no-ignore -F -i -g '!**/.git/**' -- '<distinctive name>' .` (archive included; use word mode for ambiguous aliases); retain raw stdout, stderr, argv, cwd and exit status for each literal/alias/separator search. Mention-only changes stop at literal search. For home creation/splitting, also search known aliases and a separator-fold form such as `rg --no-config --hidden --no-ignore -i -g '!**/.git/**' -- 'word[-_ ]?word' .`. Run the near-spelling check only for a new home named for something whose spelling can vary (a person, organisation, place, product or published work), and only when these searches find no hit outside this session's own writes or leave possible homes unresolved; a descriptive title made of ordinary words stops at these searches. Give it every such name in one invocation, with a known-present home name as a same-run control:

```bash
python3 "{VAULT}/.claude/scripts/entity-near.py" --root "{VAULT}" \
  --name "<new home name>" --name "<known-present home name>"
```

Retain its stdout. It compares each name with Markdown file and folder names, front matter, headings, table cells, bold list lead-ins and list entries that open with a wikilink, hidden and archive files included, excluding .git and not following symlinks. Body text is not compared: the literal searches cover mentions, and a mention is not a home. A clean result covers those locations only. Exit 2 or complete=false means an incomplete scan; inspect every reported error before making a negative claim. For an oversized file, rerun the same command with `--max-bytes <largest reported bytes>`; pass requires complete=true and the control home present. If it cannot complete, retain the incomplete result instead of a negative. An unreadable or non-UTF-8 Markdown file has its name compared but not its contents, which stay uncovered until a readable text source exists. The control must return its known home path. Read candidate homes, then merge/cross-link where warranted. Report `New entities: E searched; V variant passes` with hit counts per name, zeros included, home-creation decisions and candidate dispositions; never treat a mention as an entity home.

### 3. Write the session log

Apply Step 2(b)’s authored-check gate to Next Steps and Pickup Context, including merge-continuation edits. Do not write the log until the gate has printed a line for every enumerated item and its `Authored checks:` total.

**Metadata:** topic (descriptive weeks later — "Wezterm config fix", not "Terminal stuff"); project link per §2 (shipped one-shot work → area hub) and §3. Display: `Session: [Topic] | Project: [[03 Projects/Name]] (or "None")`.

**Body format is a parse contract** — `$pickup`, `pickup-scan.sh`, and `$weekly-review` key on these exact headings:

```markdown
### Summary
[2-4 sentence narrative — outcomes and decisions]

### Key Insights / Decisions
- ...

### Next Steps / Open Loops
- [specific enough to resume without re-reading the conversation; plain bullets, never checkboxes — session logs are records, not task trackers]

### Files Created
- `path` - purpose        [one path per line; never brace-expand or comma-group; bare `None` if empty; same for Updated]

### Files Updated
- `path` - what changed and why   [one path per line; never brace-expand or comma-group; include load-bearing external paths]

### Files Deleted
- `path` - why removed    [one path per line; never brace-expand or comma-group; omit the section entirely if none]

### Pickup Context
**For next session:** [one immediately-actionable sentence]
**Continues:** [[06 Archive/OpenCairn/Session Logs/YYYY-MM-DD]] (Session X - Topic)   [only if continuing]
**Project:** [exact link from the metadata line]
```

Use full vault-relative paths inside the vault, and absolute or `~`-prefixed paths outside the vault. `park-verify.sh` parses these rows: each begins with one complete concrete path, never a glob, range, prose stand-in or `~/x, y, z` abbreviation. A file that predates the session goes under Updated, a moved one under Updated at its new path.

**Write it:**

```bash
TODAY="$(date +%F)"
SESSION_DIR="{VAULT}/06 Archive/OpenCairn/Session Logs"
SESSION_LOG="$SESSION_DIR/$TODAY.md"
[ "$(dirname "$SESSION_LOG")" = "$SESSION_DIR" ] || { echo "ERROR: session log escaped current-log directory: $SESSION_LOG" >&2; exit 1; }
cat << 'EOF' | "{VAULT}/.claude/scripts/write-session.sh" "$SESSION_LOG" --auto-number "TOPIC" "$(LC_TIME=C date +'%I:%M%p' | tr '[:upper:]' '[:lower:]')"
[body — NO `## Session N` heading; the script assigns N inside the file lock and rejects a supplied heading]
EOF
```

The script handles locking, file/header creation, and atomic numbering — parallel parks can't collide, which is why N is never pre-computed. Its stdout ends `Session number assigned: N`: **that N is canonical for every later step** — display it. On a `Lock timeout` stderr message retry once; any other exit-1 means the invocation is wrong — fix it, don't retry.

**Continuation link** (only if continuing previous work): run `"{VAULT}/.claude/scripts/add-forward-link.sh" --continued-in "<original session's log file>" <orig-N> <new-N> "<topic>" "<today's YYYY-MM-DD>.md"`. The first file is the **original** log gaining `Continued in:`, never today's file; explicitly pass today's target-date filename on cross-day continuations, including archived originals. Links remain file-level (§13). A failure is reported as a warning, not silently treated as inserted.

Use `"{VAULT}/.claude/scripts/update-session-section.sh" "<log>" --rename-heading N "<complete ## Session N - ... heading>"` for a needed heading correction; read and retain its existing time suffix and avoid unstable counts in topics. Every non-scratch deletion description quotes its authorising user words or says it was the session's decision; a summary request alone does not authorise deletion. A user decision left open belongs in Next Steps and its task home, not only `Check:`. For each in-session recommendation the user acted on, confirm the chosen option from the user's words or a tool result; an unconfirmed choice that gates a consequence (a follow-up, coding, filing or booking that depends on which option was taken) becomes a conditional open loop plus a `Missing:` line, never `None — work completed`.

### 4. At-risk work product

Check the sources below against the session's tool/action evidence; inventory attribution alone does not settle whether useful content is at risk.

- **Conversation and assigned session entry:** read the assigned entry's Summary, Key Insights and Pickup Context alongside the conversation's substantive output. Persist assistant-authored drafts (emails, messages, plans) and reusable recommendations, analysis and decision rationale that have no semantic home beyond the conversation or session log; include the originating question/constraint when needed to interpret them. Prefer an existing home and link to it from the entry, retaining the historical record. Apply Step 2(b)’s authored-check gate before Step 4c. Routine status narration and spent execution detail need no separate note; user-authored drafts are not automatically migrated.
- **Transient surfaces** (Scratchpad, Inbox captures, daily notes) are cleared on a cadence — `park-files.sh`'s `[transient]` lines list this-session candidates mechanically (memory-gating is the failure this check exists to prevent). Read each hit, including unattributed candidates; resolve relevance from its content and the session’s actions, never treating a missing ledger row as proof it is old. Preserve unresolved candidates in place and report the attribution gap. Tasks correctly filed in a configured map’s retained task sections are already at their task home and stay there. Move other durable this-session work product to its semantic home and update every reference to the old location. If a moved or renamed file has provenance rows (`rg --no-config -F '<old vault-relative path>' "{VAULT}/07 System/AI Provenance Log.md"`; exit 1 or no log = none), follow `$provenance`'s **Renamed or moved work product** procedure; never edit the old rows. **Exception:** `$reply` draft sections (headings starting `**Reply to `) need explicit per-draft user confirmation before removal (§11). Pre-existing cross-session content is the user's working buffer — leave it (`$weekly-hygiene`'s job).
- **Harness scratchpad and plan files:** inspect this session’s actual scratchpad and runtime evidence paths from Inventory, including files under `/tmp`; do not sweep unrelated temporary files. Preserve decision-supporting evidence at a durable vault home and link it from the owning decision before those paths are cleared. A file listed in Files or a scratchpad path in the log is not persistence. Claude plan files also live outside the vault, so `park-files.sh`'s vault-only transient scan cannot see them: run `find ~/.claude/plans -type f -mmin -<N from the Inventory's `# window:` line>` and Read every hit individually. A sub-agent's output (`*-agent-*.md`) shares its parent plan's name prefix but is a separate document with its own migration status — "the plan was migrated" is not a verdict on it. Migrate standalone reference material to its semantic vault home; leave spent execution plans (`$weekly-hygiene` owns their cleanup).

For each candidate, record `At-risk: <source> → <verified home | retained: reason | unresolved: reason>`. Verify the destination contains the reusable content and its necessary context, not just a link to an ephemeral source. Output `✓ No at-risk work product to persist` only with no unresolved candidates, otherwise `🔧 Persisted N item(s): [paths]` and any unresolved sources.

### 4b. Record coverage; despatch only for an uncovered remainder

After Step 4's moves, extend the Step 2(d) enumeration by walking every Files row and tool/world-state effect through Step 6's classes. Retain sources, literal anchors, match modes and established event dates; do not infer dates from the park clock. Unknown/incomplete attribution or an unchecked class is not nil: resolve it before either discharge or despatch. If it cannot be resolved, report the blocker and do not complete Park; never send a knowingly incomplete enumeration to a seat. Trace new values through §19 before despatch.

Give each needle its own coverage record; mixed sets retain all their records:

- **Pre-log discharge:** its Step 2(d) LIVE SEARCH receipt exists and every hit was triaged. Retain the digest, complete hit list and dispositions. Re-read hit lines in files also named by a concurrent session's ledger; changed evidence loses discharge.
- **Session-only mechanical:** pre-state/write evidence establishes that this session first wrote the value. Run Step 8's inline procedure now, including its same-call positive control, and require every hit to fall in this session's authored spans. A hit elsewhere, uncertain origin, new entity, reframe or changed premise makes it uncovered. Apply independently to eligible needles, including ones produced by pre-log/quality fixes.
- **Uncovered:** anything meeting neither condition requires the Step 6 seat.

Emit `Step 4b coverage: pre-log <needles + digests>; session-only inline <needles + digests>; uncovered <needles>`. An actually empty enumeration gets the checked-empty category record. Otherwise, no uncovered needles means no seat; this is checked-nonempty coverage, not checked-empty. Keep both pre-log and inline records in a mixed set. Any uncovered needle → despatch the Step 6 seat with the complete enumeration and existing receipts, `collaboration.spawn_agent` (background), retaining its handle. Step 6 defines its prompt and work.

Keep the initial enumeration. Step 8 recomputes it after Steps 4c, 5–7 and performs the final per-needle check even when no seat exists. This preserves independent Step 9 review. Do not move despatch before Step 4, whose relocations must be in scope, or defer a required seat past the quality gate.

### 4c. Proportional quality gate (whether or not propagation runs)

Retain the Step 4b coverage record (seat handle or complete discharge receipts) before the first full quality read. Execute **Quality inspection** in the [shared close-out protocol](../_closeout.md), including semantic conformance and SOURCE; later status/content changes rerun the affected checks.

### 5. Project doc update

If the session materially changed a project's state, update that project's doc in `03 Projects/` — rewrite its existing current-state/action content to match reality, preserving the document's structure and bumping any `Last updated:` stamp, via `locked-edit.sh` (§5). No material change, no edit. If the doc has a `## Session History` section, read it and add `- [[06 Archive/OpenCairn/Session Logs/YYYY-MM-DD]] (Session N) — one-line gloss` at whichever end holds its newest row, via `locked-edit.sh --replace` anchored on that row (not `--append` — the section may not be last; if N already exists on a merge, re-read and refresh its gloss when the outcome changed). A section that only points at another doc gets the row in that doc instead. No such section → don't create one.

### 6. Reference-graph propagation

Enumerate at Steps 4b and 8. The per-needle coverage records can avoid a fresh propagation seat; they never waive attribution, quality, non-vault checks, Step 8's initial final re-sweep or Step 9's independent review. Step 8 also owns the narrower later-delta path.

**Enumerate (main session):** walk each changed file and tool/world-state effect through the classes below. Mark each applicable or checked-none, name its source and literal anchors, and retain old/new values and their established event dates. Map every identifier/name/alias to its executed needle(s) and match mode; shared coverage must explicitly name the covering needle. Never infer an event date from the park clock.

| Anchor class | Carry into the enumeration |
|---|---|
| Subject / container | Canonical names/aliases, user-request terms, decision IDs and owner-ID forms, separator variants, owning decision/set, refuted premise's subject and the hub a moved task links to; for new guides, the owning index/table's membership record. A location split/merge names the old and destination containers. |
| Value / locator | Old/new facts with subject and unit, old date plus task subject and any wording this session wrote naming the task's surface, complete old paths from move receipts, filename/link/heading forms (including live locators into completed projects), the write-into directory, and every removed/renamed invocation or configuration alias. Mirrors/copies under a write-to-both policy remain explicit destinations. |
| State / premise | The action/assumption discharged or invalidated and its subject noun, vendor/channel as planning text phrases purchases/bookings/messages, and per-occurrence dated records. When the session changes which artefact fills a role (the installed, current or live X), the role phrase itself ("installed gate", "current gate") is a needle beside the artefact's names. Read the subject's sections for differently worded pending clauses; the first phrase list is not exhaustive. |
| Dependency / cause | Trigger/re-enable/fallback anchors and the changed transport, credential, server or automation parent path and governing ancestor components (paired with the affected subject when broad); inspect sibling fallback instructions and owning backup/retention/exclusion records before adding another job. |
| Structure / inventory | Governing headings/predicates/count words, diagram labels and class assignments, and software/security inventory containers. An install includes its binary, source/keyring/profile paths and privileged-component inventory, not just the package name. |

For each anchor's expected owning record (a linked hub, a membership record, or a note this session created or retitled that the anchor should reach), emit `expected record present in hit-set: true/false`; false means inspect its actual heading/wording and add the missing anchor, not call it clean. Commits pushed enter the hub check in §17. Nil requires all classes and world-state effects checked.

**Distinctive needles:** use canonical subject phrases, heading/link forms or `word` mode for short names/common substrings; pair numeric values with their unit/subject. A phrase search does not prove a bare alias absent: retain a word-boundary alias search where that form can be live. Include straight/curly apostrophe variants when applicable. Do not narrow whole-live-text coverage to `--type md` to reduce output. Preserve full receipts while displaying bounded contexts.

**Literal search command (pre-log, seat and delta use the same boundary):** select `NEEDLE`, `MATCH_MODE` (`fixed`, `phrase` or `word`), and new absolute `RAW_OUT`/`RAW_ERR` paths outside the vault before running. Preserve the complete raw bytes, including long/base64/CR-bearing lines; never cap a loop or overwrite a prior receipt. Display a bounded status/context view and raw path/digest, then triage the retained complete hit set. Full raw receipts, not pasted megabytes, establish coverage.

<!-- BEGIN LIVE SEARCH -->
```bash
VAULT="{VAULT}"  # bind the resolver-verified literal path in this call
EXCL=(-g '!**/06 Archive/**' -g '!**/07 System/.Provenance/**' -g '!**/.git/**'
      -g '!**/.obsidian*/**' -g '!**/.trash/**' -g '!**/.Trash*/**' -g '!**/.stversions/**'
      -g '!**/node_modules/**' -g '!**/__pycache__/**' -g '!**/.cache/**'
      -g '!*.lock' -g '!*.csv' -g '!*.tsv' -g '!*.jsonl' -g '!*.ndjson' -g '!*.xmp')
CMD=(rg --no-config --hidden --no-ignore -n -F -i "${EXCL[@]}" --max-filesize 2M)
case "$MATCH_MODE" in fixed|phrase) ;; word) CMD+=(-w) ;; *) echo 'ERROR: invalid match mode' >&2; exit 2 ;; esac
cd "$VAULT" || exit 2
[ ! -e "$RAW_OUT" ] && [ ! -L "$RAW_OUT" ] && [ ! -e "$RAW_ERR" ] && [ ! -L "$RAW_ERR" ] || { echo 'ERROR: receipt path already exists' >&2; exit 2; }
printf 'argv:'; printf ' %q' "${CMD[@]}" -- "$NEEDLE" .; printf '\ncwd: %s\n' "$PWD"
RC=0
"${CMD[@]}" -- "$NEEDLE" . > "$RAW_OUT" 2> "$RAW_ERR" || RC=$?
printf 'exit_status: %s\n' "$RC"
sha256sum "$RAW_OUT" "$RAW_ERR" || exit $?
printf 'records: %d\n' "$(wc -l < "$RAW_OUT")"
[ "$RC" -le 1 ] || exit "$RC"
```
<!-- END LIVE SEARCH -->

Exactly one final `.` is the search root; punctuation is never appended to argv. Exit 0 means hits and 1 checked-no-match; a higher status voids that needle's hits. Give long jobs the harness maximum timeout; retain their actual handle/deadline and rerun a failed needle with an explicitly scoped boundary, never kill by pattern. A batch of literal needles may share one background job only with unchanged exclusions, complete per-needle outputs/statuses and initial/final accounting; one aggregate status/count is insufficient.

**Propagate (fresh sub-agent — standing authorisation):** despatch a background seat through the native interface resolved at Setup, on the session's own model, before Step 4c; collect its actual completed report at Step 8. The self-contained brief embeds the exact enumeration, event evidence, replacement wording, source/needle map and command above. Draft it in a new file outside the vault with one `Needle: <needle> [<mode>]` line per needle, derive the enumerated total with `rg --no-config -c '^Needle:' "<brief file>"` and paste that printed number into the brief, never a hand count. The seat reads §12 and applies its triage independently; do not pre-classify individual hits, narrow its stale-reference test or state an expected hit count; name known hits only as a floor ("includes …"). A consistent special case or still-valid SSOT locator remains current; preserve qualifiers the decision did not remove, reporting genuine ambiguity. For every hit, including in already-edited documents, read its full line and adjacent paragraph/subject section and account for stale tails, status words and neighbouring locators. Verify all locators in an edited banner/block. Run structural link checks after moves and update the document's own stamp convention. Return `identifiers received N`, exact receipts and per-needle `hits H → updated U, left L`, where H is the block's printed `records` value (the receipt's `lf_records`), never a hand count, with a disposition for every hit. **Write authority:** before writing the brief, compare the run's vault-write authority (the caller's run contract and governing session instructions) with this skill's default, and write the effective contract into the brief. By default main and seat use canonical locked writers with the actual parent session ID prefix. When vault writes are parent-only, the brief states that restriction and contains no write grant: the seat is read-only and returns each proposed edit as file plus exact `OLD → NEW` text, and the main session applies them through `locked-edit.sh` before backfill, counting each applied one in U. A restriction to named paths grants writes only there and routes every other edit the same way; every follow-up message to the seat repeats the effective contract. Either way the seat derives no new date, count or scope assertion.

**Search boundary:** the command searches live text including ignored scripts/config and hidden authored files, with archive/evidence, infrastructure/cache trees, bulk exports, XMP and files over 2 MiB explicitly excluded. Small authored JSON stays included. For an identifier known to live in excluded/oversized text, run and name a separate scoped search with only the relevant exclusion lifted. Keep that supplemental excluded-text run, and any non-vault run reusing the needle, as separately tagged evidence/raw receipts with their literal scope, command/status and hit dispositions beside the consolidated report. The final structured `searches` set contains exactly one default final vault-coverage row per `(needle, match_mode)`; never add a second same-key supplemental row, substitute it for the primary run, or turn its narrow scope into a whole-vault claim. Binary content and symlink targets need format-aware/separately scoped checks. Negative conclusions name this boundary; structural link queries remain separate.

**Executed-search receipts:** retain exact needle and match mode, literal argv/cwd, normalised `exit_status` (map native `exit_code` explicitly), immutable raw stdout/stderr paths/hashes, LF-delimited record and per-file hit counts. Inspect native receipt keys before evaluating them. In Step 8 compare final enumeration/needle values with executed receipts, not counts: `Propagation coverage: enumerated E; executed X; missing [needles]; failed [needles]`. Account for every missing/failed search and H = U + L before acceptance. Bounded display is not a sampled triage scope; retain the complete raw receipts and give the reviewer exact supporting contexts plus their locators.

**Non-vault consumers (main session):** for changed facts/paths, run a bounded `rg -l --hidden --no-ignore -F` over existing command/skill copies, the relevant harness config files (including existing `~/.claude.json`, `~/.codex/config.toml`, `~/.gemini/settings.json` and `~/.codex/AGENTS.md`), shell startup files such as `~/.bashrc`, relevant `~/.config` subtrees and the actual Claude memory directory; include the repository's callers. Inventory concrete roots first, then triage every file hit. A backticked command inside prose is a command site. Preserve private config contents outside public reports; source/install copies remain distinct. Propagate authorised mechanical fixes and log non-mechanical skill changes for maintenance.

Output: `✓ Reference graph: N files updated for [identifier]` plus the actual file list, or Step 8's checked-final nil or combined pre-log/inline discharge result when no seat existed. Never recast an existing seat as undispatched on a later nil claim.

### 7. Route open loops

Route every open loop to exactly one canonical target — no per-item prompting. Apply Step 2(b)’s authored-check gate before saving routed checks, including Tickler and This Week items; a linked canonical procedure discharges the gate only when its actual criteria discriminate the current hypotheses. A routed setup action needs an observable done-condition isolating the new component and steps checked against the relevant live config.

**Already in This Week.md:** keep the existing task there; update any changed scope in place. Do not recapture or offload it through the routing rules below. Shared §9 owns carry-forward.

**Configured task-home map takes precedence for new open loops:** locate it through vault navigation/Autopilot and follow Quick capture, including its undated fallback. Honour actual dates and execution days the user chose; being actionable does not by itself select work for this week. Keep retained tasks as checkboxes. Whimsy is only for ideas the user has released from obligation, never merely low-priority tasks. Use the fallback table below only when no map is configured.

1. **Explicit future date** → the matching dated section in This Week.md if it exists (use `locked-edit.sh --replace`); otherwise Tickler: `"{VAULT}/.claude/scripts/write-tickler.sh" "{VAULT}/01 Now/Tickler.md" "YYYY-MM-DD" "- [ ] text → [[06 Archive/OpenCairn/Session Logs/YYYY-MM-DD]] (Session N - Topic)"`
2. **No date, actionable this week** → This Week.md day section (tomorrow's; today's if parking before noon) via `locked-edit.sh --replace` on the day section — never `--append`, which lands outside any section. Format: `- [ ] text → [[project/area doc]]`. Trigger-contingent loops ("next time X runs, check Y") are not day-bound — use rule 3, or the Tickler at +10 days if no project doc exists.
3. **No date, has a project** → that project doc's existing task/action section (prefer `## Next Actions`, then `## Open Loops`, then another clearly equivalent section). If none exists, route to the Tickler at +10 days instead of creating a section.
4. **Undated, low-priority, no project home** → Whimsy: append a plain line (no checkbox) to `{VAULT}/04 Areas/Whimsy/_notes.md`.

**§18 applies:** an item carrying a deadline/expiry/window token MUST land on a dated surface — for this skill the disallowed sinks are undated project/area task homes, general capture inboxes and Whimsy. Derive the date (`date -d`) if it isn't written as one.

**Dedup before writing:** search both a distinctive task phrase and its stable subject across This Week.md, Tickler.md, and the candidate project/area/capture destination. Read candidate hits for semantic overlap; an intact duplicate may be skipped. Preserve source triggers and safety conditions through a link to their canonical home; do not invent a stronger condition or copy volatile decision prose into another home. Follow the destination's own entry rules. If the session resolved only part of the existing item, rewrite that item's surviving scope under `locked-edit.sh`; do not skip the whole item merely because the grep hit.

Before accepting an existing or rewritten task as coverage, compare its trigger, scope text and linked record with the session's final state. Update stale wording in place, including a completed mechanical subtask whose remaining verification still survives; update a living linked scope record when it omits that surviving scope. Keep historical records byte-identical; carry the current scope in the task and relink to its living canonical record or this session's entry. For each accepted existing item emit `✓ Covered: [item] (trigger | scope | linked record: current/updated/historical retained)` with the actual target. A deduplicated item must carry the surviving action and trigger itself, not just a session link; an undated item can cover an undated trigger when it preserves the exact action/condition. Do not invent a date to force deduplication. Name the map row checked (or `absent from table`) before using its fallback.

Output: `✓ Routed: [item] → [target] (map row: [row | absent from table])` per item. A zero-routing claim cites an observable (the dedup grep hit, or the session log's "None — work completed") and holds only when Step 3's acted-on-recommendation check left no conditional loop.

### 8. Backfill + mechanical verification

**Finalise Step 6 first.** Recompute the complete enumeration after Steps 4c, 5–7 using Step 4b's class checks and resolve-or-report-the-blocker rule. On the initial finalisation:

- **No seat, empty enumeration:** record checked-final nil with the actual category checks; neither spawn nor wait.
- **No seat, nonempty enumeration:** process every needle by its own Step 4b record, not the overall branch label. Re-run pre-log needles in the LIVE SEARCH shape, comparing complete hit sets and dispositions with their retained records. Check own-write additions/changes against this session's actual write evidence and triage them; other new/changed hits take the normal seat path. Re-run session-only needles once with the same-call control and re-apply the origin/own-span eligibility test. A new mechanical needle may take that inline path; an undisclosed/changed external hit or other uncovered needle requires a fresh Step 6 seat with the complete enumeration. Collect that fresh seat's report before backfill; it has no initial hit set and does not also take the existing-seat re-sweep branch. A mixed pre-log/inline set keeps both classes' checks.
- **All no-seat coverage passes:** emit `✓ Reference graph: pre-log/inline discharge — <needles>; final re-run checked; no propagation agent despatched`. Retain that verbatim line plus per-needle dispositions as the report and the final primary receipts as searches. It is not an agent report.

- **Seat already present before finalisation:** use `collaboration.followup_task` on the original propagation seat with that final enumeration and instruct it to re-run every original and newly added identifier search in the exact Step 6 shape, compare each final hit-set with its initial one, triage every new or changed hit, and return one consolidated report. Do this even when the enumeration is unchanged: the main pass may have changed a hit after the seat's first read. The final re-grep is mechanical; only hit-set deltas need fresh semantic triage. Never discard an existing seat or its report on a later nil claim.

For any branch with a seat, collect its report with `collaboration.wait_agent` before backfill — its edits belong in the backfill, and park-verify's `--touched` list is incomplete without them. Check already-delivered completion first; an authoritative native completed-state result containing this exact handle and terminal report also establishes completion. Verify referenced receipt digests. A timeout, elapsed time, file size or scratch file never does.

When a seat reported, check that its `identifiers received` count equals the final enumeration sent to it and that each H = U + L matches its hit-list before relaying any figure, then inspect the report for unresolved or gated consequences before backfill. Route each through Step 7. If that routing changes the final enumeration, send one delta-only `collaboration.followup_task` to the same propagation seat and collect its consolidated addendum before capture; a report that surfaces a new open loop invalidates any earlier "none" result. Apply the same consequence/delta check to each addendum; further identifier changes from propagation or later Park edits require rechecking Step 8 before completion.

After initial finalisation, an eligible session-only needle uses the procedure below at its point of introduction, including without a seat or during a re-run delta. Previously finalised needles retain their receipts while their hit lines remain current; rerun an affected needle after its evidence changes, not the entire enumeration solely because this eligible needle was added.

**Inline single-needle procedure:** use for an eligible session-only needle at any phase, or for exactly one mechanical value/locator/spelling delta after an existing seat's consolidated final report. New reframes, premises and entities take the normal seat path. Run the LIVE SEARCH block for it with fresh receipt paths and retain the Step 6 executed-search receipt. In the same call add a positive control: one known live occurrence of that needle shown in the raw output, or, when no live occurrence should remain, the same block run on a known-present form (the new value or the line this park wrote) with its hit shown. A run without its control is void. Triage every hit per §12 with the locked writers and print `Delta (inline): <needle> [<mode>] hits H → updated U, left L; control <path:line>`. This replaces only that delta's `followup_task` round and the repeated complete re-sweep it would otherwise trigger. It does not replace the seat's complete final re-sweep above; the session-only mechanical-needle rule is the exception permitting an inline pass when no seat exists, and a multi-needle delta not wholly eligible under that rule, or any substantive change, goes back to the seat. If triage edited any hit, rerun the same block once after triage, with its own same-call positive control as in the first run, and use that rerun as the receipt; when the delta changed rather than added a needle, the old needle's seat row leaves `searches`. The inline receipt becomes that needle's final primary `searches` row and the printed line is retained beside the verbatim seat report. Inline edits that change another identifier start a new delta under this rule; Step 9's independent audit is unchanged.

Immediately retain the actual consolidated report and addendum with any `Delta (inline)` lines, the discharge record and its re-run receipts, or the combined pre-log/inline discharge report and its final searches, or the checked-nil category result, then execute **Propagation receipts** in the [shared close-out protocol](../_closeout.md): capture the final needle+mode enumeration and executed-search JSON separately. The report string remains verbatim; raw stdout/stderr files are immutable inputs. Even a checked-nil run records `needles: []` and `searches: []`; no fabricated agent report or empty report string. Step 9 validates these receipts mechanically and still dispatches its independent reviewer.

Add every propagation-touched file to the attribution list. Before **Backfill and verification**, register under the shared protocol's **Coverage** every file first attributed after Step 2(b) (Steps 4–8 writes, not only propagation's) and reclassify every classified file whose bytes changed since: `build` refuses unclassified and stale entries. Classify new locator-only files through the locked-edit receipts; apply Step 2(b)'s proportional semantic/reference inspection to every other new artefact, without re-emitting the hot-capture nudge. When the session log is classified targeted (here, or at Step 2(b) on a merge continuation), phrase each of its `--inspection-target` values as `Session N …`, naming the assigned N (for example `Session 4 Summary and Files sections`) with no other numbers such as line ranges, never an unscoped phrase such as `session delta`: `park-review.py` relaxes its shared-log check only for targets that name the assigned session. This closes the overlap without repeating mechanical checks or promoting imported references into full reads.

Execute **Backfill and verification** in the [shared close-out protocol](../_closeout.md) against this session’s log and N. If later fixes change identifiers, rerun Step 8’s propagation finalisation before verification.

**Propagation terminal failure:** a running seat/observation timeout is not failure. For a terminal API/context failure, retain its handle/error, reconcile actual writes and receipts, and try supported same-seat report recovery. If it cannot return, a replacement on the already-authorised model may rerun the complete current enumeration with the prior write boundary disclosed; no silent model change or approval is inferred. If a required seat remains unavailable, use only the documented incomplete checkpoint.

### 9. Audit until clean (fresh read-only sub-agent — standing authorisation)

Execute **Independent review** in the [shared close-out protocol](../_closeout.md). Supply Step 8’s propagation result and verified Files list. Only a clean completed review permits Steps 10–11 and completion; the explicit Setup incomplete-checkpoint exception remains unchanged.

User changes or world-state updates arriving during/after the gate require the shared protocol's new fix round before completion; a clean earlier report does not cover new bytes. Re-read edited regions and the assigned entry, including heading and all paraphrases, after every repair.

### 10. Skill monitor

Per §8: on the full path, review this park execution including the audit — an audit catch that a documented step should have made is a skill gap, the highest-signal kind. On the quick path, review the checked quick execution without inventing an audit input. On the explicit delegation-unavailable checkpoint, monitor only the work actually performed; no audit input exists. Log observations per `_skill-monitor.md`, else `✓ Skill monitor: No gaps detected`.

Park-owned monitor entries, transcript exports and generated review receipts follow the shared **Late bookkeeping boundary**: retain their own receipts, do not add late Files rows to an already-accepted entry, and do not recursively review mechanical copies. Substantive new work restarts the scoped review.

### 11. Export transcript (last, so it captures the audit)

```bash
python3 "{VAULT}/.claude/scripts/export-session-transcripts.py" "{VAULT}" --days 7 --all-projects
```

`--all-projects` is cwd-independent and merges multi-project days (a single-project export hashes an incomplete day; do NOT use `--fallback-any-project`). `--days 7` because the cutoff is a rolling window from now — `--days 1` truncates boundary days. Report the count. The exporter covers Claude Code sessions and Codex rollouts alike; a Codex session's heading is `### codex-<id13> (HH:MM)`, `<id13>` being the first 13 characters of its rollout filename's UUID. The printed totals do not establish this session: to confirm it landed, search that day's `06 Archive/OpenCairn/.Session Transcripts/YYYY-MM-DD.md` for `### codex-<id13> (`, not the full UUID.

### Measurement close-out (full, quick and blocked paths)

Batch this with the last existing tool call before the final response; it does not replace any audit gate:

```bash
python3 "{VAULT}/.claude/scripts/park-metrics.py" record --harness codex --session-id "$CODEX_THREAD_ID" --outcome <completed|blocked|aborted> --review-rounds <completed reports> --correction-rounds <fix rounds> --confirmed-findings <distinct confirmed findings>
```

Use the actual harness transcript session ID (resolve via `lib-session.sh` when needed), not a synthetic bookkeeping suffix. Count independent audit reports only, including the clean pass; exclude propagation and report-only recovery. Count each accepted finding once. Omit any unknown count flag; do not turn missing data into zero. Quick success has zero audit counts only after its checks pass. A recording error is reported but does not block parking. The scheduled collector measures through the final response. Do not ask for human review time routinely; record it only when supplied by the user. Contract and report commands → `{VAULT}/.claude/scripts/park-metrics-guide.md`.

### 12. Full-path completion message

```
✓ Quality check: N files, [no issues | M fixed]   (or “no attributed files” when Step 2(a)'s checked inventory was empty)
✓ Session N saved: 06 Archive/OpenCairn/Session Logs/YYYY-MM-DD.md
✓ At-risk work product: [none | persisted N]
✓ Project doc: [updated [[Name]] | no material change]
✓ Reference graph: [N files updated | No identifier values changed — checked final enumeration; no propagation agent despatched | pre-log/inline discharge — <identifiers>; final re-run checked]
✓ Open loops routed: N (This Week: X, Tickler: Y, Project: Z, Whimsy: W)
✓ park-verify: PASS
✓ Audit: [clean pass | N findings fixed and re-audited clean]
✓ Skill monitor: [no gaps | N logged]
✓ Transcript exported: N sessions
Check: [judgement call to verify — file or target]
Missing: [detail needed but not available — where it was left out]

Parked.

[Roughly 50 words summarising the preceding session.]
```

**Check / Missing lines:** print after the status lines and before the closing word. `Check:` names a judgement call this park made where a reasonable alternative would change what the user does next (a routing target, project link, dedup skip, classification or session framing). `Missing:` names detail this park needed but did not have (a value left out rather than invented, an unknown event date, an unresolved pass/fail criterion) and where the gap was left, including a gap a propagation seat reported. One line per item, naming its file or target. Omit either heading entirely when it has no items; never write `none`. Choices made under this skill's rules and things omitted as routine are not listed. These lines are where the user answers; acting on an answer is post-park work (below).

Work done after this message is unparked: a further `$park` in the same conversation takes Step 1's merge path.

Files in this skill

  • SKILL.md60.7 KB
  • agents/openai.yaml206 B
  • references/prepare.md2.6 KB
  • scripts/park-review.py89.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.