Skip to content

Repository files navigation

Agent Cognition Skills (ACS)

Give your AI intent, disciplined work, memory, and a reason to stop.

These skills are designed to address:

  • Intent decay — starts on your goal, drifts to a different one.
  • Directionless autonomy — implements exactly what you wrote, misses the obvious point.
  • Session amnesia — every chat starts from zero.
  • Groundhog Day — twenty messages in, and it's still making the mistake you corrected in message two.
  • Lost reasoning — decisions survive, the why doesn't.
  • Confident confabulation — plausible stories hide unfinished work.
  • Self-grading blind spots — the agent that erred declares itself correct.
  • Quietly wasted effort — sensible edits that move nothing that matters.
  • No honest stop — the loop invents work to keep running.

This suite gives an agent a durable goal, memory of what happened, and a disciplined way to examine, improve, verify, and learn from its work. It interprets what you mean before acting, keeps the work anchored to the purpose, preserves decisions across sessions and model swaps, and stops when independent attempts find nothing material left to change.

These are intended behaviors, not guaranteed outcomes. Results depend on the model, host, task and whether the protocol is followed. The suite does not establish reasoning faithfulness, safety or correctness merely by producing a trail. Try the reproducible pilot to examine observable behavior and report failures as well as useful results.

Try it: run Improve on a real, bounded task. The agent chooses the route; you keep the goal and the consequential decisions.

ACS is a reference implementation for Agent Context Memory (ACM) and an implementation of the Principles of Earned Autonomy (PEA). It is compatible with Claude (skills / Agent SDK), GitHub Copilot (custom skills), and any LLM agent that can read markdown and append to a file (legacy in-repo memory); Shared ACM needs git. ACS was previously called the Principles of Earned Autonomy Skills Suite; that history remains unchanged.

The full architecture illustrated as a Storm P-style Rube Goldberg machine: Operator's Intent feeds the Improve loop, the audit trail runs as a conveyor belt through the whole machine, Learn reads the arc and feeds learning back in, and the machine converges to silence.

One skill to rule them all: IMPROVE

Run Improve on a real, bounded task. It invokes Intent before acting and Record after substantive work, and schedules Goal or Learn when the accumulated evidence makes either service useful. You do not orchestrate the other operational skills; Probe is separate, optional research instrumentation.

/improve create a professional knitting webshop in vanilla HTML, CSS, and JavaScript
Component Role What it does PEA principle ACM artifact
Improve Start here Makes one highest-leverage change per run. reads all three
Intent Automatic States what the agent believes you mean before acting. Operator's Intent
Record Automatic Writes every run to an append-only audit trail. Observable Autonomy records/ (legacy: .acm/audit-trail.md)
Goal Automatic Consolidates accepted mandates into durable direction. goal.md
Learn Automatic Reflects on past runs to spot recurring mistakes and dead ends. learning.md
Probe Research Measures Autonomous Reasoning Fidelity. Autonomous Reasoning Fidelity
Convergence to silence Principle 3 The agent declares silence when it finds nothing material; convergence is defined by Convergence Is Silence, not by this suite. Convergence Is Silence trail (silence entries)

The Record skill records an audit trail: the append-only account of what the agent did and why, in the way an aircraft's black-box recorder keeps the account of a flight.

The operator remembers one command: /improve. The rest is automatic under Improve's control.

How The Model Works

Point Improve at a task. Each run reads your goal, the current map, and the trail; examines the target; makes one highest-leverage change; verifies it against a prediction recorded in advance; and writes the whole thing to an append-only ledger before finishing. When accumulated runs expose an unclear direction, Improve pauses to ask you; when the trail contradicts the map, it re-reads the whole arc and refreshes the map; and every lesson feeds the next run, so the suite gets smarter across sessions and model swaps. A run that finds nothing material declares silence; convergence is Principle 3.

Goal — Where are we going?

Each narrated Intent gives Improve a mandate for the current prompt. When accepted mandates accumulate, conflict, or expose an unresolved priority, Improve triggers Goal to consolidate them into durable cross-run direction. Goal asks one sourced question at a time and never turns an unconfirmed agent inference into operator-held direction.

"No-one knows exactly what they want."

— David Thomas & Andrew Hunt, The Pragmatic Programmer

Improve — Move toward the goal

Improve is the workhorse and the single normal entry point. Point it at a target and run it. Each run applies Intent, explains its interpretation, examines what is there, challenges the first read, chooses the highest-leverage move, acts, verifies, records through Record, and explains any automatic Goal or Learn handoff when the evidence triggers one.

"Invest in the design of the system every day."

— Kent Beck, Extreme Programming Explained

Learning — The architecture keeps its map current

