Dialectic Respond
Inspect and respond to an existing UNITARES dialectic session
Start by checking .unitares/session.json in the current workspace.
Use the shared helper:
scripts/client/session_cache.py get session
If the cache contains uuid, resume that exact identity first with identity(agent_uuid=<uuid>, resume=true).
Do not rely on weaker fingerprint/session fallback when a cached UUID is available.
Then inspect the target session with:
dialectic(action='get', session_id='<session_id>')
Use the returned required_role, required_agent_id, current_agent_can_submit, and recommended_action fields to decide the next step.
Workflow:
- If phase is
thesis: the paused agent should respond viadialectic(action='thesis', ...). - If phase is
antithesisand the current bound agent is the assigned reviewer: respond viadialectic(action='antithesis', ...). - If phase is
antithesisand the current bound agent should answer instead of the assigned reviewer: usedialectic(action='antithesis', ..., take_over_if_requested=true, takeover_reason='...'). - If phase is
synthesis: respond viadialectic(action='synthesis', ...). - If the session is already resolved/failed/escalated, report that instead of trying to write.
When reporting back:
- state the current phase
- state who is allowed to act next
- if you submitted a response, summarize the position you took
- if you had to take over reviewer ownership, say so explicitly