jetxu-llm/docmason/provenance-trace
Claude Code and agent skill by jetxu-llm/docmason
- community
Checking that the SKILL.md file is still in the repository.
Trace published DocMason knowledge objects or answer text back to evidence units and provenance records.
Install
npx vskill@latest install jetxu-llm/docmason/provenance-traceSKILL.md
Provenance Trace
Use this skill when the task is to prove where a knowledge object or answer came from.
Use it directly for explicit provenance or citation requests, or let ask route here automatically.
Direct public trace remains a legal operator provenance surface. It does not substitute for canonical ask when the user is really asking for ordinary answer completion.
Required Capabilities
- local file access
- shell or command execution
- ability to inspect structured JSON output
If the agent cannot inspect the local trace artifacts or source evidence, stop and explain that reliable provenance tracing is not possible.
Procedure
- Use
currentas the default knowledge-base target unless the task explicitly says otherwise. - For citation-first tracing, run:
docmason trace --source-id <source_id> --json --compact- optionally add
--unit-id <unit_id>for unit-level detail - if you genuinely need nested support objects or detailed render metadata, rerun full
--jsonto a local file and inspect it selectively instead of pasting the raw payload into chat - keep DocMason workspace commands sequential inside the same workspace session; do not overlap
trace,retrieve,sync,status, orvalidate-kbwhile a lease-owning command is still active
- For answer-first tracing, run:
docmason trace --answer-file <path> --json --compact- or
docmason trace --session-id <session_id> --json --compact - do not invent a new freeform
--source-refsurface in this phase; public trace remains ID-first
- Inspect:
payload_detail- any inherited
reference_resolutionblock on answer-first traces answer_state- source provenance
- unit consumers
- incoming and outgoing relations
- grounding status for each answer segment
- compact
supporting_source_ids - compact
supporting_unit_ids supporting_artifact_idssupporting_overlay_unit_ids- segment
support_lane_counts - segment
artifact_support_count - segment
semantic_support_count - artifact
focus_render_assetswhen present - render-inspection requirements
- if the provenance judgment depends on nested
artifact_supports,semantic_supports, overlay consumed inputs, covered slots, blocked slots, render refs,render_page_span,bbox,normalized_bbox, or sidecar paths, inspect a file-first full trace capture instead of the raw chat payload
- If any segment is only partially grounded or unresolved, say so explicitly and avoid pretending stronger provenance than the trace supports.
- Return the final provenance or groundedness judgment to the main agent instead of treating trace output as a final user answer by itself.
- If you need to export a scratch trace note and the user did not specify a destination, place it under
runtime/agent-work/.
Escalation Rules
- If
render_inspection_requiredis true, inspect the cited render assets before claiming a confident conclusion. - If the trace cannot resolve the requested source, session, or answer path, surface the not-found failure directly.
- If the traced answer state is not
grounded, qualify or abstain rather than overclaiming support. - If answer-first trace inherits an
approximateorunresolvedreference-resolution block, preserve that boundary in the provenance summary instead of silently upgrading it.
Completion Signal
- The workflow is complete when the main agent has a clear provenance summary, including any
answer_state, unresolved segments, and render-escalation requirements.
Notes
- Phase 4 tracing reads
knowledge_base/current/trace/by default. - Answer-first tracing stores structured local logs under
runtime/logs/. --session-idworks only for sessions that contain a reusable final answer.- In Phase 6b2, answer-first trace reuses the same shared reference-resolution contract already attached to the originating ask turn or retrieval session.
- When a trace says render inspection is needed, inspect the render assets before claiming a confident conclusion.
- Ordinary natural questions should usually begin at
ask, which can route here when provenance is the real intent.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/canonical/provenance-trace/SKILL.md
Popularity
- Repository stars
- 129
- Repository forks
- 34
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jetxu-llm/docmason/provenance-trace)