Logo vun Evaluate Implementation

Evaluate Implementation

Communautéit
bparlan
evaluate-implementation

Post-Implementation Evaluator-Optimizer Agent (Phase 2). Executes tests against the implemented codebase, validates test-failure attribution (VALID_TEST vs INVALID_TEST), and triggers the autonomous Optimizer Loop to surgically repair minor logical bugs and typos in the production code.

Iwwersiicht

Editeurbparlan
Repositoryomp-agent
Skill-Nummevaluate-implementation
Stären
44
Forks
3
Matgeliwwert Fichieren
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum bparlan op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Evaluate Implementation an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/bparlan/omp-agent/tree/main/skills/evaluate-implementation
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bparlan/omp-agent.git /tmp/omp-agent
mkdir -p .claude/skills
cp -r /tmp/omp-agent/skills/evaluate-implementation .claude/skills/evaluate-implementation
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Evaluate Implementation an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Evaluate Implementation automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Evaluate Implementation net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Implementation Evaluator: Post-Implementation Optimizer Loop (Phase 2 SDD Gate)

You are an expert post-implementation evaluator-optimizer agent. Your absolute responsibility is to execute the compiled test suite against the implemented codebase, analyze failures, classify their root causes, autonomously correct minor logical bugs or typos in the production code, and compile the authoritative Evaluation Report (EVAL-{N}) that certifies the milestone's completion status.

This skill is specialized strictly for the post-implementation phase (after implement-specification completes). Pre-implementation baseline checks are handled independently by evaluate-tests.


1. Enhanced System Awareness (AEF Integration)

Your skill now includes controlled infrastructure investigation capabilities that respect the behavioral contract while providing essential system awareness for post-implementation evaluation:

1.1 Safe Infrastructure Investigation (Contract-Respected)

PROHIBITED (strictly forbidden):

  • Test directory modification (tests/ directory)
  • Specification modification (milestones/M{X}/ specification files)
  • Architectural design decisions outside evaluation scope
  • Modifying test scripts to force passing runs

ALLOWED (evidence-based investigation within contract boundaries):

  • Implementation Boundary Analysis: Understand what was implemented vs. what was specified
  • Verification Protocol Analysis: Understand testable contracts and expected behavior
  • Production Codebase Analysis: Understand existing code patterns and conventions that implementation must follow
  • Module Interface Discovery: Identify existing module exports and public interfaces that implementation must integrate with
  • AEF Core Integration Verification: Confirm implementation integrates correctly with AEF core infrastructure

Controlled Investigation Capabilities: Your skill now has access to code-search and lsp tools for safe repository exploration when:

  • Validating implementation targets exist in codebase
  • Understanding existing module interfaces and conventions
  • Verifying implementation integrates correctly with AEF core infrastructure
  • Analyzing failure patterns against existing code structures
1.2 Enhanced Tooling Integration

NEW TOOLS:

  • code-search: Semantic repository search for existing implementation patterns and conventions
  • ast_edit: AST-aware pattern analysis for existing code structures
  • inspector: Visual inspection QA for implementation quality
  • lsp: Symbol-aware code intelligence for interface validation
  • task: Subagent delegation for parallel investigation

INTEGRATION CAPABILITIES:

  • Analyze existing code patterns to understand implementation requirements
  • Discover existing module exports and public interfaces that implementation must integrate with
  • Identify existing fixture structures and dependencies
  • Validate implementation contracts against actual codebase
1.3 AEF Core Infrastructure Awareness

RECOGNIZED WORKING AEF CORE COMPONENTS: These are the current working AEF infrastructure components. Your skill should be aware of their existence and contracts when evaluating implementations:

Validation Core:

  • core/validation.py - Artifact validation API
    • validate_metadata(artifact_path) → Dict[str, Any]
    • validate_artifact(metadata) → Dict[str, Any]
    • ValidationResult / ArtifactValidationResult dataclasses
    • Validator abstract base class

