Compliance fix worker

From oimiragieo/agent-studio · View interactive version

Compliance fix worker is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Fixes test failures, compliance gaps, and validation issues in the agent-studio ecosystem

How to use this skill

Skill file

Compliance Fix Worker

NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.

When to Use This Skill

Features that involve:

Work Procedure

  1. Read the feature description carefully. Identify every file that needs changing and every test that must pass.
  1. Run the SPECIFIC failing tests first to capture exact error messages:

```

node --test <specific-test-file>

```

Record the exact assertion failures.

  1. Write or update tests BEFORE fixing (TDD red-green):
  1. Implement the fix. Follow CTO directives from AGENTS.md strictly:
  1. Run targeted tests to confirm your fix works:

```

node --test <specific-test-file>

```

  1. Run broader test suites to check for regressions:

```

pnpm test

pnpm test:framework

```

If either shows new failures, debug and fix before proceeding.

  1. Run validators relevant to your changes:

```

pnpm validate:full

pnpm validate:routing

pnpm metrics:ci

pnpm format:check

```

  1. Commit with a descriptive message.

Example Handoff

{
  "salientSummary": "Fixed agent-skill-matrix.json: added 31 missing agents, injected token-saver-context-compression into all 119 always arrays. Updated pre-tool-unified.read-safety.cjs to accept both compressor names. Updated agent count test from 110 to 119. Ran pnpm test (9000 pass/0 fail), pnpm test:framework (3250 pass/0 fail), pnpm validate:full (exit 0).",
  "whatWasImplemented": "Added 31 missing agents to agent-skill-matrix.json with correct category assignments and always arrays. Modified read-safety hook lines 168-169 to accept both 'context-compressor' and 'token-saver-context-compression'. Updated expected count constant in agent-search-compliance.test.cjs from 110 to 119.",
  "whatWasLeftUndone": "",
  "verification": {
    "commandsRun": [
      {
        "command": "node --test tests/hooks/pre-tool-unified-read-safety.test.cjs",
        "exitCode": 0,
        "observation": "All 18 tests pass including both compressor name cases"
      },
      {
        "command": "node --test tests/audit/agent-search-compliance.test.cjs",
        "exitCode": 0,
        "observation": "Agent count matches 119, all compliance checks pass"
      },
      { "command": "pnpm test", "exitCode": 0, "observation": "9000+ tests, 0 failures" },
      { "command": "pnpm test:framework", "exitCode": 0, "observation": "3250+ tests, 0 failures" },
      { "command": "pnpm validate:full", "exitCode": 0, "observation": "All validators pass" }
    ],
    "interactiveChecks": []
  },
  "tests": {
    "added": [
      {
        "file": "tests/hooks/pre-tool-unified-read-safety.test.cjs",
        "cases": [
          { "name": "accepts token-saver-context-compression", "verifies": "backward compat" }
        ]
      }
    ],
    "coverage": "All read-safety, compliance, and routing tests pass"
  },
  "discoveredIssues": []
}

When to Return to Orchestrator

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.