一键导入
parzival-save-decision
Save a Parzival session decision to Qdrant for cross-session memory and L2 retrieval
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Save a Parzival session decision to Qdrant for cross-session memory and L2 retrieval
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Detect content drift of an operator's scaffolded sanctum files (BOND, CAPABILITIES, CREED, INDEX, LORE, MEMORY, PERSONA, PULSE) against the evolving reference templates, and surface recommended add/remove WITH rationale — never a silent overwrite. Use on a session-start drift check, after the reference templates change, or when the operator asks whether their sanctum is current.
Check ai-memory system status and collection stats
Check ai-memory system status and collection stats
Manually save current session context to ai-memory
Search ai-memory for relevant stored memories
Search ai-memory for relevant stored memories
| name | parzival-save-decision |
| description | Save a Parzival session decision to Qdrant for cross-session memory and L2 retrieval |
| allowed-tools | Bash |
Save a Parzival session decision (DEC-PMxxx-D#) to Qdrant for cross-session
retrieval. Closes the long-standing TD-519 / F-002 gap where decisions were
file-only — bootstrap L2 retrieval (memory_type=["decision"]) was permanently
empty.
Always run the real script through run-with-env.sh so the skill uses the
installed ai-memory virtualenv and the standard local service defaults.
DEC bodies are multi-line by convention (Decision: ...\nRationale: ...)
and frequently contain embedded ", $, and newlines. Use the
single-quoted heredoc pattern below — single-line --content "..." quoting
silently truncates past the first embedded ", corrupts the SHA-256
content_hash, and defeats the per-DEC dedup contract with no error
signal:
DEC_BODY=$(cat <<'PARZIVAL_DEC_END'
Decision: <full decision text>
Rationale: <full rationale text, may contain "quotes", $signs, and
multiple lines>
PARZIVAL_DEC_END
)
"${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/scripts/memory/run-with-env.sh" parzival_save_decision.py \
--dec-id PM285-D2 \
--content "$DEC_BODY" \
--pm-number 285
The single-quoted terminator ('PARZIVAL_DEC_END') preserves the body
verbatim with no shell variable expansion. The terminator string is
namespace-distinctive — EOF is too common a token and could legitimately
appear at column 0 within a DEC body — so accidental early termination is
vanishingly unlikely. The terminator must not appear at column 0 on its
own line within the body.
Alternative (write DEC body to a temp file first):
"${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/scripts/memory/run-with-env.sh" parzival_save_decision.py \
--dec-id PM285-D3 \
--content "$(cat /tmp/dec.txt)" \
--rationale "Cited BP-157 §primitive 4" \
--session-id PM285 \
--pm-number 285
When working from an ai-memory repo checkout, ./scripts/memory/run-with-env.sh ...
is an equivalent contributor shortcut.
scripts/memory/parzival_save_decision.pydecision (allowlist extension D-2-A in src/memory/storage.py)parzivalMemoryType.DECISION — unmapped types skip the chunker)content_hash via compute_content_hash() — re-emit is idempotentdecision-log.md is the primary recordstep-05-save-and-confirm.md