gap_promote
Promote a gap to trusted knowledge by supplying an answer, sources, and a confirmed identity. Enforces schema confirmation and writes to the Postgres knowledge base.
Instructions
Turn a gap into trusted knowledge. Requires an answer, at least one source, and who's vouching for it (confirmed_by) — a human name, an agent id, whatever this fleet uses as an identity, but never empty. Writes through the SAME schema-confirmation gate as a direct knowledge_ingest call: if the 'knowledge' table mapping for this app_id hasn't been confirmed via schema_confirm_mapping, this refuses with unconfirmed_schema exactly like knowledge_ingest would. Requires Postgres — gap_log/list/resolve work SOIL-only, but promotion targets the durable, searchable knowledge base. Gated as its own permission (gap_promote), separate from gap_write, the same way schema_admin is kept separate from knowledge_write — landing something as trusted knowledge is a more consequential act than logging or resolving a gap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| answer | Yes | ||
| app_id | Yes | ||
| domain | No | general | |
| gap_id | Yes | ||
| sources | Yes | ||
| confirmed_by | Yes |