コンテンツにスキップ
#0245
Terminal

Attach the terminal session to the change ticket

The change window closes at 02:00. The ticket needs evidence of what was actually done: not what the runbook said would be done.

Two GET requests produce it. /api/v1/terminal/raw?format=html exports the complete session output, everything that scrolled past, as one artifact. /api/v1/terminal/history/{terminal_id} returns the command list: each entry with its exit code and duration. Attach both to the ticket and close it.

The auditor six months later reads the actual session: which commands ran, in what order, what each returned. Not an engineer's 2 AM recollection typed into a free-text field.

The change record is the session itself, not a summary of it.