strata19.set_write_authority
Expert tool
What it does
Set the project's write authority — the gate the tool dispatch path consults before allowing write-side tools. 'propose' rejects every non-read tool; 'apply' allows everything. Default 'apply'; persists in state.db across restarts. Narrowing to 'propose' is open to anyone; widening back to 'apply' while 'propose' is in force is HUMAN ONLY (it needs the gestureToken a person's click mints; an assistant call is refused with requires_human and the step for the person).
When to use it
Use when: "switch to propose mode" · "lock this session to reads only" · "let me write again" (the person lifts it)
Also use when: before a planning-only phase (set "propose"); when planning ends the person sets it back to "apply"
When not to use it
you want to READ the current authority without changing it — use strata19.get_write_authority HUMAN ONLY (authority table): when authority is 'apply' while the project is in 'propose' (lifting the gate that constrains agents). These need a person's gestureToken; assistant calls are refused (requires_human). Ask the person.
Availability
| Tier | Expert |
| Lifecycle | Live |
| Taught by | strata19-guarded-writes |