After many locally sensible runs, the overall arc can still drift. When triggered, Learn reads the accumulated history as one document and refreshes the current learning: what the target is becoming, where attention has gone, and whether that is where the real weight lies. Goal schedules it after material direction changes; Improve schedules it when the evidence forms a meaningful arc, contradicts the current map, or approaches convergence. A raw iteration count alone does not trigger it.

"Life can only be understood backwards; but it must be lived forwards."

— Søren Kierkegaard, Journals (1843)

Intent and Record operate automatically around the work. Goal and Learn activate automatically when their evidence-based triggers fire. Probe sits outside normal operation as optional ARF research instrumentation.

The Suite Has 377 Documented Self-Targeted Runs

The public record contains a historical claim of 377 documented self-targeted runs. The earlier “314 self-improvement” subset is now historical classification evidence only, not a validated Improve-procedure count: it used a later 294-entry v3 snapshot while 377 used 291 entries, and the retained records do not independently prove activation, checkpoint, verification and completion for every run. The machine audit reports 125 full-procedure v3 records, 127 partial records, 36 insufficient records and 89 unassessed pre-v3 events for the frozen 377 corpus. These are evidence tiers, not a replacement for failed or missing independent capture. See ITERATION-COUNT.md and the generated audit for the reproducible breakdown.

Three independent evaluator families historically reached silence on the much smaller v3.1.0 baseline on 2026-04-24. That pre-contract, pre-current-Goal evidence remains historical and does not establish convergence for ACS v9.0.0 or its Unreleased contract. The current lease is open until fresh, family-diverse evaluators are silent on the unchanged current artifact.

"LLMs struggle to self-correct their responses without external feedback, and at times, their performance even degrades after self-correction."

— Jie Huang et al., Large Language Models Cannot Self-Correct Reasoning Yet (ICLR 2024)

If the loop cannot audit its own procedure, a count of useful changes is not proof of governed self-improvement. The retained trail demonstrates substantial iterative work; procedure-valid and convergence claims remain bounded by the evidence audit.

Confidential Professional Field Evidence

This skillset has also been used successfully in professional enterprise delivery on a confidential production system with high complexity and scale: multi-tenant cloud architecture, domain-driven service boundaries, multiple collaborating microservices, cross-platform delivery requirements, and fully automated CI/CD.

In that deployment, a scope estimated internally as a large T-shirt-size effort was completed in 3 days.

The full trail exists, but it cannot be published in this repository because it is employer-owned professional work product and covered by intellectual property and confidentiality obligations. Treat this as high-signal private field evidence: a strong indication of practical leverage, but not public, independently reproducible proof.

Agent Context Memory (ACM)

Each skill externalizes what normally only lives inside a single model session — the intent, the goal, the decisions, the arc. Together they implement Agent Context Memory (ACM): files that can persist beyond a model session. When a team uses one memory repository, call it Shared ACM. Continuity depends on preserving those files and the next agent reading and using them.

This memory structure is formally specified by the Agent Context Memory (ACM) standard. ACM defines three tiers organized by trust level: Intent (goal.md, principal-confirmed), Trace (the append-only records, with learning.md as a replaceable derived view; legacy audit-trail.md), and Evidence (harness-captured session records). ACS implements the Intent and Trace tiers; the Evidence tier requires a separate harness.

Conformance. The suite follows the specification's current text (ACM 0.10.0-dev in development) and claims no conformance level. What its tools check or enforce: root-commit binding and ambiguity (R-13); deterministic path escaping and containment (R-14/R-15); create-only local record files (R-18, without an atomic shared service); record identifiers and machine attribution; explicit ACM 0.10 fields for sensitivity, retention, training use, provenance, source state, conflict, projection, submission and receipt state (R-16, with unresolved values kept visible rather than invented); detection after the fact of edited, deleted or renamed records (memory_check.py --history, R-05, without covering goal.md); and generated-view freshness plus an exact shared memory-use safety rule across Improve, Intent, Goal and Learn (R-19/R-20 at the prose/verification boundary). Not met: independent evidence capture (R-04), structural protection from a writer who controls the repository (R-05/R-06), enforced access/retention/DLP policy (R-07/R-08), an atomic shared acceptance service and durable receipt (R-18), authoritative projection state, or platform-backed retrieval state. Partly met in the skills' prose: mandate confirmation and trust ordering (R-02/R-03), pre-work and authority-change gates (R-09/R-10), degraded-memory behavior (R-11), whole-chain resolution (R-15), convergence (R-17), bounded retrieval (R-20), and training-purpose controls (R-21). Legacy mode (an in-repository .acm/, as this repository has) is explicitly local-legacy: empirical evidence, not shared-ACM accepted source. It does not meet R-05, R-12 or R-18. record.py does not yet write to the memory-wide scope for work with no repository.

