ecg_approve_consent
Record the user's consent choice to authorize, reject, or disable storage of session facts and provenance, controlling what is saved.
Instructions
Record the user's consent decision. This call is the consent checkpoint.
grant is one of approve_run, approve_session, reject,
or reject_session. The value must be the user's choice from the approval
dialog. Do not send approve_run or approve_session on your own.
approve_run authorizes exactly one successful commit.
approve_session authorizes storage for the rest of this session.
reject is an audit entry and never authorizes storage.
reject_session turns storage off and stops further consent prompts.
Any other string is recorded and does not authorize storage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant | Yes | ||
| session_id | Yes |