溯源记录校验
provenance-validate
校验溯源记录和溯源链的完整性与一致性
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- provenance-validate
- namespace
- aiwg
- platforms
- [ "all" ]
- commandHint
- { "category": "provenance" }
- description
- Validate provenance records and chains for completeness and consistency
02 资源文件 12
- 参考文档references/ast-deobfuscation.md146 B
- 参考文档references/automation-entry.md498 B
- 参考文档references/env-patching.md232 B
- 参考文档references/fallbacks.md235 B
- 参考文档references/instrumentation.md198 B
- 参考文档references/local-rebuild.md295 B
- 参考文档references/mcp-task-template.md408 B
- 参考文档references/node-env-rebuild.md264 B
- 参考文档references/output-contract.md258 B
- 参考文档references/task-artifacts.md221 B
- 参考文档references/task-input-template.md165 B
- 参考文档references/tool-defaults.md406 B
03 SKILL.md 正文
Provenance Validate Command
Validate provenance records against the PROV schema and verify chain integrity.
Instructions
When invoked, validate provenance:
-
Load records
- Scan
.aiwg/research/provenance/records/for all.prov.yamlfiles - If specific path provided, validate only that record
- Scan
-
Schema validation
- Validate each record against
@$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/provenance/prov-record.yaml - Check required fields: entity.id, activity.id, agent.id
- Verify URN format compliance
- Verify timestamps are valid ISO-8601
- Validate each record against
-
Entity resolution
- For each entity URN, verify the referenced file exists
- Flag orphaned records (file deleted but provenance remains)
- Detect untracked artifacts (files in tracked directories without provenance)
-
Chain integrity
- Verify wasDerivedFrom sources exist and have their own provenance
- Check bidirectional links (forward references have matching back-references)
- Detect broken chains (missing intermediate records)
-
Completeness check
- Scan
.aiwg/directories for artifacts without provenance records - Calculate coverage percentage
- List untracked artifacts
- Scan
-
Fix mode (--fix)
- Remove orphaned provenance records
- Create stub records for untracked artifacts
- Add missing bidirectional references
-
Report
- Display validation results table
- Show pass/fail/warning counts
- List specific issues with remediation steps
Arguments
[path]- Specific record or directory to validate (default: all records)--all- Validate all records and check completeness--strict- Treat warnings as errors--fix- Auto-fix issues where possible--report [path]- Save validation report to file
References
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/provenance-manager.md - Provenance Manager agent
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/provenance/prov-record.yaml - PROV record schema
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/provenance-tracking.md - Provenance tracking rules
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.