The files (goal.md, learning.md and the trail records) live in an ACM repository, separate from your code: clone it once, list its path in ~/.acm/memories, and bind each work repository to its scope by root commit (definition). A team may share that repository as Shared ACM. An in-repo .acm/ from earlier ACM versions, like this repository's own, still works as legacy memory. The files provide the literal storage, but the interaction of the skills with those files creates contextual awareness.

Memory alone is just retrieval; awareness is learning. Because Learn reads the arc, Goal uncovers where you're heading, and Intent aligns each request with it, the suite uses that memory to understand where it is and where it is going.

When you swap models, the next agent can read the stored learning and prior decisions. Whether it uses that context well must be checked in the resulting work; persistence alone does not demonstrate learning.

Workflow

  1. Run: Invoke improve with a concrete prompt. Without explicit delegation, Intent asks you to confirm its interpretation and Improve asks you to approve its proposed change. Each accepts Stop or Specify instead.
  2. Keep going: Invoke improve again when there is more work. Improve automatically schedules Goal when broader direction needs confirmation and Learn when accumulated evidence makes the current learning stale.

The operator remembers one command: /improve. /goal and /learn remain manual overrides, not routine responsibilities.

After trust is earned, explicitly delegate either routine gate for one prompt or in Goal. Delegation preserves visible narration and the final change summary; it never answers Goal questions or bypasses operator-declared consequential gates. A host-wide autopilot setting does not replace this boundary.

Quickstart (First Successful Run)

Want a copy-pasteable, 10-minute path? See QUICKSTART.md.

  1. Install with one command:
    • macOS / Linux: bash install.sh
    • Windows: powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1
    • ARF researchers only: add --research on macOS/Linux or -Research on Windows to include Probe.
  2. Set up memory once: QUICKSTART.md walks through it. The skills offer to bind a new target repo with your confirmation.
  3. In your target repo, run Improve on one concrete, verifiable task:
    • /improve review the checkout module for waste and overburden
  4. Confirm the run produced evidence:
    • a new record in the bound scope's records/ (legacy in-repo memory: .acm/audit-trail.md) with outcome and delta.
  5. Optional, for legacy in-repo trails: install the pre-commit hook from the cloned suite's harness/tools/ directory (see QUICKSTART.md) to enforce trail discipline structurally.

Known Limitation: Stated Reasoning ≠ True Reasoning

Record logs what the agent says it decided. Research shows this is not always the same as what actually drove the decision.

"CoT explanations can be plausible yet misleading, which risks increasing our trust in LLMs without guaranteeing their safety."

— Miles Turpin et al., Language Models Don't Always Say What They Think (NeurIPS 2023)

"CoT monitoring is a promising way of noticing undesired behaviors during training and evaluations, but that it is not sufficient to rule them out."

— Yanda Chen et al., Reasoning Models Don't Always Say What They Think (2025)

How this suite mitigates it: To prevent LLMs from generating post-hoc justifications to fit decisions already made, the suite applies protocol constraints:

  1. Pre-commit prediction (Improve, Record): The agent must record a falsifiable prediction of what a change will and will not achieve before acting or observing the actual outcome.
  2. Outcome anchoring (Learn): Subsequent arc-reads systematically evaluate actual outcomes against those prior predictions to expose localized confabulation.
  3. Reversal density (Record, Learn): A uniform, unbroken trail of "successes" is actively flagged as suspect rationalization. True reasoning leaves a trail of reversals, dead ends, and tested predictions.
  4. Adversarial audit (Learn): A dedicated lens to actively hunt for outcome mismatch and logical discontinuities across the trail history.
  5. Separating writer and decider (Improve, Record): In maximum-trust sequences (High-Fidelity Mode), the agent making the change is procedurally forbidden from writing the final trail entry, handing off to an independent writer.

Together, these instructions ask the agent to record a prediction before observing the outcome and expose mismatches to later examination. They do not force compliance or establish access to the agent's true internal reasoning.

The deeper limitation — protocol, not structure: The five mitigations above assume the agent follows the protocol. Skills are markdown instructions interpreted by an LLM. There is no structural guarantee that the agent writes the trail at the right moment, issues the pre-commit prediction before acting, or runs any step at all. ACS is only as reliable as the model reading it. Structural enforcement — intercepting every LLM call at the API layer, writing the ledger before the response is released to the agent, fail-closed — is the responsibility of agent-evidence-proxy and ai-steward. ACS is the behavioural scaffolding and the experiment that generated the requirement for that structural layer.

Reference

Citation and License

MIT License. CITATION.cff | Zenodo v9.0.0: 10.5281/zenodo.24624743


Author: Nils Wendelboe Holmager · Project context and connected work

Releases

Packages

Contributors

Languages