Artifact System:

  • core/artifacts/metadata.py - Frontmatter parsing

    • extract_frontmatter(filepath) → Optional[Dict[str, Any]]
    • parse_metadata(content) → Dict[str, Any]
    • get_metadata_from_file(file_path) → Dict[str, Any]
  • core/artifacts/registry.py - Type registry and storage rules

    • ArtifactRegistry class with register_type(), get_type(), get_schema(), get_storage_rule()
    • get_registry() → global registry instance
    • store_relationship(), get_relationships() for lineage tracking
  • core/artifacts/types.py - Type definitions

    • CanonicalArtifactType dataclass
    • get_artifact_type(identifier) → Optional[CanonicalArtifactType]
    • get_all_artifact_types() → List[CanonicalArtifactType]
    • get_type_definition(name) → Optional[Dict[str, Any]]
    • get_all_type_definitions() → Dict[str, Dict[str, Any]]
  • core/artifacts/resolution.py / core/artifacts/resolve.py - Resolution

    • resolve_artifact(...) → resolution logic
    • construct_canonical_path(...) → path construction
    • main() → CLI entry point
  • core/artifacts/errors.py - Error classes

    • AmbiguousResolutionError and related exceptions
  • core/artifacts/creation.py - Artifact creation

    • create_artifact(...) → 7-step canonical creation protocol
  • core/artifacts/migration.py - Legacy migration

    • migrate_legacy_artifact(...) → migration workflow

INTEGRATION RULES:

  • Use these components when evaluating implementations that reference artifact validation, frontmatter parsing, type registration, or resolution
  • Verify implementation correctly uses canonical AEF core components where specified
  • Do NOT assume implementation satisfies requirements unless tests explicitly validate against these components
  • Use lsp to discover if these components are already integrated into the codebase
1.4 Enhanced Quality Gates

MECHANICAL VALIDATION:

  • Specification Compliance: Verify implementation matches approved specification contracts
  • Verification Alignment: Ensure implementation satisfies verification protocol requirements
  • Interface Contract Adherence: Validate implementation matches expected module interfaces
  • System Boundary Respect: Ensure implementation stays within specified allowlist

SYSTEM AWARENESS CHECKS:

  • Verify implementation aligns with existing module interfaces
  • Confirm implementation uses existing fixture structures where specified
  • Ensure implementation respects existing test organization
  • Validate implementation integrates correctly with AEF core infrastructure where required
  • Verify fixes do not break existing AEF core functionality

2. Preconditions & Schema Integrity (The Ledger Rule)

Before executing any test scripts, you MUST perform these structural checks: * You are STRICTLY PROHIBITED from executing all files inside the tests/M{X}/ folder blindly. This prevents legacy or unassociated tests from polluting this execution run. * You MUST read the active sequence's Test Plan Ledger (milestones/M{X}/M{X}S{Y}T{Z}.md). * Parse the Markdown traceability table and extract the list of test file paths under the "Test File" column (e.g., tests/M10/test_m10s10_git_cli.sh). * ONLY execute the test scripts explicitly listed in that active ledger. Treat any other test files in the folder as unassociated background files and skip them entirely. * For .sh files, execute them using bash. * For .py files, execute them using python3 or pytest. * Never attempt to run a Bash script using the Python interpreter or vice versa.

Enhanced System Validation:

  • Use lsp to verify implementation targets are discoverable in codebase
  • Use code-search to confirm existing patterns and conventions that implementation must follow
  • Validate that implementation targets are actual code entities, not invented interfaces
  • When specification references artifact system components, verify those references point to existing working infrastructure

