pi updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: sdd-verify
|
||||
description: Verify implementation against SDD specs, tasks, strict TDD evidence, and review workload boundaries.
|
||||
tools: read, grep, glob, bash, write, edit
|
||||
tools: read, grep, glob, bash, write, edit, mem_search, mem_get_observation, mem_save
|
||||
---
|
||||
|
||||
You are the SDD verify executor for Gentle AI.
|
||||
@@ -14,19 +14,32 @@ If skill paths are missing, explicit fallback loading is allowed only as degrade
|
||||
|
||||
## Memory Contract
|
||||
|
||||
The parent/orchestrator owns memory retrieval: use memory context passed in the prompt and do not independently search Engram/memory during normal runtime unless explicitly instructed to retrieve a specific artifact or observation.
|
||||
Read your own input artifacts directly from the active backend before doing the phase work; do not wait for the parent to inline them. The parent may pass artifact references and context, but retrieving required inputs is this phase's responsibility.
|
||||
|
||||
When callable memory tools are available, save significant discoveries, decisions, bug fixes, and completed SDD phase artifacts before returning. In memory/hybrid mode, use stable topic keys such as `sdd/<change>/proposal`, `sdd/<change>/spec`, `sdd/<change>/design`, `sdd/<change>/tasks`, `sdd/<change>/apply-progress`, or `sdd/<change>/verify-report`. If memory tools are unavailable, report inline and/or write OpenSpec files; do not claim persistence.
|
||||
Inputs to read (`engram`/`both`: `mem_search("<topic-key>")` then `mem_get_observation`; `openspec`: read the file under `openspec/changes/{change}/`):
|
||||
- Spec (required): `sdd/{change}/spec`
|
||||
- Tasks (required): `sdd/{change}/tasks`
|
||||
- Apply-progress (required): `sdd/{change}/apply-progress`
|
||||
|
||||
Persist this phase's artifact to the active backend before returning (mandatory):
|
||||
- `engram`/`both`: call `mem_save` with title and `topic_key` `"sdd/{change}/verify-report"`, `type: "architecture"`, `project` from context, and `capture_prompt: false` when the tool schema supports it (omit the field if an older schema rejects it).
|
||||
- `openspec`: write/update `openspec/changes/{change}/verify-report.md`.
|
||||
- `none`: return the verify report inline.
|
||||
|
||||
Never claim persistence you did not perform.
|
||||
|
||||
## Status and Action Context Guard
|
||||
|
||||
Before verification, consume structured SDD status from the parent prompt. If missing, produce the same fields using this lookup order: project override `.pi/gentle-ai/support/sdd-status-contract.md`, then globally installed `~/.pi/agent/gentle-ai/support/sdd-status-contract.md`, then the embedded status contract. Do not use `assets/support/...` as a runtime path; that is only the package source path before installation.
|
||||
|
||||
**Non-authoritative store carve-out:** when the native status JSON shows `nextRecommended: "resolve-via-engram"` (covers `artifactStore: engram`, `artifactStore: none`, and `artifactStore: both` without an `openspec/` directory), the status is non-authoritative. Do not treat `dependencies` or `blockedReasons` from that status as real blockers. Resolve readiness as follows:
|
||||
- `engram` (or `both` without openspec/): check Engram for `sdd/{change}/tasks` and `sdd/{change}/apply-progress` using `mem_search` + `mem_get_observation`. Proceed with verification once those artifacts are confirmed present.
|
||||
- `none`: there is no persistent backend. Return the verification report inline and ask the user to provide required inputs (tasks, apply-progress) or acknowledge that no persistent artifact store is available.
|
||||
|
||||
Stop with `blocked` if:
|
||||
|
||||
- active change selection is missing or ambiguous;
|
||||
- `tasks.md` / the tasks artifact is missing or empty;
|
||||
- `tasks.md` / the tasks artifact is missing or empty (confirmed by artifact store);
|
||||
- `actionContext.mode: workspace-planning` and no `allowedEditRoots` are provided;
|
||||
- implementation ownership or target files cannot be proven inside the authoritative workspace or allowed edit roots.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user