runtime-log-review
Skill152 starsChanged 4 months agoApache-2.0View on GitHub
Review DocMason runtime query-session and retrieval-trace logs through the summary surface rather than raw JSON browsing alone.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adapter-syncSkill
- askSkill
- grounded-answerSkill
- grounded-compositionSkill
- knowledge-base-syncSkill
- knowledge-constructionSkill
- provenance-traceSkill
- retrieval-workflowSkill
- validation-repairSkill
- workspace-bootstrapSkill
- workspace-doctorSkill
- workspace-statusSkill
- operator-evalSkill
- public-sample-workspaceSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the task is to review recent runtime activity, identify failures, or extract candidate cases from DocMason logs.
- Distinctive: line 19
If the agent cannot inspect local runtime logs, stop and explain that log review is not possible.
- Very specific: line 24
Start with runtime/logs/review/summary.json and runtime/logs/review/benchmark-candidates.json when they exist.
- Very specific: line 25
treat live conversation state under runtime/state/ as the owner and runtime/logs/conversations/ as projection-only
- Distinctive: line 29
Use the summary modes that best match the request:
- Distinctive: line 42
When the summary shows a case worth deeper inspection, open the referenced query-session or retrieval-trace JSON directly.
- Distinctive: line 43
If the operator needs the underlying evidence, route to retrieval, provenance tracing, or grounded-answer rather than guessing from log …
- Distinctive: line 44
Keep the workflow descriptive and review-oriented.
- Very specific: line 45
If you need to export a scratch review summary and the user did not specify a destination, place it under runtime/agent-work/.
- Very specific: line 46
Treat runtime/logs/review/requests/<request_id>.json as the canonical audit surface for the explicit review request that refreshed or read …
- Very specific: line 51
If runtime/logs/review/summary.json does not exist yet, refresh the workflow once.
- Distinctive: line 52
If the summary shows degraded answer traces or unresolved answer states, preserve that uncertainty instead of flattening it into a generic …
- Distinctive: line 53
If the request requires evidence validation rather than log review, switch to retrieval or provenance tracing.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Runtime Log Review
Use this skill when the task is to review recent runtime activity, identify failures, or extract candidate cases from DocMason logs.
This is an explicit operator-facing workflow.
The user may ask for it directly, or ask may route here automatically when the real intent is runtime review rather than question answering.
Required Capabilities
- local file access
- shell or command execution
- ability to inspect structured JSON output
If the agent cannot inspect local runtime logs, stop and explain that log review is not possible.
Procedure
- For an explicit operator refresh, prefer
docmason workflow runtime-log-review --jsonso the derived summary and the request-level audit record are regenerated together. - Start with
runtime/logs/review/summary.jsonandruntime/logs/review/benchmark-candidates.jsonwhen they exist.- treat live conversation state under
runtime/state/as the owner andruntime/logs/conversations/as projection-onlyprojection-onlymeans a derived mirror, not the primary truth surface
- require canonical ask ownership before classifying a case as
interactive-ask; workflow names, conversation linkage, or reconciliation leftovers alone are not enough- here
canonical ask ownershipmeans the case is backed by a governed ask turn and linked runtime artifacts, not only host transcript residue
- here
- treat live conversation state under
- Use the summary modes that best match the request:
- recent activity
- no-result retrieval sessions
- artifact-rich queries that still degraded or returned the wrong source family
- degraded answer-first traces
- trace cases where artifact supports existed but the final answer still remained partially grounded or unresolved
- repeated failure patterns
- frequently consulted sources or units
- candidate benchmark or operator-review cases
- real interaction activity versus synthetic evaluation traffic
- active waiting shared jobs
- active confirmation-required shared jobs
- orphaned query sessions or retrieval traces that are not backed by committed truth
- When the summary shows a case worth deeper inspection, open the referenced query-session or retrieval-trace JSON directly.
- If the operator needs the underlying evidence, route to retrieval, provenance tracing, or grounded-answer rather than guessing from log metadata alone.
- Keep the workflow descriptive and review-oriented. Do not mutate prompts, skills, overlays, or benchmarks from inside this workflow.
- If you need to export a scratch review summary and the user did not specify a destination, place it under
runtime/agent-work/. - Treat
runtime/logs/review/requests/<request_id>.jsonas the canonical audit surface for the explicit review request that refreshed or read the review-side outputs. - Return the operator-facing review summary and recommended next steps to the main agent.
Escalation Rules
- If
runtime/logs/review/summary.jsondoes not exist yet, refresh the workflow once. If the regenerated summary still shows no recent activity, explain that the workspace has no recent ask, retrieval, or trace evidence to review yet. - If the summary shows degraded answer traces or unresolved answer states, preserve that uncertainty instead of flattening it into a generic warning.
- If the request requires evidence validation rather than log review, switch to retrieval or provenance tracing.
Completion Signal
- The workflow is complete when the main agent has a concise review summary with the relevant case IDs, repeated patterns, and follow-up recommendations.
Notes
- This is an explicit operator-facing workflow, not a public
docmason review-logscommand. - Each explicit review invocation should leave one replayable request artifact under
runtime/logs/review/requests/. - The review summary is derived from runtime logs under
runtime/logs/. - The summary should distinguish committed truth from orphaned leftovers instead of reconstructing legality from mixed artifacts.
orphaned leftoversmeans reviewable runtime artifacts that are not backed by the committed governing truth for a completed case.runtime/logs/review/benchmark-candidates.jsonis a read-only derived artifact that suggests future benchmark cases from conversation turns, retrieval sessions, and trace outcomes.- Real operator and user interactions should stay at the top of the main recent-activity views; evaluation-suite traffic is intentionally demoted into separate synthetic buckets.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