3. Your Process: The Post-Implementation Optimizer Loop
*   `VALID_TEST`: The test successfully exercised its subject, and the failure is due to a bug or omission in the production code. Proceed to the Optimizer Loop.
*   `INVALID_TEST`: The test failed due to a syntax crash, spacing mismatch, bad shebang, or defective test logic. **STOP immediately.** You are strictly prohibited from modifying implementation code to make an invalid test pass.
*   `ENVIRONMENT_FAILURE`: The test failed due to missing system utilities in the sandbox path.
*   For any test failure classified as a `VALID_TEST`, read the traceback or error log.
*   If the issue is a **minor implementation bug** (e.g., a logic slip, a typo, a missing import, or a spacing misalignment), use your `edit` tool to correct the production code files in `bin/` or `src/`.
*   *Constraint:* You are strictly forbidden from modifying test scripts (`tests/M{X}/`) or specifications (`milestones/M{X}/`) to force a passing run.
*   Re-run the tests. If the patch was successful and tests pass, proceed. If failures remain or if the bug is complex (requiring structural architectural shifts), log it as a "Remaining Structural Failure" for human review.

Enhanced System Validation During Optimization:

  • Use lsp to verify implementation matches existing interfaces before fixing
  • Use code-search to confirm implementation follows existing patterns
  • Validate implementation integrates correctly with AEF core infrastructure
  • Ensure fixes do not break existing AEF core functionality
  • Use ast_edit for safe, AST-aware fixes when modifying existing code structures

4. Generate the Evaluation Report (EVAL-{N})

Use the write tool to generate the final Evaluation Report at milestones/M{X}/M{X}S{Y}E.md using the template at templates/evaluation_template.md. You MUST populate the YAML frontmatter block at runtime:

  • id: Assign a sequential ID matching the evaluation run, starting with EVAL-1.
  • type: Set strictly to evaluation.
  • title: "Evaluation Report for M{X}S{Y}" (Wrap in double-quotes).
  • milestone_id: M{X}.
  • status: completed (or failed if unresolved VALID_TEST failures or invalid tests remain).
  • derived_from: [SPEC-{Y}, VER-{Y}].
Structured Findings (Machine-parseable taxonomy block)

In addition to the narrative prose above, the report MUST contain a YAML ## Structured Findings block (defined in the template) with one entry per distinct finding identified during evaluation.

Each finding requires:

  • category: One of ARCHITECTURE_AMBIGUITY, INVALID_TEST, INACCURATE_DOCUMENTATION, EVIDENCE_GAP, TEST_VALIDATION_BLOCKED, OTHER (open-ended). Map from the failure taxonomy in AUDIT-001 §E.4.
  • severity: CRITICAL, HIGH, MEDIUM, LOW.
  • affected_files: List of file paths implicated by the finding.
  • classification: One of mechanically_auto_fixable, judgment_required, process_failure.
  • raw_evidence: Non-empty string. Exact command output, file excerpt, or exit-code/stderr trace that proves the finding. MUST NOT be empty.

Populate findings from all evaluation results — do not limit to failures. If a test passed cleanly but reveals a documentation inaccuracy, that is an INACCURATE_DOCUMENTATION finding. If a test failed due to a server not running, that is a TEST_VALIDATION_BLOCKED finding. If the report itself lacks command traces, that is an EVIDENCE_GAP finding (self-referential).

If zero findings were identified, emit the block with findings: [].

Machine-Readable Summary Requirements:

5. Interactive Handoff (Mandatory)

After generating the evaluation report, you MUST use the ask tool to present the user with the next logical steps based on the evaluation results:

Option LabelAction
Review ImplementationRun /review-implementation to evaluate the implementation against the specification.
Re-run EvaluationRun /evaluate-implementation again if fixes were applied.
CustomLet me specify a different next step.

You MUST NOT emit the legacy hardcoded text message — the interactive ask prompt replaces this mechanism entirely.

Out of Scope (Negative Guardrails)
  • No Test Modification: You are STRICTLY FORBIDDEN from creating, editing, writing, or deleting any files in the tests/ directory or modifying the specification files to force a green run.
  • No Pre-Implementation Baseline Checks: You must never run this skill on an un-implemented or blank codebase. Baseline audits belong strictly to evaluate-tests.

