needfix_update
Manager update of mutable NeedFix fields.
Instructions
Manager update of mutable NeedFix fields.
None keeps a field. evidence is an explicit FULL REPLACE of the
evidence object; evidence_patch is a JSON merge patch (keys merged,
nested objects merged, null deletes a key) applied server-side to the
stored object, so one measurement can be added without re-sending the
rest. The two are mutually exclusive. evidence_refs_add/remove,
tags_add/remove, scope_files_add and scope_symbols_add edit
the lists in place (add appends missing values, remove filters).
expected_updated_at is optimistic concurrency: the update is refused
(needfix_update_stale) when the stored updated_at differs.
kind vocabulary and synonym normalisation are as in needfix_add.
Replies with a delta receipt (aiworkhub.needfix_update_receipt.v1):
id, status, fields_changed, updated_at, evidence_keys_after, event_id,
kind_normalized. The updated audit event records the same
fields_changed plus the evidence sha256 before and after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Accepted kind values: benchmark_gap, bug, docs, documentation_drift, feature, idea, improvement, investigation, optimization, other, refactor, roadmap_candidate, security, security_risk, technical_debt. None keeps the field; case, space and known synonyms normalize server-side. | |
| tags | No | ||
| scope | No | ||
| title | No | ||
| evidence | No | ||
| severity | No | Accepted severity values: critical, high, info, low, medium. None keeps the field. | |
| tags_add | No | ||
| needfix_id | Yes | ||
| description | No | ||
| scope_files | No | ||
| tags_remove | No | ||
| evidence_refs | No | ||
| scope_symbols | No | ||
| evidence_patch | No | ||
| readiness_score | No | ||
| scope_files_add | No | ||
| evidence_refs_add | No | ||
| scope_symbols_add | No | ||
| expected_updated_at | No | ||
| evidence_refs_remove | No |