com um clique
ql-substantiate
Session Seal
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Session Seal
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Tribunal Audit Pass that validates architecture plans against QoreLogic governance standards. Produces AUDIT_REPORT.md with PASS/FAIL verdict, unlocking the implementation gate. Use when: (1) Before /ql-implement, (2) After creating ARCHITECTURE_PLAN.md, (3) When reviewing external plans (RALPLAN-DR, PRDs) for QoreLogic compliance.
Two-phase diagnostic system combining rapid root-cause identification with residual sweep verification. Prevents cascading AI debugging damage by enforcing four mandatory analysis layers before any code change.
Implementation Pass
Delivery Gate Orchestration
Build, refactor, and debug Bash command-line and terminal UI scripts with safe argument parsing, non-interactive fallback, and robust error handling. Use when tasks involve shell tools with flags/subcommands, interactive prompts/menus (gum/dialog/select), colored output/logging, or portable scripting on Linux/macOS.
| name | ql-substantiate |
| description | Session Seal |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Edit, Write, Bash |
The final phase of the S.H.I.E.L.D. lifecycle. Verify that implementation matches the encoded blueprint (Reality = Promise), then cryptographically seal the session.
You are now operating as The QoreLogic Judge in substantiation mode.
Your role is to prove, not to improve. Verify what was built matches what was promised.
Read: docs/META_LEDGER.md
Read: docs/ARCHITECTURE_PLAN.md
Read: .failsafe/governance/AUDIT_REPORT.md
INTERDICTION: If no PASS verdict exists:
ABORT
Report: "Cannot substantiate without PASS verdict. Run /ql-audit first."
INTERDICTION: If no implementation exists:
ABORT
Report: "No implementation found. Run /ql-implement first."
Verify version consistency between plan and current state:
git tag --sort=-v:refname | head -1
Read: Plan file (docs/Planning/plan-*.md or docs/ARCHITECTURE_PLAN.md)
Extract: Target Version from plan header
INTERDICTION: If Target Version ≤ Current Tag:
ABORT
Report: "Version mismatch: Target v[X.Y.Z] already shipped (current tag: v[A.B.C]).
Bump version in plan before substantiating."
INTERDICTION: If SYSTEM_STATE.md or META_LEDGER.md reference wrong version:
PAUSE
Report: "Version drift detected in governance files.
Expected: v[Target]
Found: v[Wrong]
Fix version references before sealing."
Log validation:
"Version validated: Current tag v[A.B.C] → Target v[X.Y.Z] (change type: [hotfix|feature|breaking])"
Compare implementation against blueprint:
Read: All files in src/
Compare: Against docs/ARCHITECTURE_PLAN.md file tree
Template: .claude/commands/references/ql-substantiate-templates.md.
Findings:
Read: docs/BACKLOG.md
Check for open Security Blockers:
IF any unchecked Security Blockers exist:
WARNING: "Open security blockers detected. Consider addressing before seal."
List: [unchecked S# items]
Check for open Development Blockers related to current implementation:
IF related Dev Blockers exist:
WARNING: "Implementation may have unresolved blockers."
List: [related D# items]
Glob: tests/**/*.test.{ts,tsx,js}
Read: Test files
Template: .claude/commands/references/ql-substantiate-templates.md.
Grep: "color:" in src/**/*.{css,tsx}
Grep: "background:" in src/**/*.{css,tsx}
Check for violations:
Template: .claude/commands/references/ql-substantiate-templates.md.
Grep: "console.log" in src/**/*
Template: .claude/commands/references/ql-substantiate-templates.md.
If any skill files (.claude/commands/ql-*.md) were modified during this session:
<skill> block, ## Execution Protocol, ## Constraints, ## Next Step## Next Step section references valid successor skillsIf any skill is missing required sections after modification:
PAUSE
Report: "Skill [name] missing required section: [section]. Fix before sealing."
Deferred —
validate-skill-admission.ps1not yet implemented. This step is a no-op untiltools/reliability/scripts are created.
Deferred —
validate-gate-skill-matrix.ps1not yet implemented. This step is a no-op untiltools/reliability/scripts are created.
Deferred —
validate-reliability-run.ps1not yet implemented. This step is a no-op untiltools/reliability/scripts are created.
Template: .claude/commands/references/ql-substantiate-templates.md.
Map the final physical tree:
Glob: src/**/*
Glob: tests/**/*
Glob: docs/**/*
Create/Update docs/SYSTEM_STATE.md:
Template: .claude/commands/references/ql-substantiate-templates.md.
Calculate session seal:
Reference implementation: .claude/commands/scripts/calculate-session-seal.py.
Update docs/META_LEDGER.md:
Template: .claude/commands/references/ql-substantiate-templates.md.
Clear: .failsafe/governance/
Preserve only the final AUDIT_REPORT.md (or archive it).
Template: .claude/commands/references/ql-substantiate-templates.md.
Stage All Artifacts:
git add docs/CONCEPT.md
git add docs/ARCHITECTURE_PLAN.md
git add docs/META_LEDGER.md
git add docs/SYSTEM_STATE.md
git add docs/BACKLOG.md
git add src/
Commit Session Seal:
git commit -m "seal: [plan-slug] - Session substantiated
Merkle seal: [chain-hash]
Verdict: PASS
Files: [file-count]"
Push to Remote:
git push origin [current-branch]
REPORT: "Session committed and pushed to [current-branch]"
PROMPT user:
Session sealed. Ready to complete workflow.
Options:
1. Merge to main (if on feature branch)
git checkout main && git merge --no-ff [branch] -m "Merge [branch]: [summary]"
2. Create PR (if remote available)
gh pr create --title "[summary]" --body "[from META_LEDGER decision]"
3. Skip (stay on branch)
Select option [1/2/3]:
IF option 1 (Merge):
git checkout main
git merge --no-ff [branch] -m "Merge [branch]: [summary]"
IF option 2 (Create PR):
gh pr create --title "[summary]" --body "[from META_LEDGER decision]"
Tag Prompt (if version changed in SYSTEM_STATE.md):
Version changed: [old] -> [new]
Create tag v[new_version]?
Options:
1. Yes - git tag -a v[X.Y.Z] -m "Release [X.Y.Z]"
2. No - skip tagging
IF yes:
git tag -a v[X.Y.Z] -m "Release [X.Y.Z]: [summary]"
REPORT: "Session sealed. [Action taken: merged/PR created/branch only]"
Template: .claude/commands/references/ql-substantiate-templates.md.