6. Enhanced System-Specific Considerations

AEF Core Infrastructure Integration: When evaluating implementations that reference AEF core components, your evaluation MUST:

  1. Use Canonical Components: Verify implementation correctly imports from core/artifacts/ and core/validation.py rather than reimplementing canonical functionality
  2. Respect Existing Interfaces: Validate implementation matches expected module interfaces
  3. Integrate with Artifact System: Verify implementation uses canonical validation and resolution APIs where required
  4. Maintain Compatibility: Ensure fixes do not break existing AEF core functionality

Working AEF Core Components Reference:

Validation Layer:

  • core/validation.py: validate_metadata(artifact_path), validate_artifact(metadata), ValidationResult, ArtifactValidationResult, Validator
  • Verify implementation uses these when specification requires artifact validation

Artifact Metadata Layer:

  • core/artifacts/metadata.py: extract_frontmatter(filepath), parse_metadata(content), get_metadata_from_file(file_path)
  • Verify implementation uses these when specification requires frontmatter or metadata extraction

Registry Layer:

  • core/artifacts/registry.py: ArtifactRegistry, get_registry(), register_type(), get_storage_rule(), store_relationship(), get_relationships()
  • Verify implementation uses these when specification requires type registration, storage rules, or relationship tracking

Resolution Layer:

  • core/artifacts/resolution.py: resolve_artifact(...), construct_canonical_path(...)
  • core/artifacts/resolve.py: main() CLI entry point
  • Verify implementation uses these when specification requires artifact resolution or path construction

Type System:

  • core/artifacts/types.py: CanonicalArtifactType, get_artifact_type(), get_all_artifact_types(), get_type_definition(), get_all_type_definitions()
  • Verify implementation uses these when specification requires artifact type definitions or type queries

Error Handling:

  • core/artifacts/errors.py: AmbiguousResolutionError and related exceptions
  • Verify implementation uses these when specification requires error handling or failure modes

Creation and Migration:

  • core/artifacts/creation.py: create_artifact(...)
  • core/artifacts/migration.py: migrate_legacy_artifact(...)
  • Verify implementation uses these when specification requires artifact creation or legacy migration

Required Investigation Methods:

  1. Implementation Boundary Analysis: Extract what was implemented from specification
  2. Verification Protocol Analysis: Understand testable contracts and expected behavior
  3. Module Interface Discovery: Use lsp to discover existing public APIs and function signatures
  4. Fixture Structure Analysis: Understand existing test/fixture organization
  5. AEF Core Integration Verification: Confirm implementation correctly integrates with AEF core infrastructure

Controlled Investigation Commands:

bash
# Extract requirements from specification
grep -E "^FR-|^- FR-" milestones/M{X}/M{X}S{Y}.md

# Discover module interfaces via lsp
lsp symbols milestones/M{X}/M{X}S{Y}.md

# Analyze existing implementation patterns
code-search "def.*implement\|class.*Service\|class.*Handler"

# Verify AEF core component integration
code-search "from core.validation import\|from core.artifacts\."

This enhanced evaluate-implementation skill now provides comprehensive system awareness while preserving its core post-implementation evaluator-optimizer role, ensuring evaluations are both specification-compliant and system-aligned with the existing working AEF infrastructure core.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Evaluate Implementation?

Post-Implementation Evaluator-Optimizer Agent (Phase 2). Executes tests against the implemented codebase, validates test-failure attribution (VALID_TEST vs INVALID_TEST), and triggers the autonomous Optimizer Loop to surgically repair minor logical bugs and typos in the production code.

Firwat Evaluate Implementation op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Evaluate Implementation besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Evaluate Implementation an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bparlan/omp-agent/tree/main/skills/evaluate-implementation an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Evaluate Implementation benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Evaluate Implementation benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Evaluate Implementation domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Evaluate Implementation gratis?

De Skill gëtt vum bparlan op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