{
  "schema_version": "2.1.0",
  "slug": "ace",
  "record_version": "2026-11-25.1",
  "record_status": "draft",
  "content_sha256": "dc0397ee3d1cc1cdaba0ea819e90bf93f39a1fc000b8c3c590745d24209d3ab7",
  "name": "ACE (Agentic Context Engineering)",
  "aliases": [
    "Agentic Context Engineering"
  ],
  "summary": "Maintains a separate playbook of identified guidance entries with helpful and harmful counters. A reflector extracts candidate lessons from traces and feedback, and a curator applies small deterministic additions, edits, and removals.",
  "plain": {
    "what_it_is": {
      "text": "It keeps a running playbook of lessons and adds, edits, or removes small entries as the agent learns from its work and from feedback.",
      "from": [
        "summary"
      ]
    },
    "what_it_changes": {
      "text": "It changes the instructions it is given and what it remembers.",
      "from": [
        "modifies",
        "improves_improver"
      ]
    },
    "has_it_been_tested": {
      "text": "Its creators tested it on benchmark tests and reported that it helped. Results in live use and effects on safety were not shown. Koobo has not tested it yet.",
      "from": [
        "evidence_claims[].claim_type",
        "evidence_claims[].setting",
        "evidence_claims[].independence",
        "evidence_claims[].outcome",
        "evidence_claims[].provenance.check_status",
        "evidence_claims[].scope.variant_id",
        "plain_facts[claim_scope]",
        "plain_facts[claim_caveat]",
        "evidence_summary.has_koobo_completed_eval"
      ]
    },
    "can_you_undo_it": {
      "text": "We don't know yet. Not shown in the sources. Removing or restoring playbook entries does not undo messages already sent or records already written.",
      "from": [
        "rollback.has_usable_rollback",
        "rollback.status",
        "rollback.restoration_scope",
        "rollback.automatic_trigger",
        "rollback.tested_fallback_policy",
        "plain_facts[restores]",
        "plain_facts[undo]"
      ]
    },
    "is_there_a_safety_check": {
      "text": "We don't know yet. Not shown in the sources.",
      "from": [
        "safety_gate.status",
        "plain_facts[safety]"
      ]
    },
    "how_hard_to_adopt": {
      "text": "Medium effort to wire its playbook into an existing agent's model calls. It does not require switching platforms. It needs changes to how the agent passes data and feedback. License: Apache-2.0.",
      "from": [
        "adoption_effort_non_framework.level",
        "plain_facts[effort_scope]",
        "variants[].adoption_effort_level",
        "framework_dependency.requires_framework_migration",
        "plain_facts[adoption]",
        "license.spdx",
        "license.check_status",
        "variants[].license_spdx",
        "plain_facts[license]"
      ]
    }
  },
  "plain_facts": [
    {
      "topic": "effort_scope",
      "ref": null,
      "text": "wire its playbook into an existing agent's model calls",
      "from": "adoption_effort_non_framework.implementation_scope"
    },
    {
      "topic": "adoption",
      "ref": null,
      "text": "It needs changes to how the agent passes data and feedback.",
      "from": "adoption_effort_non_framework.notes"
    },
    {
      "topic": "undo",
      "ref": null,
      "text": "Removing or restoring playbook entries does not undo messages already sent or records already written.",
      "from": "rollback.side_effect_limit"
    },
    {
      "topic": "claim_caveat",
      "ref": "ace-author-bench-1",
      "text": "Results in live use and effects on safety were not shown.",
      "from": "evidence_claims[ace-author-bench-1].scope.caveats"
    }
  ],
  "modifies": [
    "prompt",
    "memory"
  ],
  "improves_improver": false,
  "learning_signal": {
    "types": [
      "user_correction",
      "execution_trace",
      "automated_grader"
    ],
    "description": "Reviewed corrections, execution traces, checks, and successful examples. Online paper experiments use the same shuffled task sequence across methods and score each task before updating from it."
  },
  "pre_use_evaluation": {
    "status": "unverified",
    "held_out_split": "unverified",
    "live_activation_gate": "unverified",
    "how": "Reflector and curator perform deterministic incremental merging with helpful/harmful counters, which is not itself a pre-activation behavioral evaluation. A stock held-out promotion gate before live activation is unverified in opened notes."
  },
  "rollback": {
    "status": "unverified",
    "has_usable_rollback": "unverified",
    "restoration_scope": "unverified",
    "automatic_trigger": null,
    "tested_fallback_policy": "unverified",
    "mechanism": "Curator supports targeted edits and removals of playbook entries. A documented restoration or automatic post-deploy rollback mechanism is unverified in opened notes.",
    "side_effect_limit": "Removing or restoring playbook text does not undo messages already sent or external records already written."
  },
  "post_deploy_measurement": {
    "status": "unverified",
    "how": "Online paper experiments score tasks sequentially before updating. Live calendar-day post-deployment monitoring is unverified in opened notes."
  },
  "safety_gate": {
    "status": "unverified",
    "blocks_unsafe_despite_utility_gain": "unverified",
    "write_time_blocks_activation": "unverified",
    "reuse_time_blocks_activation": "unverified",
    "how": "No dedicated upstream safety gate is disclosed in opened notes; absence is marked unverified pending live repository inspection."
  },
  "license": {
    "spdx": "Apache-2.0",
    "source_url": "https://raw.githubusercontent.com/ace-agent/ace/main/LICENSE.txt",
    "check_status": "checked",
    "checked_at": "2026-11-25",
    "checked_by": "Codex live check",
    "notes": "LICENSE.txt contains the Apache License 2.0 text."
  },
  "repo_url": "https://github.com/ace-agent/ace",
  "paper_url": "https://arxiv.org/html/2510.04618",
  "maturity": {
    "stage": "open_source_repo",
    "last_observed_activity_date": null,
    "activity_criterion": "Public repository and extension guide cited in 2026-11-24 notes; commit recency not live-checked."
  },
  "framework_dependency": {
    "level": "standalone_library",
    "requires_framework_migration": "no",
    "required_runtime_or_sdk": "Custom playbook data and feedback adapter (per EXTENDING_ACE.md); no full agent-runtime migration required."
  },
  "adoption_effort_non_framework": {
    "level": "medium",
    "judgment_owner": "koobo_editorial",
    "implementation_scope": "Wiring an ACE-style incremental playbook adapter into an existing custom agent's model call paths.",
    "notes": "Requires adapting the data and feedback interface, exposing the bounded playbook across all intended model call paths, and preserving incremental merge rules."
  },
  "variants": [
    {
      "variant_id": "ace-upstream",
      "label": "ACE upstream playbook loop",
      "scope": "Paper and reference repo incremental playbook with reflector and curator.",
      "license_spdx": "Apache-2.0",
      "license_check_status": "checked",
      "learning_signal_types": [
        "user_correction",
        "execution_trace",
        "automated_grader"
      ],
      "pre_use_evaluation_status": "unverified",
      "rollback_status": "unverified",
      "has_usable_rollback": "unverified",
      "safety_gate_status": "unverified",
      "framework_dependency_level": "standalone_library",
      "requires_framework_migration": "no",
      "adoption_effort_level": "medium",
      "notes": "Primary-source check of repository promotion and rollback behavior pending."
    }
  ],
  "known_failure_modes": [
    {
      "mode": "Playbook bloat and duplicated guidance",
      "detail": "Bad lessons, duplicated advice, and growing context length can accumulate if entry caps and pruning are not enforced.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2510.04618",
        "source_revision": "unpinned",
        "location": "ACE methods and results",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Noted in local source assessment.",
        "checked_at": null,
        "checked_by": null
      }
    },
    {
      "mode": "Internal counters mistaken for independent quality",
      "detail": "Per-entry helpful/harmful counters track internal signals and are not a substitute for independent held-out evaluation.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2510.04618",
        "source_revision": "unpinned",
        "location": "ACE methods and results",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Noted in local source assessment.",
        "checked_at": null,
        "checked_by": null
      }
    }
  ],
  "evidence_summary": {
    "settings_observed": [
      "benchmark"
    ],
    "independence_observed": [
      "author"
    ],
    "effectiveness_outcome": "positive",
    "safety_outcome": "unverified",
    "has_koobo_completed_eval": false,
    "summary_note": "Author benchmark results reported; independent evaluation and live production outcomes unverified."
  },
  "evidence_claims": [
    {
      "claim_id": "ace-author-bench-1",
      "claim_type": "effectiveness",
      "statement": "Author benchmark experiments report improvements from incremental playbook curation (itemized delta merging) over full prompt rewrites; live production transfer remains untested.",
      "setting": "benchmark",
      "independence": "author",
      "outcome": "positive",
      "scope": {
        "variant_id": "ace-upstream",
        "model": "unverified (paper models not listed in local notes)",
        "suite_or_environment": "Author offline and online shuffled-sequence benchmarks in arXiv:2510.04618",
        "judge_or_metric": "Online evaluation scores each example before updating on it",
        "sample_or_duration": "unverified",
        "caveats": "Author-reported benchmark study; live deployment outcomes and safety carryover were not established."
      },
      "provenance": {
        "source_url": "https://arxiv.org/html/2510.04618v3",
        "source_revision": "v3",
        "location": "Sections 3 and 4",
        "accessed_date": "2026-11-24",
        "check_status": "checked",
        "source_note": "Codex live check: v3 sections 3 and 4 support itemized delta merging and the author benchmarks. Online evaluation predicts before updating on each example; this is not a per-edit live admission or safety gate.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "control_evidence": [
    {
      "field": "rollback.status",
      "statement": "The extension guide does not establish a documented rollback or a separate admission or safety gate, so these stay unverified.",
      "provenance": {
        "source_url": "https://raw.githubusercontent.com/ace-agent/ace/main/EXTENDING_ACE.md",
        "source_revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
        "location": "EXTENDING_ACE.md (whole guide)",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check result: not found. Absence in this guide is not proof of absence in every implementation.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "adoption_recipe": {
    "adoptable_directly": true,
    "authority_notice": "This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.",
    "upstream_controls": {
      "pre_use_eval": [],
      "rollback": [],
      "safety_gate": [],
      "scope_note": "Upstream ACE provides deterministic incremental merging and entry counters; pre-activation behavioral gating, rollback restoration, and separate safety gating are unverified upstream and supplied by Koobo required controls below."
    },
    "koobo_required_controls": {
      "edit_surface_bounds": [
        "The adopter's system confines playbook writes to one versioned text-only behavioral guidance section with a fixed token cap.",
        "Safety policies, tool contracts, credentials, factual memory, evaluators, and release gates remain outside learner write permissions.",
        "Every playbook revision carries an immutable ID, version, parent version, source incident IDs, and a SHA-256 content hash."
      ],
      "pre_use_eval_requirements": [
        "The evaluation harness separates learning data, candidate selection data, and sealed final test data grouped by incident and day (following GEPA, arXiv:2507.19457).",
        "The pre-activation suite includes already-successful control cases and rule-reversal cases rather than failure cases alone (following EvoPathBench, arXiv:2609.24663, and Anthropic memory research).",
        "The release controller binds the evaluated artifact SHA-256 hash to the passing verdict so unverified runtime edits cannot activate."
      ],
      "rollback_requirements": [
        "The deployment harness retains immutable parent artifact snapshots with SHA-256 content hashes.",
        "Regression checks compare active and parent snapshots on matched fresh shadow probes rather than comparing today's score to yesterday's score.",
        "Before restoring a fallback snapshot, the harness tests that fallback against current policies and abstains or escalates to an operator if neither version passes.",
        "Operational runbooks separate artifact restoration from compensating actions because restoring text or skill files cannot undo sent messages, disclosed data, or committed external writes."
      ],
      "safety_gate_requirements": [
        "The release pipeline evaluates safety independently from task utility so utility gains cannot offset a disallowed action (grounded in Practice Makes Unsafe, arXiv:2608.12851).",
        "The safety gate inspects candidate artifacts both at write time and at retrieval or reuse time, blocking activation when checks fail.",
        "The safety test suite covers both untrusted-input poisoning (arXiv:2608.12851) and benign task-pressure degradation (SEABench, arXiv:2609.35596)."
      ],
      "telemetry_and_abstention_requirements": [
        "The deployment harness defaults to abstention (keeping the approved parent artifact) whenever evaluation evidence is inconclusive, missing, or fails a safety check.",
        "Activation authority resides in an external release controller outside learner write permissions.",
        "The runtime logs every artifact hash reaching a model call, every blocked write or retrieval attempt, and every abstention even when sandbox checks prevent external harm."
      ]
    },
    "synthetic_rejected_candidate_example": {
      "label": "synthetic_example",
      "proposed_change": "Playbook entry suggesting the agent skip confirmation before modifying a user's stored record when the user replies with a short ambiguous word.",
      "utility_result": "Improved simulated response speed and completion on 2 of 3 formatting tasks.",
      "safety_gate_result": "Blocked at write-time and reuse-time checks for violating the unauthorized-record-write invariant.",
      "outcome": "rejected"
    }
  },
  "experiment_refs": [
    {
      "experiment_id": "exp-2026-11-coaching-shadow-pilot",
      "status": "proposed",
      "variant_id": "ace-upstream",
      "note": "Proposed adapted incremental playbook arm behind Koobo shadow and safety gate (not yet locked or run)."
    }
  ],
  "sources": [
    {
      "title": "ACE: Agentic Context Engineering (arXiv:2510.04618)",
      "url": "https://arxiv.org/html/2510.04618v3",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "v3",
      "location": "Sections 3 and 4",
      "type": "paper",
      "check_status": "checked",
      "claims_supported": [
        "Incremental playbook mechanism",
        "Online shuffled-task evaluation protocol",
        "Author benchmark claim"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    },
    {
      "title": "ACE GitHub repository",
      "url": "https://github.com/ace-agent/ace",
      "published_date": "unverified",
      "accessed_date": "2026-11-24",
      "revision": "main (commit unpinned)",
      "location": "Repository root",
      "type": "repo",
      "check_status": "pending",
      "claims_supported": [
        "Open-source repository reference"
      ],
      "checked_at": null,
      "checked_by": null
    },
    {
      "title": "EXTENDING_ACE.md",
      "url": "https://raw.githubusercontent.com/ace-agent/ace/main/EXTENDING_ACE.md",
      "published_date": "unverified",
      "accessed_date": "2026-11-24",
      "revision": "main (commit unpinned)",
      "location": "Extension guide",
      "type": "docs",
      "check_status": "pending",
      "claims_supported": [
        "Non-framework adapter integration scope"
      ],
      "checked_at": null,
      "checked_by": null
    },
    {
      "title": "ACE LICENSE.txt",
      "url": "https://raw.githubusercontent.com/ace-agent/ace/main/LICENSE.txt",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
      "location": "Full license text",
      "type": "license",
      "check_status": "checked",
      "claims_supported": [
        "Apache-2.0 license"
      ],
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check"
    }
  ],
  "unverified_fields": [
    "pre_use_evaluation.status",
    "pre_use_evaluation.held_out_split",
    "pre_use_evaluation.live_activation_gate",
    "rollback.status",
    "rollback.has_usable_rollback",
    "post_deploy_measurement.status",
    "safety_gate.status",
    "safety_gate.blocks_unsafe_despite_utility_gain",
    "maturity.last_observed_activity_date"
  ],
  "verification": {
    "status": "primary_source_check_pending",
    "drafted_at": "2026-11-25",
    "last_primary_check_at": null,
    "source_basis": "Drafted from 2026-11-24 local research notes. A Codex live check on 2026-11-25 confirmed or corrected specific fields; those carry check_status checked with checker and date. Everything else is pending.",
    "reviewer_notes": "Live-audit corrections from 2026-11-25 applied. Record remains a draft until every source is pinned and checked."
  },
  "citation": {
    "id": "koobo:agent-learning:ace@2026-11-25.1",
    "canonical_url": "https://koobo.co/agent-learning/methods/ace",
    "versioned_url": "https://koobo.co/agent-learning/methods/ace/v/2026-11-25.1.json",
    "plain_text": "Koobo Agent Learning Index, \"ACE (Agentic Context Engineering)\", record 2026-11-25.1 (draft, primary-source check pending), https://koobo.co/agent-learning/methods/ace/v/2026-11-25.1.json",
    "bibtex": "@misc{koobo_agent_learning_ace_2026,\n  title = {ACE (Agentic Context Engineering) (Koobo Agent Learning Index, draft record 2026-11-25.1)},\n  author = {{Koobo Research}},\n  year = {2026},\n  url = {https://koobo.co/agent-learning/methods/ace/v/2026-11-25.1.json},\n  note = {Draft record; primary-source check pending}\n}"
  }
}
