aiworkhub_manager_learning_commit
MANAGER WRITE: persist and project one verified Learning Commit.
Instructions
MANAGER WRITE: persist and project one verified Learning Commit.
SHORT FORM -- the one to use: task_id, request_id and the lesson.
Everything mechanical is resolved server-side from the card's OWN decision
event: outcome is read from the adjudication (never asserted),
repo_area from the paths that decision was taken over, evidence_ids
from the sealed FIXED_AND_VERIFIED acceptance reference, and
idempotency_key/provenance are the deterministic strings the
learning_commit_owed payload in your accept/reject reply already carried.
failure_category is always derived server-side from the card's structured
terminal evidence and is never caller-suppliable. repo_area omitted is
derived from the decision's paths; any explicitly supplied value is
normalized and honored, while an empty or whitespace value is refused with
learning_commit_repo_area_invalid:empty.
Add your own references with extra_evidence_ids. An evidence id must
carry an allowed scheme -- file:, http: or https:. A sha256:
receipt id is refused, and any refusal here returns
allowed_evidence_id_schemes.
outcome is accepted, rejected or inconclusive; only the first
two may promote, and each promotion needs what its store demands (a lesson
for AI Memory, an invariant for KB, an edge plus an acceptance for Context
Graph).
LONG FORM (compatibility): supply repo_area, outcome, evidence_ids, idempotency_key and provenance yourself and nothing is resolved. The lesson text is always the caller's; nothing is written without this call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | No | ||
| task_id | Yes | ||
| repo_area | No | ||
| promote_kb | No | ||
| provenance | No | ||
| request_id | Yes | ||
| evidence_ids | No | ||
| edge_candidates | No | ||
| idempotency_key | No | ||
| lesson_candidate | No | ||
| promote_ai_memory | No | ||
| extra_evidence_ids | No | ||
| invariant_candidate | No | ||
| root_cause_candidate | No | ||
| promote_context_graph | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||