Skip to content

v0.3-T7 — ahc tune (manifest + budget suggestions from failing scenarios) #127

Description

@sv-pro

Summary

Implement ahc tune <manifest> <failing-scenario> — interactive CLI that suggests manifest edits and budget adjustments that would have produced the correct decision for a failing scenario.

Depends on: #126 (coverage), #123 (cost-estimate)

Scope

  • Given a scenario where the manifest produced the wrong decision (false allow or false deny), suggest the minimal manifest edit that fixes it
  • For cost overruns: suggest budget adjustments derived from trace cost profiles
  • Deterministic suggestions (no LLM) — derived from the compiled policy and trace data
  • Interactive mode: show suggestion, let designer accept/reject

Key Files

  • src/agent_hypervisor/compiler/cli.py — add tune command
  • tests/compiler/test_tune.py — new test file

Acceptance Criteria

  • ahc tune manifests/workspace_v2.yaml <failing-scenario> suggests a concrete manifest edit
  • At least one manifest iteration in the test suite is driven by ahc tune output rather than manual analysis
  • Budget suggestions reference trace-derived cost profiles
  • pytest tests/compiler/test_tune.py -v passes

Milestone

v0.3

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions