set_grain_policy
Create or update the wisdom-layer publish policy for ONE content grain in the current company. gate_mode 'human_pre_gate' reserves the grain for human approval; 'autonomous' lets an agent publish it directly. A brand-new grain defaults to human_pre_gate (fail-safe). Because this governs an agent's own publishing autonomy, the change routes to operator approval — it does not take effect silently.
[sensitive-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Human-readable note on why this grain has this policy. | |
| grain | Yes | The content grain key, lowercase_with_underscores (e.g. faith_values, harness_education, professional). | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. | |
| gate_mode | No | 'autonomous' = an agent may auto-publish this grain; 'human_pre_gate' = it must route to a human first. | |
| curate_only | No | If true, an agent may only assemble this grain from source_corpus_ref, never originate de-novo content. | |
| source_corpus_ref | No | For curate_only grains: the corpus an agent may assemble from (e.g. a knowledge collection key). |