voku / agent-learning
Reviewable finding, proposal, redaction, and decision-history tooling for coding-agent learning loops.
Fund package maintenance!
Requires
- php: ^8.3
- voku/agent-graph: ^0.2.3 || ^0.3.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5 || ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 0.23.4
- 0.23.3
- 0.23.2
- 0.23.1
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.1
- 0.20.0
- 0.19.0
- 0.18.39
- 0.18.38
- 0.18.37
- 0.18.36
- 0.18.35
- 0.18.34
- 0.18.33
- 0.18.32
- 0.18.31
- 0.18.30
- 0.18.29
- 0.18.28
- 0.18.27
- 0.18.26
- 0.18.25
- 0.18.24
- 0.18.23
- 0.18.22
- 0.18.21
- 0.18.20
- 0.18.19
- 0.18.18
- 0.18.17
- 0.18.16
- 0.18.15
- 0.18.14
- 0.18.13
- 0.18.12
- 0.18.11
- 0.18.10
- 0.18.9
- 0.18.8
- 0.18.7
- 0.18.6
- 0.18.5
- 0.18.4
- 0.18.3
- 0.18.2
- 0.18.1
- 0.18.0
- 0.17.0
- 0.16.1
- 0.16.0
- 0.15.0
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.0
- 0.11.1
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.12
- 0.8.11
- 0.8.10
- 0.8.9
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- 0.0.2
- 0.0.1
- dev-chore/release-0.23.4-tag
- dev-fix/dream-suppress-landed-decisions
- dev-claude/agent-stack-engineering-ipfw5o
- dev-ccr-44bf1ea9-qiofzm
- dev-release/0.23.2-marker
- dev-release/0.23.2-learning-maintenance
- dev-ccr-f6ae47e6-y5bjjs-217
- dev-ccr-f6ae47e6-y5bjjs
- dev-ccr-0ca1f0b3-slnot0
- dev-ccr-aa56cccc-q8t2ue
- dev-ccr-784c9e99-0jrxgb
- dev-ci/skillevaluator-tier1-20261113
- dev-docs/readme-file-guide-20261110
- dev-research/dream-provenance-117-20261107
- dev-codex/fix-agent-learning-0.18.37-marker
- dev-codex/release-agent-learning-0.18.37
- dev-codex/semantic-skill-target-queue
- dev-codex/release-security-20261024
- dev-ccr-3d900b81-gjumfz
- dev-release/prepare-0.18.35-marker
- dev-release/prepare-0.18.35-changelog
- dev-fix/reanchor-approved-replacement
- dev-fix/learning-consumer-reanchor-approval-order
- dev-fix/proposal-proof-sequencing
- dev-fix/note-candidate-rejects-ignored-fields
- dev-fix/corpus-analytics-owner-state
- dev-chore/renovate-phpunit-php83-floor
- dev-fix/validate-guidance-entry-points
- dev-codex/learning-note-evidence-reanchor-166
- dev-fix/finding-transition-task-pattern
- dev-release/prepare-0.18.33-marker
- dev-docs/prepare-owner-0.18.33-no-tag
- dev-feat/read-only-guidance-maintenance-evidence-159
- dev-feat/read-only-applied-guidance-maintenance-proof
- dev-fix/skill-pr104-promotion-enums-20261010
- dev-docs/apply-path-runbook
- dev-release/0.18.32-marker
- dev-release/0.18.31
- dev-feat/finding-transition-reason
- dev-release-request/0.18.30
- dev-feat/finding-consolidation
- dev-release-request/0.18.29
- dev-feat/proposal-queue
- dev-docs/catalog-per-call-validation
- dev-release-request/0.18.28
- dev-claude/agent-ui-dogfood-continuation-k6288f
- dev-release-request/0.18.27
- dev-claude/trusting-wright-yaxbml
- dev-release/0.18.22
- dev-feature/learning-owned-skill-promotion
- dev-release-request/0.18.21
- dev-release/0.18.21
- dev-feat/131-finding-intake-continuation
- dev-release/0.18.19-marker
- dev-release/0.18.19
- dev-fix/124-learningnote-aware-backlog
- dev-release/0.18.18
- dev-feature/121-learning-note-evidence-review
- dev-fix/reanchor-supersede
- dev-release/0.18.14
- dev-fix/118-stale-proof-recovery
- dev-docs/112-no-durable-learning-skill-parity
- dev-fix/112-ignore-pattern-lineage
- dev-fix/constraint-precedent-fallback
- dev-perf/88-batch-active-note-lineage
- dev-measure/88-lineage-rebuild-phases
- dev-fix/retire-superseded-approved-guidance
- dev-release-marker/0.18.7
- dev-release/0.18.7
- dev-chatgpt/87-scope-aware-precedents
- dev-chatgpt/92-finding-classify
- dev-release-marker/0.18.6
- dev-release/0.18.6
- dev-fix/numeric-lineage-identity-99
- dev-release-marker/0.18.5
- dev-release/0.18.5
- dev-fix/numeric-lineage-depth-95
- dev-fix/lossless-lineage-identity-depths-93
- dev-release/0.18.3
- dev-fix/bounded-precedent-topup-84
- dev-release/0.18.1
- dev-fix/empty-lineage-task-precedent
- dev-release/0.18.0-marker
- dev-release/0.18.0
- dev-pre-1.0/73-task-precedent-query
- dev-release/0.17.0-marker
- dev-release/0.17.0
- dev-pre-1.0/73-lineage-owner-query
- dev-pre-1.0/73-learning-lineage-v1
- dev-pre-1.0/73-lineage-relation-projection
- dev-release/0.16.1-marker
- dev-release/0.16.1
- dev-fix/349-classified-finding-owner-api
- dev-claude/agent-loop-pre-1.0-cleanup-wuf1sa
- dev-break/1.0-remove-legacy-outcome-read
- dev-docs/learning-note-readme
- dev-release-marker/0.14.1
- dev-release/0.14.1
- dev-fix/catalog-complete-list-query
- dev-release/0.14.0-tag
- dev-release/0.14.0-clean
- dev-release/0.14.0
- dev-feature/learning-note-authoring-56
- dev-fix/learning-note-owner-hardening-54
- dev-feat/learning-notes-54
- dev-feature/learning-note-54
- dev-fix/retire-legacy-outcome-writes
- dev-api/expose-recall-outcome-withholding
- dev-fix/49-finding-create-diagnostics
- dev-docs/agents-owner-boundary
- dev-chore/harden-release-tag-workflow
- dev-release/0.13.6
- dev-fix/catalog-bounded-recent-history
- dev-release/0.13.5
- dev-feature/typed-learning-catalog-42
- dev-codex/finish-agent-learning-release-tasks
- dev-agent/refactor-principles-final-sync
- dev-release/0.13.3-trigger
- dev-release/0.13.3
- dev-fix/constraint-export-adoption-aware
- dev-agent/slice-b-constraint-promotion-seams
- dev-claude/release-0.13.2-marker
- dev-claude/release-0.13.2
- dev-claude/constraint-promotion-reachability
- dev-release/0.13.1
- dev-docs/finding-creator-api
- dev-agent/finding-create
- dev-agent/finding-export-cli
- dev-release/0.13.0
- dev-agent/external-finding-export
- dev-agent/token-diet-20260815
- dev-agent/implementation-snapshot-evidence
- dev-agent/release-0.11.1
- dev-claude/outcome-completeness-visible
- dev-claude/tag-0.11.0
- dev-claude/release-0.11.0
- dev-claude/allocate-record-ids
- dev-reset/durable-run-learning
- dev-breaking/default-agent-loop-paths
- dev-fix/remove-semantic-target-path-guess
- dev-release/0.9.0
- dev-cleanup/remove-semantic-target-path-guess
- dev-breaking/proposal-apply-target-proof
- dev-breaking/proposal-canonical-handoff
- dev-codex/dogfood-agent-learning-and-recall-compiler
- dev-codex/refactor-and-consolidate-implementation-without-breaking-cha
This package is auto-updated.
Last update: 2026-11-30 11:06:47 UTC
README
Your agent "learned" something last session, and now it sits in the prompt forever, unchecked. agent-learning makes every lesson earn its place: observation → validated Finding → human-approved Proposal → durable guidance.
You get:
- Confidence is never validation. A Finding keeps observation, hypothesis and validated conclusion separate, and
validaterejects records that blur them (identical hypothesis and observation, avalidatedstatus without a conclusion). - Nothing becomes durable guidance without a human. Changes to
MEMORY.md, skills or hard constraints need an approved Proposal and leave an append-only decision history; maintenance commands such asdreamandguidance-evaluateonly write candidates and never approve, apply, retire or rewrite guidance. - Deterministic and local. Records are plain JSON/JSONL files in your repository; the
dreamreport is byte-stable for equivalent inputs, andbacklogexits non-zero while validated Findings wait for consolidation.
Part of Agent Loop — a deterministic, local-first workflow for coding agents: approved Contracts, explicit next actions, evidence before "done". This package owns durable Learning: Findings, LearningNotes, Proposals and human-decided guidance.
Quickstart
Requires PHP ^8.3; the only runtime package dependency is voku/agent-graph, used for the Learning lineage index.
composer require voku/agent-learning
Capture an observation, have a reviewer validate it, and build the consolidation input for an LLM or human reviewer. Without --root, the CLI discovers .agent-loop/learning from the current directory.
mkdir -p .agent-loop/learning/findings # 1. Capture an unverified report as a candidate Finding vendor/bin/agent-learning finding-capture \ --id finding.2026-11-29.001 \ --task DEMO-1 --by dev \ --observation "CI failed because composer.lock was out of date." \ --hypothesis "Running composer validate --strict before pushing catches a stale lock file." \ --evidence "CI log of the failed run" # 2. A reviewer validates it with an explicit conclusion vendor/bin/agent-learning finding-transition finding.2026-11-29.001 validated \ --by reviewer \ --conclusion "composer validate --strict reports the stale lock file locally." # 3. Check the root and see what still needs handling vendor/bin/agent-learning validate vendor/bin/agent-learning finding-queue # 4. Build consolidation input (classification + Proposal) for the validated finding vendor/bin/agent-learning prepare --task DEMO-1 --output consolidation-prompt.md
Output of steps 3 and 4 (paths shortened):
Validated agent learning root: /path/to/project/.agent-loop/learning
Findings: 1
Proposals: 0
Recall selections: 0
Guidance outcomes: 0
Active constraints: 0
Findings needing handling: 1
finding.2026-11-29.001 [task DEMO-1] (0d old)
conclusion: composer validate --strict reports the stale lock file locally.
allowed: consolidated, superseded, archived
signals: no_proposal
Selected findings: 1
- finding.2026-11-29.001 (DEMO-1)
Wrote consolidation input: consolidation-prompt.md
finding-capture and finding-transition print the record as JSON, including its available_actions. Nothing in this flow approves guidance: the consolidation result is imported with proposal-import as a candidate Proposal and still needs proposal-approve / proposal-reject by a human.
Learning root somewhere else? Pass --root with the learning root itself (the directory holding findings/, proposals/ and so on) or a project directory it can be resolved from; the CLI reference lists the discovery rules and every command, and vendor/bin/agent-learning help prints all options.
How it works
agent / human observation
↓ finding-capture candidate Finding (unverified; confidence is not validation)
↓ finding-transition validated reviewer adds an explicit validated conclusion
↓ prepare → proposal-import candidate Proposal (one bounded change, source Findings attached)
↓ proposal-approve / -reject human decision, appended to history/
durable guidance (MEMORY.md, skill, hard constraint) or a LearningNote precedent
voku/agent-recall-compiler reads approved guidance and LearningNotes as task context; workflow hosts such as voku/agent-loop decide when a Learning transition is requested. Details: Concepts.
Documentation
| I want to… | Read |
|---|---|
| Understand Findings, LearningNotes, Proposals, evidence and decision history | Concepts |
Look up every agent-learning / agent-learning-note command |
CLI reference |
Know exactly what validate checks and see example JSON records |
Record formats and validation |
Run dream, re-anchor applied proofs or rebuild history projections |
Concepts: Dream maintenance cycle |
| Record and author reusable solved-case precedent | LearningNotes · authoring dogfood |
| Turn usage history into promotion or retirement candidates | Guidance usage evaluation · fixture |
| Prove applied guidance really exists in the repository | Applied guidance proof · maintenance evidence |
| Promote a validated Finding into a PHPStan/CS-Fixer/test/CI constraint | Record formats: constraints · constraint examples |
| Use local agent history (ctx) as evidence | ctx integration |
Embed it from PHP or find the shipped skills (PackageResources::skillsRoot()) |
PHP embedding · API reference |
| Give my agent a ready-made workflow skill (6 shipped) | Shipped skills · agent-learning-consumer |
| Browse all docs | Documentation index |
| See what changed or upgrade | CHANGELOG · UPGRADING |
Part of the Agent Loop toolchain
Each package owns one concern and can be used on its own. voku/agent-loop composes them into one governed workflow.
| Package | Owns |
|---|---|
| agent-loop | Task Contracts, lifecycle, next actions, validation and review gates |
| agent-kanban | Git-native Markdown board and card semantics |
| agent-session | Per-task working memory, decisions and checkpoints |
| agent-map | Read-only repository symbol maps and typed edit plans |
| agent-edit | Transactional, verified application of edit plans |
| agent-graph | Deterministic SQLite graph index and runtime |
| agent-recall-compiler | Bounded task context (Recall) and prompt recipes |
| agent-learning | Reviewable findings, proposals and durable guidance |
| agent-skills | Portable engineering skills for coding agents |
| agent-ui | Local server-rendered control plane for humans |
| agent-decision | Experimental bounded, advisory-only decision helper |
| agent-dotfiles | Shell dotfiles for non-interactive agent shells |
Development
composer ci
The full gate runs strict Composer validation, PHPUnit and PHPStan. Where to change what and the focused commands are in docs/development.md; contribution rules are in CONTRIBUTING.md, and maintainers follow the agent-learning-maintainer skill.
License
MIT. See LICENSE.