Skip to content

feat(autonomy): deterministic prerequisite resolver #2724

Closed

Description

@kyle-sexton

Phase 4 of the routine-capability-detection plan (ADR 0011; planned via #2685). Depends on the
Phase 3 emission (#2723) being merged.

The script core (Node .mjs beside the setup skill's existing conformance scripts): resolves
the verdict set for the v1 identities on a named surface, with no agent session, reading the
Phase 3 emission — never leaf prose.

ADR-0004 incumbent evidence (inlined)

  • No repo-prerequisite probe script exists — the only shipped probe surfaces are the
    isolation-substrate probe template
    (plugins/autonomy/skills/setup/templates/isolation-probe.md) and tool-level flag probes
    elsewhere in the fleet.
  • Composition targets, not rivals: the toolchain seam (plugins/toolchain/README.md:10 — the
    surface others compose "instead of baking their own tables"), the tracker seam
    (plugins/work-items/tools/work-item-tracker/CONTRACT.md:20 binding; :86,:97 adapter
    capabilities.json), the claude-config MCP-enablement audit, the setup skill's own slices.

Work items

  • Probes: repo-file and harness-context classes; composition reads of
    .claude/autonomy/binding.json (declared sections), .claude/ecosystems/*.yaml
    (resolved state per the ecosystem-commands convention — enabled: false is not
    configured; uncommitted layers report unresolvable), .work-item-tracker.json + adapter
    capabilities.json, .mcp.json (presence and enablement gate reported separately,
    enablement via the claude-config seam where installed). Machine-context probes only
    behind an explicit surface argument; results surface-qualified.
  • Output: per-identity verdict + per-signal provenance (probe + surface, or declaration +
    rung). Emission excludes wall-clock fields (timestamps, durations) so reproducibility is
    byte-comparable. Never persists a verdict; never writes any config.
  • Every cross-plugin read presence-gated with the documented fallback per seam-phrasing;
    absence is a verdict input, not an error.
  • Liveness-assertion on-touch statement: the resolver is an engine surface — name its
    taxonomy row; fail-loud (non-zero exit on internal failure, never a verdict-shaped
    fallback).
  • Fixtures (before the resolver), each consumed by the co-located *.test.sh + manifest so
    check-orphaned-fixtures.sh passes — the precedence fixtures follow ADR 0011 Decision
    2's directional rule: fail-closed; declared-absent-narrows (declaration disables a
    surface a probe finds present — declaration wins); probe-negative-caps (declaration
    asserts a prerequisite, probe ran and returned negative — verdict is negative AND the
    contradiction is emitted as a finding, never dropped); probe-could-not-run (declaration
    asserts, no probe can execute — declaration stands qualified, unprobeable state named in
    provenance; distinct from ran-negative and never collapsed); posture-divergence;
    positive-verdict (fully-provisioned tree yields the positive verdict with provenance —
    without this, a hardcoded-unknown resolver passes every other check); bare-repo (all
    verdicts negative/unknown, honest non-skip assertions — the discriminating-skip gate
    polices skip_case in plugins/**/*.test.sh).
  • Exec bit, shell-portability, ShellCheck obligations as in Phase 3.
  • Version bump: assert the manifest version differs from origin/main AND
    scripts/check-changelog-parity.sh --check-bump origin/main exits 0; evals if SKILL.md
    changes.

Sanity checks

  • Two consecutive runs on the same tree and surface emit byte-identical verdicts
    (wall-clock-free emission).
  • The seven fixture assertions pass via the co-located test harness.
  • scripts/check-changed-skills.sh origin/main and
    scripts/check-orphaned-fixtures.sh --check exit 0.

Related

Activity

  1. added
    status: ready
    on Aug 15, 2026
  2. added
    needs-triage
    on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagestatus: ready

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions