The knowledge factory lets agents flag knowledge that is missing, wrong or stale, a curator turn those flags into proposals, and you approve or reject each one. These routes are served by the Allternit API under /api/v1, with the normal signed-in session. Everything is scoped to the signed-in user. A request with no user gets 401.

Routes

List routes take status (omit it to list all) and limit (default 50, maximum 200). Create routes answer 200. Ids look like kflag_<uuid> and kprop_<uuid>.

Flags

The response is { "flag": { ... } } with the stored columns. Never put secrets in evidence.

Proposals

  • origin is curator, agent or skill_growth. status is proposed, approved, rejected, active or rolled_back.
  • Every cited flag_id and observation_id must belong to you (400 otherwise), and each item carries exactly one of the two. Cited open flags move to proposed.
  • target_ref allows letters, digits, -, _ and .; skills may also use : and /. No leading . or /, no ...
  • The response is { "proposal": { ... } }, with evidence (array) and eval (object or null) parsed.

Approve

For domain and data_access, approving writes knowledge/domain/<ref>.md or knowledge/data-access/<ref>.md in your personal Memory Drive as one commit. See the file format. If the write fails the proposal stays proposed. For skill, the status becomes approved and Gizzi activates it later, then calls /activated. Approving or rejecting moves the linked flags to resolved.

Errors