CODEX TELEGRAM FILE DELIVERY — OBSERVED VERIFICATION
Version 1.0.0; executor host <OFFICE_COMPUTER>; November 1, 2026.
CORRECTION: this executor was previously called the studio PC without user-confirmed
machine identity. Installation and test evidence below applies to this executor
and its User account only. Availability on Christopher's actual studio session
has NOT been established.

Installed runtime:
  <OFFICE_USERPROFILE>\Documents\Codex\Integrations\telegram-files
User-scope registration:
  <OFFICE_USERPROFILE>\.codex\config.toml, mcp_servers.telegram_files
Command: <OBSERVED_OFFICE_PYTHON_DIRECTORY>\python.exe
Arguments: -I -B <installed runtime>\server.py
tool_timeout_sec: 180

OFFLINE AUTOMATED RESULTS
Command (from this workspace):
  python -I -B .\outputs\telegram-files\test_telegram.py
Final observed result after pinning Windows security helpers to System32:
17 tests passed, 0 failures, 0 errors, in 0.901 seconds.
This final run used the normal Windows user outside the execution sandbox so
actual DPAPI, ACL changes, hardlinks and native GUI controls could be tested.
All token-like test values were synthetic. No Telegram request was made.

Covered: actual DPAPI encryption/decryption and tamper failure; actual restricted
directory and encrypted reload; actual Windows read-lock exclusion; exact chosen
attachment bytes and pinned recipient; wrong bot/username/chat and group rejection;
unsupported paths, empty and oversized files; vault and hardlink refusal; no
arbitrary recipient or extra arguments; setup read-only API allowlist and expected
identity; prohibited update/webhook/message operations; multipart file bytes and
content length; network-error redaction/no retry; unexpected-error redaction;
caption limits before credential access; instantiated masked Tk controls; stdio
initialize, tool discovery and harmless status from two separate fixture contexts.
Also covered: direct user registration retains unrelated bytes including unknown
options, comments and CRLF newlines, is repeatable, and preserves conflicting entries.

Earlier development results, retained:
- Initial default-temp sandbox run failed during fixture creation because the
  sandbox redirected TEMP to a location it could not subsequently write. Tests
  were moved to workspace work/verification. No real credentials were present.
- Workspace sandbox run: 14 passed, 2 errors (ACL verifier and hardlink permission).
- Normal-user run: 15 passed, 1 error. The remaining ACL verification failure was
  directly diagnosed: Get-Acl's PowerShell Security module could not autoload.
  Replaced that dependency with .NET Directory.GetAccessControl and reran the suite.
- No Telegram upload was attempted. A subsequent physical setup-launch failure
  is recorded below; earlier automated results do not override that failure.

INSTALLED CODEX DISCOVERY — OBSERVED
The installed CLI's app-server protocol schema was generated locally. Two fresh
Codex app-server processes were initialized, one from each isolated folder:
  <workspace>\work\contexts\project-a
  <workspace>\work\contexts\project-b
Both mcpServerStatus/list results included telegram_files with telegram_send_file
and telegram_status. The actual user configuration and installed runtime were used.
No Codex chats were created and no existing project files were modified. Other
servers/apps/plugins were disabled only inside those disposable discovery processes.
These are real Codex discovery results, not mocked MCP-client results. They do
not prove tool visibility in every already-open desktop chat or live upload success.

CONFIGURATION PRESERVATION — QUALIFIED RESULT
Initial supported CLI registration succeeded, but the independent parsed
before/after comparison failed outside the new entry. The original snapshot was
not persisted, so its exact delta is unavailable. Do not claim original unrelated
configuration was proven unchanged. OpenAI source shows mcp add rewrites the full
MCP server map; normalization is INFERRED, not CONFIRMED, as an explanation.
No speculative restoration was attempted. Final installer switched to the official
direct user-config route. It checks the parsed result and writes only its own
table, preserving existing file bytes and ACL. Its preservation/conflict test
passed. A real idempotent installation recheck passed with current unrelated
configuration unchanged. An encrypted current baseline was retained in work.

Sources: https://developers.openai.com/codex/mcp
https://raw.githubusercontent.com/openai/codex/main/codex-rs/cli/src/mcp_cmd.rs

PENDING LIVE / HUMAN ACCEPTANCE
Credentials: not entered; actual bot and private chat not yet verified.
Telegram upload: not attempted.
Christopher receiving/downloading/opening sample: not yet confirmed.
Automated mocks and API acceptance alone do not establish physical acceptance.
The harmless sample is sample-delivery.txt, marker CODEX-TELEGRAM-LOCAL-2026-11-01.

NEXT USER ACTION AFTER LOCAL PREPARATION
The previous launch instruction FAILED physically; do not repeat it or substitute
a guessed profile path. Run the read-only host/account/path diagnostic below in
the SAME PowerShell window that reported the failure. No credentials are needed.

FAILED PHYSICAL CANDIDATE — RETAINED EVIDENCE
Candidate: local integration version 1.0.0 and its original absolute-path handoff.
Preserved original ZIP SHA-256:
  B61922173E54C4D0B1717874796809F274AAA4E456E171EE710DEC9175BA25CC
