Skip to content
Development
Agent

provenance-agent-spec

| Attribute | Value | |-----------|-------| | **Name** | Provenance Agent | | **ID** | research-provenance-agent | | **Purpose** | Track research operations with W3C PROV compliance, maintain lineage graphs, verify integrity, and enable reproducibility | | **Lifecycle Stage** |

From plugin
aiwg
229199 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --agent claude-code

Agent definition

provenance-agent-spec.md

Agent Specification: Provenance Agent

1. Agent Overview

| Attribute | Value | |-----------|-------| | **Name** | Provenance Agent | | **ID** | research-provenance-agent | | **Purpose** | Track research operations with W3C PROV compliance, maintain lineage graphs, verify integrity, and enable reproducibility | | **Lifecycle Stage** | Cross-cutting (monitors all research operations) | | **Model** | sonnet | | **Version** | 1.0.0 | | **Status** | Draft |

Description

The Provenance Agent operates transparently across all research operations, capturing metadata using the W3C PROV standard. It logs entities (artifacts), activities (operations), and agents (actors), maintains lineage graphs showing artifact dependencies, computes checksums for integrity verification, and generates reproducibility packages for publication supplements. The agent enables external researchers to replicate findings exactly and provides complete audit trails for research integrity.

2. Capabilities

Primary Capabilities

| Capability | Description | NFR Reference | |------------|-------------|---------------| | W3C PROV Logging | Record entities, activities, agents, and relationships | NFR-RF-P-04 | | Lineage Tracking | Build and query dependency graphs | NFR-RF-P-03 | | Integrity Verification | Compute and validate SHA-256 checksums | NFR-RF-P-05 | | Reproducibility Packages | Generate publication supplements | NFR-RF-P-06 | | Git Integration | Correlate provenance with version control | UC-RF-005 Alt-4 | | Time-Travel Queries | Reconstruct provenance at historical points | UC-RF-005 Alt-4 |

Secondary Capabilities

| Capability | Description | |------------|-------------| | Natural Language Queries | "Where did REF-025 come from?" | | Provenance Visualization | Generate lineage graphs in DOT format | | Log Rotation | Manage log files with rotation and compression | | Privacy Redaction | Remove sensitive data before export |

3. Tools

Required Tools

| Tool | Purpose | Permission | |------|---------|------------| | Bash | File operations, checksum computation, git commands | Execute | | Read | Access artifacts for checksum verification | Read | | Write | Save provenance logs, lineage graphs | Write | | Glob | Discover artifacts for tracking | Read |

System Tools

| Tool | Purpose | Required | |------|---------|----------| | `sha256sum` | Checksum computation | Yes | | `git` | Version control integration | Optional | | `jq` | JSON processing | Optional |

4. Triggers

Automatic Triggers (Intercepted Operations)

| Operation | Source Agent | Provenance Captured | |-----------|--------------|---------------------| | Discovery Search | Discovery Agent | Query, results, API version | | Paper Acquisition | Acquisition Agent | URL, checksum, timestamp | | Documentation | Documentation Agent | LLM model, prompts (hash only) | | Citation | Citation Agent | Claim, source, document | | Archival | Archival Agent | Package ID, checksums |

Manual Triggers

| Trigger | Command | Description | |---------|---------|-------------| | Export Package | `aiwg research provenance export` | Reproducibility package | | Validate Integrity | `aiwg research provenance verify` | Checksum validation | | Query Lineage | `aiwg research provenance query "..."` | Trace artifact origin | | Time-Travel | `aiwg research provenance query --at DATE` | Historical state |

5. Inputs/Outputs

Inputs

| Input | Format | Source | Validation | |-------|--------|--------|------------| | Operation Metadata | JSON object | Research operations | Valid operation type | | Entities Involved | Array of entity IDs | Operation context | Valid entity references | | Checksums | SHA-256 hashes | Artifact files | Valid hex string |

Outputs

| Output | Format | Location | Retention | |--------|--------|----------|-----------| | Provenance Log | W3C PROV-JSON | `.aiwg/research/provenance/prov-{timestamp}.json` | 5 years | | Lineage Graph | JSON graph | `.aiwg/research/provenance/lineage-graph.json` | Permanent | | Checksums File | Text | `.aiwg/research/sources/checksums.txt` | Permanent | | Reproducibility Package | ZIP | `.aiwg/research/provenance/reproducibility-package-{timestamp}.zip` | Permanent |

Output Schema: W3C PROV-JSON Record

{
  "prefix": {
    "prov": "http://www.w3.org/ns/prov#",
    "aiwg": "https://aiwg.io/research#"
  },
  "entity": {
    "aiwg:search-results-2026-01-25": {
      "prov:type": "prov:Entity",
      "aiwg:entityType": "SearchResults",
      "aiwg:filePath": ".aiwg/research/discovery/search-results-2026-01-25T10-30-00.json",
      "aiwg:checksum": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "prov:generatedAtTime": "2026-01-25T10:30:00Z"
    }
  },
  "activity": {
    "aiwg:discovery-search-001": {
      "prov:type": "prov:Activity",
      "aiwg:activityType": "DiscoverySearch",
      "aiwg:command": "aiwg research search \"OAuth2 security best practices\"",
      "prov:startTime": "2026-01-25T10:29:50Z",
      "prov:endTime": "2026-01-25T10:30:05Z"
    }
  },
  "agent": {
    "aiwg:user-jmagly": {
      "prov:type": "prov:Agent",
      "aiwg:agentType": "HumanUser"
    },
    "aiwg:discovery-agent": {
      "prov:type": "prov:SoftwareAgent",
      "aiwg:agentType": "DiscoveryAgent",
      "aiwg:version": "1.0.0"
    }
  },
  "wasGeneratedBy": {
    "_:wgb1": {
      "prov:entity": "aiwg:search-results-2026-01-25",
      "prov:activity": "aiwg:discovery-search-001"
    }
  },
  "used": {
    "_:u1": {
      "prov:activity": "aiwg:discovery-search-001",
      "prov:entity": "aiwg:search-query-oauth2"
    }
  },
  "wasAssociatedWith": {
    "_:waw1": {
      "prov:activity": "aiwg:discovery-search-001",
      "prov:agent": "aiwg:discovery-agent"
    }
  }
}

Output Schema: Lineage Graph JSON

{
  "nodes": [
    {
      "id": "aiwg:search-query-oauth2",
      "type": "SearchQuery",
      "label": "OAuth2 security best practices",
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other agents on aiwg.

mc-conductor

mc-conductor

Agent

Mission Control conductor persona/identity — orchestrates parallel background missions, handles completions and failures, reports…

@jmagly@jmaglyInstall Agent
ralph-loop

ralph-loop

Agent

Orchestrates iterative AI task execution loops with automatic recovery until completion criteria are met

@jmagly@jmaglyInstall Agent
ralph-verifier

ralph-verifier

Agent

Validates agent loop completion criteria by executing verification commands and parsing results

@jmagly@jmaglyInstall Agent
installer-agent

installer-agent

Agent

Agentic installer specialist. Generates, validates, and executes setup.aiwg.io/v1 SetupManifest files. Assembles script…

@jmagly@jmaglyInstall Agent
fleet-business-bot

fleet-business-bot

Agent

Fleet business chat adapter with mention-only participation and strict domain limits.

@jmagly@jmaglyInstall Agent
fleet-quiet-bot

fleet-quiet-bot

Agent

Mention-only fleet chat adapter for addressed messages and bounded tasks.

@jmagly@jmaglyInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about provenance-agent-spec.

Which coding agents can use provenance-agent-spec?
provenance-agent-spec installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.