Dashboard › opencode › Distillation
09e15f06-bf7a-4c5e-8bb2-ea5dc6e922f2["lore_tm_v1_b6FUQnX5P_DTSXvw0mG8vl0zhVLddeCOGePj6YygiMs","lore_tm_v1_rTS-TYDjlx4bevZq_HMvePdHBkKeQICaKJViNxuIYao","lore_tm_v1_yq1X8Ks_iV2-lgElfKO3IDgAxjdqkdKsC0ielLVuCog","lore_tm_v1_PNMoWw-BwI2lx0IszHylSkF17ySY0L_6HudXf3hOYj0","lore_tm_v1_MfKo4TPJrSQaXBxJuRYlskDg6Fb_R1_V0_rgqxWZr0M","lore_tm_v1_JRUEn8eB0xFA1ql8Nl_vRlAdXEA8ZlLbgN_sZaZelAw","lore_tm_v1_PQM1JnXUSrnTm8WlYIX7YyOL_1Ij0Q47FagotgCr3UI","lore_tm_v1_me0XoQlSnlDLNIc_WTabNcH31KU36NdoHAujg6hlfAA","lore_tm_v1_0QbsNQac9NVvVymP1SkIRGWG0xV5UtpUkDAherOhYdE","lore_tm_v1_yJTRtDQX_3_0LnJ5aYPwCF0xgL88hDF7yjoU89auWJA","lore_tm_v1_qdUAJmmq9t04YtOynoXq1BETppwrQv97OdRoZBDL0dA","lore_tm_v1_sPxg3vuizV4NcJG3Lue4tFrwOLTg7nlsL9mSQdLChZ8","lore_tm_v1_ExkUBVVPixCBDl8Hp7u9MtITQgIuPMk4igMbJZArljc","lore_tm_v1_UAMa2XpDmRJAueUoCjBTi_WHeUins9J47lJjGL741qE","lore_tm_v1_8ND_Tjj8BK7ieRN1jmrm2j0UZeK8mhsTgX9VabL1_zw","lore_tm_v1_yJlja33YXxTby9cBgjACe47yDdNCKTlP8keaNKHK4RU","lore_tm_v1_YB60DQTrcRbaFKEU40qcjbE6VjhIx1ZofMs4YKH5vlk","lore_tm_v1_9_1puLCh1OVu1N7TPdFWOWsewk8cyojgqty7xjZ8jTQ","lore_tm_v1_Mu0ma75I01-DwMDqJ3DkVGGeO97QBVktz2nkV9Q0DpY","lore_tm_v1_Q-3-Os3bYmghNQnc9QdAW1S1EK238qIyFpHuQGCvkDI","lore_tm_v1_YKcXfm0CxXSqnwooaU60tCRXyzsNNwTNBiy7V5MFm7A"]
/home/byk/.local/share/opencode-v2-pilot/supervisor/ROOT-ACCEPTANCE.md specifies that /etc/opencode/pty-supervisor-verified may be created only after independent correctness and security approvals and all target-host checks pass; it must be a root-owned mode-0644 regular file containing exactly four newline-terminated lines in fixed order: the exact revision=opencode-v2-pilot:git:<reviewed-40-hex-commit>;pty-source:sha256:<reviewed-source-manifest-hash> value embedded in verify-readiness, then standard sha256sum records for /usr/local/libexec/opencode-pty-supervisor, /usr/local/libexec/opencode-pty-launcher, and /usr/local/libexec/opencode-pty-client; duplicate or trailing lines are invalid./home/byk/.local/share/opencode-v2-pilot/CUTOVER.md still referenced the prior binary /home/byk/Code/opencode-v2-pilot/packages/cli/dist-v2-pilot-final/cli-node-linux-x64/bin/opencode2-node and candidate port 14102, while /home/byk/.local/share/opencode-v2-pilot/config/opencode/service-v2-pilot.json still specified port 14097./home/byk/.local/share/opencode-v2-pilot/CUTOVER.md to use the verified dist-v2-pilot-byk artifact and loopback port 14104, replacing the prior binary and port 14102./home/byk/.local/share/opencode-v2-pilot/config/opencode/service-v2-pilot.json from port 14097 to loopback port 14104./home/byk/.local/share/opencode-v2-pilot/supervisor directory was explicitly excluded from the metadata update and left untouched./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/pty.ts found a cleanup defect: after a PTY emitted its model-visible exit notification on natural or explicit exit, later removal could emit the same notification a second time. Root cause was notification delivery lacking an idempotence guard across exit and cleanup paths./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/pty.ts to make exit-notification delivery idempotent across natural exit, explicit cleanup, parent Session deletion, and plugin unload./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/pty.ts: limits are MAX_SESSIONS=16, MAX_SESSIONS_PER_OWNER=5, DEFAULT_READ_LIMIT=500, MAX_READ_LIMIT=2_000, MAX_READ_OFFSET=10_000, MAX_LINE_LENGTH=2_000, MAX_PATTERN_LENGTH=500, MAX_WRITE_SIZE=65_536, MAX_TIMEOUT_SECONDS=3_600, CLOSE_TIMEOUT_MS=27_000, NOTIFICATION_TIMEOUT_MS=5_000, IO_TIMEOUT_MS=NOTIFICATION_TIMEOUT_MS, MAX_COMMAND_LENGTH=4_096, MAX_ARGUMENTS=128, MAX_ARGUMENT_LENGTH=16_384, MAX_ARGUMENT_BYTES=65_536, MAX_PATH_LENGTH=4_096, MAX_TITLE_LENGTH=500, MAX_DESCRIPTION_LENGTH=2_000, MAX_REGEX_WORKERS=4, MAX_BUFFER_SIZE=1_000_000, TERMINATE_TIMEOUT_MS=2_000, and SPAWN_TIMEOUT_MS=5_000./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/pty.ts uses /usr/bin/script and /bin/sh; its fixed environment is HOME=/home/byk, LANG=C.UTF-8, LOGNAME=byk, PATH=/usr/bin:/bin, SHELL=/bin/sh, TERM=xterm-256color, and USER=byk.openPtyProcess() in /home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/pty.ts launches /usr/bin/script detached with working directory bound through /proc/self/fd/${directory.fd}, preserves command/argument boundaries using shellCommand(), obtains the command PID through file descriptor 3, validates it against /^[1-9][0-9]*\n$/, and enforces startup timeout cleanup with process-group SIGKILL.openPtyProcess().close() signals both command and wrapper process groups with SIGTERM, waits up to TERMINATE_TIMEOUT_MS=2_000, escalates both to SIGKILL, then requires both child closure and process-group disappearance; otherwise it throws PTY process ${pid} did not close./home/byk/.local/share/opencode-v2-pilot/config/opencode/test/pty.test.ts failed because the expected notification assertion lines did not match the current file; assistant inspected the existing test and reapplied the change against its actual structure.kills the process group and reports a JSON notification test in /home/byk/.local/share/opencode-v2-pilot/config/opencode/test/pty.test.ts: after verifying the first pty.exit notification, the test invokes pty_kill with { id: session.id, cleanup: true } and requires harness.notifications to remain length 1.1 pass, 13 filtered out, 0 fail, and 4 expect() calls under Bun 1.4.2 (744846f84)./home/byk/.local/share/opencode-v2-pilot/config/opencode/test/pty.test.ts:108: expected notification length 1, received 2; result was 0 pass, 13 filtered out, 1 fail, and 4 expect() calls./home/byk/.local/share/opencode-v2-pilot/config/opencode/plugins/pty.ts./home/byk/.local/share/opencode-v2-pilot/config/opencode/test/pty.test.ts suite passed 10 consecutive runs under Bun 1.4.2 (744846f84); every run reported exactly 14 pass, 0 fail, and 34 expect() calls, for 140 passing tests total.14104 candidate and repeating authenticated health, UI, and plugin-activation checks.