provenance-query
Query provenance chains to trace artifact derivation and impact
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- provenance-query
- namespace
- aiwg
- platforms
- [ "all" ]
- commandHint
- { "category": "provenance" }
- description
- Query provenance chains to trace artifact derivation and impact
03 SKILL.md 正文
Provenance Query Command
Query provenance chains to understand artifact derivation, impact, and attribution.
Instructions
When invoked, query provenance graph:
-
Load provenance graph
- Read all records from
.aiwg/research/provenance/records/ - Build in-memory graph of entity relationships
- Index by entity URN for fast lookup
- Read all records from
-
Execute query (based on subcommand)
trace - Full derivation chain for an artifact:
- Follow wasDerivedFrom relationships backward to root sources
- Display as indented tree showing derivation types
- Include depth limiting with
--depth
impact - What depends on this artifact:
- Follow wasDerivedFrom relationships forward
- Show all artifacts that derive from the queried artifact
- Useful for understanding change impact
orphans - Find artifacts without provenance:
- Scan
.aiwg/andsrc/for files - Compare against provenance records
- List untracked artifacts
agents - Show agent attribution:
- Group provenance records by agent
- Show what each agent created/modified
- Include activity counts and timestamps
-
Format output
- Default: indented tree
--format table: Markdown table--format mermaid: Mermaid diagram--format json: Raw JSON
-
Display results
- Show query results
- Include summary statistics
Subcommands
trace [path]- Full derivation chain for artifactimpact [path]- What depends on this artifactorphans- Find artifacts without provenanceagents- Show agent attribution summary
Arguments
[artifact-path]- Path to artifact (required for trace/impact)--direction [forward|backward|both]- Traversal direction (default: both)--depth [n]- Maximum traversal depth (default: unlimited)--format [tree|table|mermaid|json]- Output format (default: tree)
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/schemas/provenance/prov-query.yaml - Query 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.