contextPin
Pin a durable preference or constraint to the top of the cold-start context brief so it surfaces first in every session.
Instructions
Pin a free-text steering note to the top of the user's cold-start context brief. Use it when the user states a durable preference or constraint they want surfaced first every session (e.g. "I'm mid-migration off Postgres — don't suggest new Postgres features"). The note wins a budget slot before auto-surfaced documents and entities. Returns the pin's contextPins/{uid}; retire it with contextUnpin or override it with contextCorrect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The steering note to surface at the top of the cold-start brief, e.g. "Mid-migration off Postgres — don't suggest new Postgres features". Required, non-empty. | |
| scope | No | Scope to write into — a pin steers whoever reads that scope. Defaults to personal (steers only the user). Use "project" to steer anyone working in this repo. Use "team" to steer the whole team (requires admitted membership, else E_PERMISSION). | |
| targetRef | No | Optional resource the note is about, e.g. an entities/{uid}. Omit for a free-floating steering note. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | AIP resource name of the new pin; pass to contextUnpin or contextCorrect. | |
| status | Yes | Always "pinned" on success. |