goal-condition-synthesis

Synthesize falsifiable Claude Code /goal completion conditions from AA-MA plan artifacts.

6|1|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/snewhouse/aa-ma-forge --skill goal-condition-synthesis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goal-condition-synthesis
Source: https://github.com/snewhouse/aa-ma-forge/tree/main/claude-code/skills/goal-condition-synthesis
Command: npx skills add https://github.com/snewhouse/aa-ma-forge --skill goal-condition-synthesis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents LLM agents from drifting or looping by generating a testable Claude Code /goal completion condition grounded in observable plan artifacts rather than vague intent.

Core Features & Use Cases

  • Falsifiable goal construction: Produces a /goal condition that references specific transcript-observable signals (e.g., provenance.log lines, tasks.md status fields, git tags, and test exit codes).
  • Deterministic turn-cap budgeting: Computes or validates a capped number of turns based on pending milestones to bound cost for AFK execution or verification loops.
  • Canonical contracts for auditability: Owns the verdict-token vocabulary, observable-artifact list, and a deterministic condition-hash so other surfaces can link back without drift.

Quick Start

Use the goal-condition-synthesis Skill to synthesize a full-execute completion goal for an active AA-MA task when /execute-aa-ma-full reaches §2.5.

Frequently Asked Questions about goal-condition-synthesis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent Claude Code agent drift in multi-session execution?

To prevent agent drift, you need a falsifiable goal completion condition grounded in observable artifacts. This synthesizes a testable /goal from plan artifacts to stop multi-session amnesia by referencing specific transcript signals like provenance logs and task statuses.

How do I generate a testable goal completion condition from task artifacts?

Generating a testable goal completion condition involves synthesizing a falsifiable /goal from AA-MA plan artifacts. The process validates banned vague terms, ensures references to at least two observable artifacts like git tags or test exit codes, and computes a deterministic condition-hash for auditability.

Can I bound execution costs for autonomous agent verification loops?

Yes, you can bound execution costs by applying deterministic turn-cap budgeting. This validates a capped number of turns within a 1 to 30 range based on pending milestones, restricting cost for unattended execution or verify-iterate loops.

What specific artifacts does goal synthesis require for validating task completion?

Goal synthesis requires active task directories containing AA-MA plan artifacts. It validates references to at least two observable artifacts such as provenance log lines, tasks status fields, git tags, and test exit codes to ensure the completion condition is falsifiable.

Does goal condition synthesis work without existing plan artifacts?

No, goal condition synthesis applies only to active task directories containing the required AA-MA files. It needs existing plan artifacts to ground the falsifiable completion condition and prevent vague intent from causing agent looping.