Executor launcher SHA-256:
  ECE243B1953BFBDFAACD8725CC7879367D9EDDFB6ADF673DE367110CB365766D
Causal hypothesis behind original handoff: the executor's host/account/install
path corresponded to Christopher's studio PowerShell session. This was unproven.
User-observed result: launch FAILED before credential entry, no setup window opened.
Attempted command:
  & '<OFFICE_USERPROFILE>\Documents\Codex\Integrations\telegram-files\Setup Telegram.cmd'
PowerShell error: CommandNotFoundException / ObjectNotFound for that exact launcher.
Visible prompt: PS <USERPROFILE>>
The prompt establishes a working directory, not the current Windows identity or
computer name. It does not prove that replacing User with Chris would be correct.
Evidence supplied through the coordinating chat: screenshot transcription, with
attachment codex-clipboard-13567164-6762-466b-baed-39af56081d78.png. The image was
not independently opened here because the supplied transcription suffices for
this first decision boundary.

READ-ONLY EXECUTOR CHECK — OBSERVED
Computer: <OFFICE_COMPUTER>
Windows identity: <OFFICE_COMPUTER>\<OFFICE_ACCOUNT>
Profile: <OFFICE_USERPROFILE>
Documents known folder: <OFFICE_USERPROFILE>\Documents
Original supplied launcher exists as a file HERE: true.
Launcher under this account's Documents known folder exists HERE: true.
These facts establish only the current executor environment. They do not establish
that this executor is the machine/session shown in Christopher's screenshot.

DIAGNOSTIC CONCLUSION
OBSERVED: the user-facing launch failed at command/file resolution before setup.
OBSERVED: the candidate launcher exists in this executor's User installation.
INFERRED: a host/account/path or visibility mismatch is plausible.
INDETERMINATE: which mismatch caused failure in the actual user session.
No production correction, reinstall, configuration change, credential access,
alternate-path launch, bot operation, or second-host deployment was performed.
Live setup, actual studio cross-project availability, bot/chat identity, sample
delivery, and physical receipt/opening remain OPEN.

SMALLEST NEXT DIAGNOSTIC — RUN IN THE FAILING POWERSHELL WINDOW
$docs = [Environment]::GetFolderPath('MyDocuments')
[pscustomobject]@{
  Computer = [Environment]::MachineName
  Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
  Profile = $env:USERPROFILE
  Documents = $docs
  SuppliedLauncherExists = Test-Path -LiteralPath '<OFFICE_USERPROFILE>\Documents\Codex\Integrations\telegram-files\Setup Telegram.cmd' -PathType Leaf
  AccountLauncherExists = Test-Path -LiteralPath (Join-Path $docs 'Codex\Integrations\telegram-files\Setup Telegram.cmd') -PathType Leaf
} | Format-List

Share only that non-secret output. Determine the correct machine/account and
actual install presence before preparing a portable installation/handoff plan.
Do not enter a bot token during diagnosis. The original ZIP remains preserved
as the failed handoff candidate; this live evidence file supersedes its older
acceptance/status wording without erasing the failed physical result.

CONFIRMED HOST BOUNDARY — SUBSEQUENT USER EVIDENCE
Christopher's failing PowerShell session reported:
  Computer: <STUDIO_COMPUTER>
  Profile: <USERPROFILE>
  Documents known folder: <DOCUMENTS>
  Known-folder-derived integration launcher exists: False
The integration was installed on a DIFFERENT COMPUTER: <OFFICE_COMPUTER>, User account.
This host mismatch is CONFIRMED, superseding the earlier INDETERMINATE diagnosis.
Christopher subsequently identified <OFFICE_COMPUTER> as his OFFICE PC. The voice chat
was started there and is now being viewed from Studio. The retained Office
execution context explains why viewing the chat on Studio did not retarget it.
No Telegram credential was entered and no file was sent.

SUPPORTED EXECUTION REACHABILITY CHECK
Both this chat's shell and its independent JavaScript executor report MiniMC
and <OFFICE_USERPROFILE>. Available shell/JavaScript tools have no destination-host
argument. Host-handoff tooling cannot move the calling chat itself and does not
establish the identity of Studio from an unverified host label. No handoff,
extra chat creation, UI settings exploration, or guessed-host deployment occurred.
This establishes no supported Studio execution route from this chat; it does not
mean Studio is offline. No further Office installation/configuration writes were
made during this handoff. Only deliverable source documentation and packaging
were updated. The original failed-candidate ZIP remains unchanged.

CURRENT NEXT ACTION
Christopher should create a NEW LOCAL Codex chat on <STUDIO_COMPUTER> and provide the
portable source/handoff attachment. Before any write, that chat must independently
verify its execution host, Windows identity, profile, Documents known folder,
Python executable/version/tkinter/pythonw, and Codex configuration location.
Studio prerequisites and package compatibility remain UNVERIFIED. Do not run
the packaged installer blindly. See STUDIO-HANDOFF.txt for the full continuation.
Standing user preference: every presented PowerShell command must be ONE LINE.
