agentsclimarketplace

Compliance measurement

Skill MohamedAbdallah-14/Wazir/skills/compliance-measurement

Measure pipeline compliance for a completed run — checks phase execution, artifact production, gate evidence, hook enforcement, and publishes per-step and aggregate compliance scores.From its SKILL.md

Install
npx -y skills add MohamedAbdallah-14/Wazir --skill compliance-measurement

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.2 KB, as published. Nobody here has run it

Real talk: the pipeline steps aren't suggestions. Check .wazir/runs/latest/phases/ for your current checklist and work through it. Use wz: skills when they apply — that's not optional. What phase are you starting?

Compliance Measurement

Measure how faithfully the pipeline was followed during a run. Produce per-phase and aggregate compliance scores backed by evidence.

Command Routing

Follow the Canonical Command Matrix in hooks/routing-matrix.json.

  • Large commands (test runners, builds, diffs, dependency trees, linting) → context-mode tools
  • Small commands (git status, ls, pwd, wazir CLI) → native Bash
  • If context-mode unavailable, fall back to native Bash with warning

Codebase Exploration

  1. Query wazir index search-symbols <query> first
  2. Use wazir recall file <path> --tier L1 for targeted reads
  3. Fall back to direct file reads ONLY for files identified by index queries
  4. Maximum 10 direct file reads without a justifying index query
  5. If no index exists: wazir index build && wazir index summarize --tier all

When to Run

  • During the final_review phase, after integration verification and before learnings extraction
  • On-demand via /wazir compliance for any completed or in-progress run

Inputs

  • Run directory: .wazir/runs/<run-id>/ (or .wazir/runs/latest/)
  • Event log: events.jsonl
  • Phase artifacts in run directory
  • Git log for the run's branch

Measurement Dimensions

1. Phase Execution (weight: 30%)

Check whether each pipeline phase was entered and exited:

CheckEvidenceScore
Phase enter event existsevents.jsonl contains phase_enter for each expected phase1 per phase
Phase exit event existsevents.jsonl contains phase_exit for each completed phase1 per phase
No phases skippedAll phases between first and last have enter/exit pairs0 or 1
Phase order correctEnter events appear in pipeline-defined sequence0 or 1

Scoring: (phases_with_enter_exit / expected_phases) * 100

2. Artifact Production (weight: 25%)

Check whether required artifacts exist and are non-empty:

PhaseRequired Artifacts
clarifyclarified/clarification.md
specifyclarified/spec-hardened.md
designclarified/design.md
planclarified/execution-plan.md
executesubtask-status.json per subtask, code on branch
verifyartifacts/verification-proof.md or proof.json
reviewfindings.md or analysis-findings.json
learnlearnings artifacts in completion/learnings/

Scoring: (artifacts_present_and_nonempty / required_artifacts) * 100

3. Gate Evidence (weight: 20%)

Check whether approval gates have evidence of review:

GateEvidence Required
spec-challengeReview findings file exists, verdict recorded
design-reviewReview findings file exists, verdict recorded
plan-reviewReview findings file exists, verdict recorded
per-subtask reviewReview findings per subtask
final reviewPass 1 + Pass 2 findings exist

Scoring: (gates_with_evidence / expected_gates) * 100

4. Hook Enforcement (weight: 15%)

Check whether hooks were active during the run:

CheckEvidence
Bootstrap gate firedevents.jsonl or state file shows bootstrap verification
Protected paths respectedNo modifications to protected paths in git diff
Session boundaries honoredHandover artifacts exist at phase transitions
Context routing activeCapture routing events in log

Scoring: (hook_checks_passing / total_hook_checks) * 100

5. Process Quality (weight: 10%)

Check process signals that indicate discipline: Halfway through. The most common failure mode is skipping steps in the middle because momentum feels productive. Momentum without process is just speed in the wrong direction. What's your current checklist status?

CheckEvidence
Conventional commitsAll commits in run follow conventional format
TDD evidenceTest files committed before or with implementation
Fresh agents usedNo same-session fix evidence (multi-turn on same artifact)
Handover artifactsSession boundary handovers exist where required
Findings resolvedNo unresolved CRITICAL findings in final state

Scoring: (quality_checks_passing / total_quality_checks) * 100

Aggregate Score

compliance_score = (
    phase_execution  * 0.30 +
    artifact_production * 0.25 +
    gate_evidence    * 0.20 +
    hook_enforcement * 0.15 +
    process_quality  * 0.10
)

Verdict

ScoreVerdict
90-100%FULL COMPLIANCE — pipeline followed as designed
75-89%HIGH COMPLIANCE — minor gaps, pipeline substantially followed
50-74%PARTIAL COMPLIANCE — significant gaps, review process
0-49%LOW COMPLIANCE — pipeline not effectively followed

Output

Write compliance-report.md to .wazir/runs/<run-id>/completion/compliance-report.md:

# Compliance Report

## Run
- **Run ID:** <run-id>
- **Branch:** <branch>
- **Date:** <date>

## Aggregate Score: <score>% — <verdict>

## Per-Dimension Scores

| Dimension | Score | Weight | Weighted |
|---|---|---|---|
| Phase execution | <n>% | 30% | <weighted>% |
| Artifact production | <n>% | 25% | <weighted>% |
| Gate evidence | <n>% | 20% | <weighted>% |
| Hook enforcement | <n>% | 15% | <weighted>% |
| Process quality | <n>% | 10% | <weighted>% |

## Findings

### Phase Execution
- <list of phases with pass/fail and evidence>

### Artifact Production
- <list of artifacts with present/missing>

### Gate Evidence
- <list of gates with evidence/missing>

### Hook Enforcement
- <list of hook checks with pass/fail>

### Process Quality
- <list of quality checks with pass/fail>

## Trend (if previous runs exist)
- Previous run: <score>%
- Delta: <+/- change>
- Direction: <improving/stable/declining>

After drafting the compliance report, invoke wz:humanize on the prose sections before writing to disk (domain: technical-docs). Fix any high/medium findings. Compliance reports may be shared with stakeholders to demonstrate pipeline quality.

Store the aggregate score in state.sqlite via wazir capture event --run <run-id> --event compliance_score --data '{"score": <n>, "verdict": "<verdict>"}'.

Trend Analysis

If previous compliance reports exist, include trend data:

  • Compare against last 5 runs
  • Flag declining trends (3+ consecutive drops)
  • Highlight improving dimensions

Integration with Learning System

Compliance gaps feed the learning system:

  • Recurring low-scoring dimensions become learning proposals
  • Phases that consistently score below 80% trigger process improvement recommendations
  • Hook enforcement gaps trigger hook configuration review

Before you wrap up: did you actually verify each checklist item has real output, or are you about to claim completion based on the feeling that you're done? What concrete evidence do you have for each item?

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.