yttcom.net
Backend / Commands / CLOSE

CLOSE

v2.3 · 07/12/26 · systems/commands/CLOSE.php · POST (JSON body)
What it does
End session. Writes decisions + session to DB, saves handoff, auto-rebuilds all boards.
Endpoint
https://yttcom.net/systems/commands/CLOSE.php
Execution — Step by Step
1Auth check + system resolved
2Write decisions — each to system DB + records.db
3Write session — to system DB + records.db
4Link-back — decisions linked to session ID
5Close verify — session recorded check
6Outbound verify — pending outbound transfers check
7Handoff write — handoff content → gov/handoff-[code].md
8Final verdict — all_pass + fog logged
9Auto UPDATE — boards_rebuild() called on clean close
Parameters
FieldRequiredDescription
tokenrequiredAuth token
systemrequiredSystem code
sincerequiredSession open timestamp YYYY-MM-DD HH:MM:SS
summaryrequiredOne-sentence session summary
duration_minutesrequiredSession length in minutes
work_donerequiredFull description of work completed
decisionsrequiredJSON array of {subject, detail, approved_by}
handoffoptionalMarkdown string → writes to gov/handoff-[code].md
context_pctoptionalFog percentage 0-100
context_bucketoptionalLOW / MED / HIGH / CRITICAL
Returns
all_pass, steps, verify, fog, update{boards rebuilt}
Tier 2 Functions
build_roster()resolve_system()close_verify()outbound_verify()master_list_append()boards_rebuild()pt_time_full()
Notes
Auto-runs UPDATE on clean close — all boards rebuild automatically.
Backend Commands Hub Admin Master