dump
Session exit and handover -- execute an immediate emergency handover when invoked by the user, or a calm routine wrap-up when invoked by the agent at session end (committing work, minting retroactive tasks, capturing durable facts, releasing tasks, and emitting a final report). Use when the user runs /dump, or when completing work, resetting context, or transitioning environments. Exclude for in-session updates (use reconcile).
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 3
01 前言 Front Matter
- name
- dump
- description
- Session exit and handover -- execute an immediate emergency handover when invoked by the user, or a calm routine wrap-up when invoked by the agent at session end (committing work, minting retroactive tasks, capturing durable facts, releasing tasks, and emitting a final report). Use when the user runs /dump, or when completing work, resetting context, or transitioning environments. Exclude for in-session updates (use reconcile).
02 资源文件 1
- 脚本scripts/file_claims.py2.7 KB
03 SKILL.md 正文
Dump -- Session Exit and Handover
Determine the invocation mode before acting:
- User-run
/dump(Emergency Handover): Invoked when the user runs/dump(or/ida:dump) as a command in their prompt turn (not an informational question about/dump), whatever wording, context, or trailing instructions accompany it. - Agent-run
/dump(Routine Wrap-Up): Invoked on the agent's own initiative at session end (task completion via/pull, context reset, or environment transition).
Mode 1: User-Run /dump (Emergency Handover)
- Stop immediately: Halt all in-progress task execution at the exact point reached. Start no further work -- no new reviews, no new dispatches, no re-dispatches, no new test suites, and no remaining task steps.
- Wind down active work: If subagents or background tasks are running, immediately message each subagent (e.g.
send_message) to finish its immediate turn and return its current state without starting another step, and kill active background tasks or timers (e.g.manage_task: kill). - Save current state and hand over: Proceed directly through Steps 1–7 below for the work as it stands right now -- commit modified files (describing partial state), record durable facts under
## Durable Facts(offering topaulionly if already active, without spawning a new subagent), update and release claimed PKB tasks aspartial(ordoneonly if all acceptance criteria were already verified before/dumpwas called), and emit the final handover report.
Mode 2: Agent-Run /dump (Routine Wrap-Up)
Execute the calm, routine wrap-up across Steps 1–7 below.
Procedure
1. Save and Push Work
- Stage specific modified files (never blanket
add -A) and commit. If work is incomplete, describe what is partial in the commit message. - Deliver commits only where the task's Output names. If Output says nothing is pushed or names only a PKB task or note, do not push. If Output names a branch or pull request, push commits to that remote branch (
git push). Worker pull requests open as a draft (gh pr create --draft) and are marked ready for review (gh pr ready) only after the independent check passes and its review verdict is posted to the PR thread, without waiting for approval. Ephemeral container and session scratch paths (<appDataDir>/brain/,/tmp/, unpushed working trees) vanish on exit; persist non-git evaluation datasets, specimen tables, and reports in the PKB with durable pointers. - For pull requests (
gh pr create --draft), target the diverged base branch (e.g.--base "${BASE_BRANCH:-${POLECAT_BASE_BRANCH}}"). - Record the branch name and commit SHA in the final report.
2. Retroactive Tasks for Unparented Project Edits and Operational Faults
If an ad-hoc or interactive session modified repository project files without an assigned task, or diagnosed and fixed/recovered from a significant operational fault without modifying repository files, create a retroactive task on the knowledge graph before exit:
- Minting & Parentage: Mint a task via task creation tools with
classification: choreorimplementation, linkingparentto the relevant project or standing operational epic (preventing orphan root tasks). Provide a concise, verb-led imperative title (e.g.Recover gateway from 502 outage). - Canonical Body Format: Format the body using the canonical 5-section concise template (
Goal,Deliverable,Scope,Acceptance criteria,Pointers) persynthesize-not-accrete. Diagnostic logs and recovery checks belong in completion metadata (status: donerelease evidence); enduring architectural insights belong in durable topic notes offered to the knowledge base custodian (pauli). - Immediate Release: Release the task immediately as
donewith completion evidence detailing touched files and commit SHA, or operational recovery actions and verified health check. - Significant Fault Threshold: Covers service downtime/degradation (HTTP 500/502/503, inaccessible endpoints), crashed or leaking containerized services/daemons requiring manual restarts, authentication/credential failures, and latent defects diagnosed to root cause.
- Routine Operations Exempt: Status checks, health pings, inspecting healthy logs, ephemeral local container restarts during normal development without an underlying fault, routing sweeps, and conversational queries require no task. Minor user-directed edits not useful 30 days later require no task.
- Bug Tracking Demarcation: Retroactive tasks capture the operational recovery chore on the graph. Latent software defects or code bugs are filed on GitHub issues ("Bugs go on GitHub only").
- Headless Workers: Dispatched workers on assigned tasks are strictly bound to their task boundary; unparented edits or external faults are a containment breach under
fail-fast-- record observations for handover and releasepartialorfailedrather than minting unrelated retroactive tasks.
3. Capture Durable Facts and Repair Contradictions
- Durable Facts (Six-Month Threshold): Review decisions, constraints, and verified environment invariants learned during the session. If a fact holds enduring institutional value across a six-month horizon:
- In interactive sessions, offer the fact directly to the knowledge base custodian (
pauli) as content. - In headless or isolated worker sessions, record the facts under
## Durable Factsin the task record and handover summary for custodian collection.
- In interactive sessions, offer the fact directly to the knowledge base custodian (
- Knowledge Base Repair on Sight: When encountering conflicting, incorrect, irrelevant, demonstrably false, or outdated knowledge base information during the session, report the contradiction and affected notes to the custodian (
pauli) for on-sight correction and pruning.
4. Release Claimed Tasks
For each claimed task (releasing child tasks first):
- Refetch Current Task State: Fetch the latest task state from the PKB (
pkb_get_task) prior to applying updates or generating the report. This ensures fresh visibility into requirements, acceptance criteria to verify and tick, and the real-time completion status of subtasks. - Update Task Body and Report: Update the task body so its
## Reportsection records the outcome and thepremise-checkreport argument (asked by the task's frozen ask ids). - Release via
pkb_release_task, passing the activesession_id:
done: All in-scope acceptance criteria are fully met with verified evidence recorded in the task's Report section: quoted output,file:linecitations, counts, specimen runs, and the report argument answering each<task id>/AC<n>.- For a container coordinator (
/supervise): When all in-session deliverables and pull requests are completed, and any remaining work was intentionally queued as explicit out-of-session follow-up tasks on the graph (e.g. work in a different repository, scheduled for a later time, or assigned to a separate external agent such asidachannel delivery), release the claimed repo task asdone, recording those queued follow-up task IDs underNext step. - For plain leaf workers (
/pull): All acceptance criteria must be satisfied directly without delegating to child or follow-up tasks. - When the deliverable is a PR, push the branch, open the PR, record
pr_urland branch, and releasedone. An empty, template, or bare-assertion report is released aspartial.
- For a container coordinator (
partial: The worker's own acceptance items remain unfinished (a scope seam, an external dependency, a context reset, or a missing tool) OR internal in-session subtasks created by the session remain uncompleted. If a/supervisesession left in-session subtasks incomplete or interrupted, the claimed task must be released aspartial(neverdone), documenting what was completed, open subtasks, and what remains unfinished inreasonand## Report. Plain leaf workers releasepartialwhenever any acceptance item lacks verified evidence, and never mint follow-up tasks. Never release aspartialmerely because an external dependent check (QA, merge, deploy) remains to run.failed: Terminal failure, unrecoverable blocker, or check failure (e.g. QA or review). Document failure evidence and root cause.cancelled: Task is obsolete or invalidated. Document reason.in_progress: Use only if an active successor session is immediately continuing work.review: Never set or releasereview. Reserved exclusively for manual human holds applied directly by the user.
Task report format (for release_task body update in ## Report and session task summary):
### Task: <task-id> (<title>) -- <status>
- **Update**: [1-3 sentences on work completed and remaining]
- **Output**: [Branch, commit SHA, PR link, or artifact path]
- **Rule Violations**: [None | List of violations with rule name, source, and explanation]
- **Proof**:
```argdown
<the premise-check argdown block, asked by the task's ask ids>
```
The status above is the task's release status. PASS, REVISE and FAIL are the checker's verdict on this argument, recorded by whoever checks it under ## Premise-Check Verdict; a worker never writes a verdict on its own report. If the release tool is unavailable, record the failure trace and list claimed task IDs in the final report.
5. Consolidated Daily Note Project Updates
Determine all projects touched during the session (modified files, updated tasks, or major operational finds without code changes):
- Triggers: Projects touched are determined by (1) repository files modified, (2) claimed or retroactive tasks updated, or (3) major operational finds or service recoveries achieved without code changes.
- Major Find Threshold: Remediating a significant service outage/fault, isolating root causes of systemic issues, or significant empirical discoveries that invalidate hypotheses or uncover critical risks. Routine commands, status queries, or pure triage sweeps are exempt. Shared service/daemon recoveries attribute to the relevant platform infrastructure project.
- Recording Format:
- Interactive / Coordinator Sessions: Write exactly one consolidated bullet per touched project into the daily note under
## Today's work:- **<project-name>**: <latest status or major find in 10-20 words> -- Next: <pointer or resumption prompt>If the completed recovery has no follow-up task or resumption prompt, omit the-- Next: ...suffix:- **<project-name>**: <latest status or major find in 10-20 words> - Headless / Isolated Worker Sessions: Emit the consolidated project status in the handover block on the record to prevent write contention; subsequent daily sweeps absorb them.
- Interactive / Coordinator Sessions: Write exactly one consolidated bullet per touched project into the daily note under
6. Disciplined Next-Step Determination
Workers never sequence work or invent speculative follow-ups ("park on a downward slope"):
- Pre-Existing Dependent Work: If an authorized follow-up task, child QA task, or review task already exists on the graph, provide an explicit pointer (
[[task-id]]or URL). - Container Coordinator Follow-Ups (
/supervise): When a container coordinator completes all in-session deliverables and has queued explicit out-of-session follow-up tasks on the graph (such as a different repository task, anidachannel delivery task, or a deferred sequential step), record those queued task IDs underNext step. Plain/pullleaf workers operate strictly state-only and never create or name follow-up tasks. - Interrupted Work: If a task is released as
partialorin_progress(context boundary, environment migration, user halt), provide a self-contained 2-4 sentence resumption prompt detailing current state, touched files, and exact starting instructions for a fresh agent. - Fully Completed Work: If the task is
doneand no follow-up task exists on the graph, stateNone.
7. Emit Final Handover Report
Compile the overall session outcome with session traceability:
## Handover: <agent> <session-id / conversation-id>
1. **Task**: <task-id and title, or "Ad-hoc / Retroactive: <id>">
2. **Summary**: Concise synthesis of findings, modifications, and outcomes.
3. **Status & Safeguards**:
- STATUS: <done | partial | failed | cancelled | in_progress>
- GATE: <the acceptance criterion id tested, and observed result against it>
- CONFIDENCE: <high | med | low> + <what single check would falsify this>
- CONFOUND CHECK: <did a clean-room/differential control run? result? -- or "NOT RUN">
4. **Output**: <branch + commit SHA> | <PR or artifact link>
5. **Next step**: <[[task-id]] pointer | Resumption prompt | None>
6. **Durable Facts**: [None | List of durable facts offered to Pauli or recorded for collection]
7. **Argument**: The `argdown` block recorded under the task's `## Report`.
8. **Limitations**: Unresolved items, out-of-scope elements, and verbatim error outputs.
9. **Rule Violations**: [None | Disclosed violations with rule citations and reasons]
04 同仓库更多 Skills
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
madr
Draft Markdown Architectural Decision Records (MADR) capturing context, considered options, decision outcomes, and consequences. Use when recording an architectural decision, documenting a technical choice, or evaluating design alternatives. Exclude for declarative target-state specifications (use specs) or task planning (use reify).