STUDIO CONTINUATION — November 1, 2026
LATEST RESULT: Studio user-wide installation/discovery and real document delivery
are established. Christopher confirmed attachment arrival and supplied its readable
contents with the expected marker. See the final physical-acceptance entry below.
Read this with TUTORIAL.txt, VERIFICATION.txt and PARITY-INVENTORY.txt.
Original tutorial and verification history are preserved verbatim. They describe
Office and the failed physical handoff; their old next-action wording is historical.

OBSERVED BEFORE FIRST WRITE
Executor: <STUDIO_COMPUTER>; identity <STUDIO_COMPUTER>\<WINDOWS_ACCOUNT>.
Profile: <USERPROFILE>. Documents known folder: <DOCUMENTS>.
Working chat directory remains under <USERPROFILE>\Documents\Codex; this does
not change the independently resolved Documents installation destination.
Existing integration directory and known-folder launcher: absent.
Real interpreter: <OBSERVED_STUDIO_PYTHON_DIRECTORY>\python.exe, Python 3.11.0, 64-bit AMD64.
Sibling pythonw.exe exists; tkinter/Tk 8.6, Tcl 8.6.12, actual masked control works.
tomllib successfully parsed current user config. In-memory current-user DPAPI
roundtrip passed without writing ciphertext to disk. Windows ACL APIs and System32
security helpers are present. No Python installation or system setting changes.
Codex: <USERPROFILE>\AppData\Local\OpenAI\Codex\bin\9614f1d9b40d9c4f\codex.exe
Version: codex-cli 0.162.0-alpha.17.2 (Office had 0.153.4).
CODEX_HOME process/user/machine overrides absent.
Actual user config: <USERPROFILE>\.codex\config.toml; valid TOML; one existing
MCP server; no telegram_files entry. Private credential directory absent.
CIM process inventory and Appx package inventory were denied in the sandbox.
Direct command resolution, executable file metadata and CLI version were used.
CLI version/help emitted denied automatic arg0 temporary-directory housekeeping
warnings; the integration did not request those housekeeping changes.

SOURCE REVIEW AND DECISIONS
Install.ps1 already derives Documents and resolves python.exe. Studio resolution
is a real compatible interpreter, so no guessed Office runtime substitution or py
launcher fallback was needed. Additive installer preflight now validates minimum
version, executable identity, tkinter, sibling pythonw, DPAPI/ACL symbols, all
required files, and existing-source conflicts before installing. The installer also
retains tests, registration helper, inventory and continuation evidence in the
destination. Existing differing files require review rather than silent overwrite.
register_user.py is unchanged: targeted direct TOML registration, byte preservation,
parsed-delta check, repeatability and conflict refusal. CLI mcp add is not used.
Production server, core, setup and sample remain byte-identical to the handoff.
The original sample text claims Studio preparation; that source claim is not
independent provenance. Its unchanged SHA-256 and marker are the acceptance basis.
Christopher confirmed knowing expected Maverick username and private numeric chat
ID and will enter both locally. No identity was guessed and no updates consumed.

OFFLINE TESTS
First Studio sandbox run: 16 passed, 1 error. The hardlink fixture creation was
denied by the sandbox (WinError 5), before its denial assertion. DPAPI, real ACL,
masked UI, read locking, exact upload bytes, pinned identity/recipient, redaction,
no retry, direct config preservation and two-context stdio tests passed.
Normal-user rerun: all 17 passed, no failures/errors, 0.519 seconds, using Studio's
<OBSERVED_STUDIO_PYTHON_DIRECTORY>\python.exe and synthetic credentials only. No Telegram API call.

INSTALLATION AND PRESERVATION — OBSERVED
Installation succeeded at <DOCUMENTS>\Codex\Integrations\telegram-files.
The actual user config gained only its telegram_files table, with absolute
<OBSERVED_STUDIO_PYTHON_DIRECTORY>\python.exe and installed server.py paths and a 180-second timeout.
Independent comparison to the retained current-user-DPAPI encrypted baseline:
all original configuration bytes remain the prefix; unrelated parsed values are
identical; the existing config file ACL is identical. No original settings guessed.
Before SHA-256: 9aa2b26714ec7b5baaed14d50b69f24b3b22d1dc67260fc16c74c5cb83dfcca5
After SHA-256: 82b49d1b9eef58a61967eb8d0b44985c52d20770e78387dc5e139019bf18f0be
An actual registration recheck returned already registered, with byte-identical
current config. Original server/core/setup/register/tests/tutorial/verification/
sample files installed byte-identical to the source handoff.
The final complete reviewed installer was rerun successfully, returned already
registered and left the config hash unchanged. All 15 maintained source/evidence
deliverables matched their installed copies at the subsequent comparison. The
handoff ZIP and sample hashes were independently rechecked and unchanged.

ACTUAL CODEX DISCOVERY — OBSERVED ON STUDIO
The installed client's protocol JSON schema was generated locally. A first harness
attempt timed out at initialize because the process had exited before the harness
handled stdout closure. The diagnostic retry revealed invalid transport for a
quoted node_repl session override. The harness had incorrectly included literal
quotes in its -c dotted key. This was a fixture error, not a production registration
change. The harness was corrected to use the simple key without quotes.
Two fresh standalone app-server processes then successfully initialized, loaded
effective configuration, and returned telegram_status and telegram_send_file from
mcpServerStatus/list, in work/contexts/project-a and project-b. Both reported the
user layer <USERPROFILE>\.codex\config.toml and correct absolute registration.
No project .codex configuration, chats, or real Telegram requests were created.
Other MCP servers and apps were disabled through process-local flags only.
Successful processes emitted no stderr; user config stayed byte-identical.
The result proves Studio availability in those contexts, not every already-open
desktop chat. Send-tool schema still exposes only path and optional caption.

LOCAL SETUP — LAUNCHED, ID ASSISTANCE PENDING
The real pythonw setup process launched successfully. Installed telegram_status
then reported configured false. No real credential was saved at that observation.
Christopher's initial answer indicated knowing both identities; he subsequently
asked how to obtain the private numeric chat ID. The later question supersedes
the earlier assumption of readiness. For a normal private bot conversation this
is the Telegram-assigned user ID; a receiver merely stores a copy. It is not
locally created. A limited read-only check found no .hermes/.openclaw/.clawdbot/
.moltbot receiver directory in the profile; no receiver settings or token were read.
Non-disruptive alternate route verified against Telegram's own documentation and
Desktop source: Settings > Advanced > Export Telegram Data; Account information;
Machine-readable JSON; use personal_information.user_id from local result.json.
The helper still requires getChat/private identity confirmation before saving.
No getUpdates, offset consumption, webhook mutation or bot changes were used.

DOCUMENTATION CORRECTION — CHRISTOPHER'S UTILITY-BOT METHOD
Christopher supplied a simpler account-ID lookup procedure and requested its
inclusion: open Get My ID (@getmyid_bot, https://t.me/getmyid_bot) or Raw Data Bot
(@raw_data_bot, https://t.me/raw_data_bot) in Telegram on phone/computer, tap Start,
and read the personal numeric user ID from the utility bot's reply. This is now
the first documented lookup method in STUDIO-TUTORIAL.txt. The existing-receiver
and account-information JSON-export methods remain as alternatives.
Both public Telegram bot landing pages were independently opened and describe
user-ID lookup. Neither utility bot was contacted through a Telegram account here;
no actual reply or personal ID was observed. These are separate utility bots:
their use does not read Maverick's update stream, consume its offset, or change
its webhook. No utility bot needs Maverick's token, which remains local-only.
This documentation update makes no claim that secure setup or delivery completed.

CURRENT ACCEPTANCE
Installation, offline compatibility/security tests and real two-context Studio
Codex discovery are established. Secure local entry and identity confirmation,
sample upload and Christopher's receipt/download/opening remain OPEN. The latest
observed credential status is unconfigured. No file send has been attempted.

SUBSEQUENT PHYSICAL SETUP REJECTION AND DIAGNOSTIC REVISION 1.0.1
Christopher tried his personal numeric Telegram ID and another current chat ID.
The supplied screenshot showed: Telegram rejected the request. Check the local
bot/chat setup. That fixed message maps to API 400 in source 1.0.0, but does not
identify the failing API operation or establish Telegram's underlying reason.
Screenshot preserved at evidence/setup-identity-rejection-2026-11-01.png.
Christopher then confirmed he had started only the ID utility bot, not Maverick.
Missing private interaction with Maverick is a plausible explanation, not yet a
confirmed root cause. He was directed to open the exact existing Maverick private
chat from the same account, tap Start and retry with his personal numeric user ID.
No token or numeric identity was requested in chat, and no bot update was consumed.

Version 1.0.1 adds method/code/allowlisted-reason error diagnostics and contextual
setup stages. getChat failures state that the bot username check passed; webhook
check failures state that bot and chat verification passed. Unrestricted API
descriptions and private input are never echoed. No API operation, retry, recipient,
storage rule or confirmation requirement was added or removed. The window now
explicitly says to start the exact bot and is labelled 1.0.1.
All original 17 tests plus 3 new regression tests passed on Studio's normal Windows
user: 20 tests, no failures/errors, 0.541 seconds. New tests exercise all three API
failure stages, raw-error redaction, chat-not-found/Start guidance, one call per
attempt, no later identity calls after failure and no credential save.
Pre-change core/setup/tests are retained in work/revisions/before-identity-diagnostics.
The installed files were checked against that snapshot before replacing only those
three reviewed files; updated hashes match the working source. Codex config hash
was unchanged. Historical source handoff, tutorial, verification and sample remain
preserved. The prior statement that production files were byte-identical describes
the initial installation, before this explicitly recorded diagnostic revision.
At Christopher's request, the revised pythonw masked setup window was launched.
Its local identity/credential-save outcome remains unobserved. No file has been sent.

SUBSEQUENT SECURE SAVE AND FIRST LIVE SAMPLE ATTEMPT — OBSERVED
Christopher supplied the Connected locally confirmation: identities verified and
encrypted settings saved; no file sent during setup. Screenshot retained as
evidence/setup-saved-2026-11-01.png. Installed telegram_status then returned
configured true, pinned_private_chat. The actual private-store DACL was independently
checked: protected, exactly current Windows user and SYSTEM, both FullControl.
No credential or private numeric identity was emitted in the check output.
This establishes secure setup/save. It does not prove that tapping Start alone
resolved the earlier rejection; no controlled before/after root-cause test exists.

The unchanged sample SHA-256 was checked before upload. One authorized sample
invocation was made through the installed stdio sender using its actual user
registration, from disposable project-a. getMe and getChat completed and matched
the pinned approved identities; otherwise sendDocument would not have been called.
Telegram then refused sendDocument with API 403. The safe returned error was:
Telegram sendDocument rejected the request (API 403). Telegram denied access.
Open the bot chat, press Start, and check blocking.
The unrestricted Telegram error description was not retained or exposed; its exact
reason cannot be reconstructed from this response. Do not invent one. No API
acceptance or successful attachment delivery has been established. No message ID
was returned. The attempt/result markers prevent an automatic repeat.
Safe result retained at evidence/sample-send-attempt-1.json. No retry was made.
Christopher was asked to check the bottom of the exact Maverick private chat for
Start/Unblock/Restart/normal input, and that the locally approved private-recipient
name was his own rather than a bot. That diagnosis is pending.
Current acceptance: Studio installation, 20 offline tests, two-context discovery,
secure local identity/save, actual restricted encrypted store VERIFIED. Live file
delivery FAILED on first attempt (403). Receipt/download/opening remain OPEN.
User config hash remains 82b49d1b9eef58a61967eb8d0b44985c52d20770e78387dc5e139019bf18f0be.

VERIFIED WRONG DESTINATION AND REVISION 1.0.2
Christopher supplied a screenshot of Maverick's chat showing a sent /start and a
normal message-entry box, and a utility-bot reply with distinct Selected Bot ID
and Your ID values. Private numeric values are omitted from these documents.
The existing local credential loader was used for a read-only check which emitted
one boolean: pinned_recipient_is_the_bot_itself = true. It made no network request.
This establishes that the saved destination was Maverick's bot ID, not Christopher's
personal user ID. That is a verified setup error consistent with the send refusal;
the API's unrecorded detailed description must still not be invented. Missing Start
is no longer supported by the supplied chat screenshot as the current diagnosis.

Version 1.0.2 rejects a destination equal to the approved bot's ID: in setup after
getMe but before getChat/save, in configuration validation before private storage,
and in send identity verification before any network call. Existing encrypted
self-recipient records are refused; they are not silently edited. The revised
masked window says to use Your ID rather than Selected Bot ID and still requires
fresh bot/private-chat identity confirmation before replacing encrypted settings.
No new API operations, automatic sends, retries, or bot/receiver mutations.
Prior 1.0.1 source is retained in work/revisions/before-self-recipient-guard.

First 23-test run: 22 passed, one stdio-status fixture failed because that old test
inherited the real profile and encountered the now-invalid saved self-recipient.
This exposed fixture dependence on live private-store state. The stdio subprocesses
now use separate empty fixture profiles (process-local USERPROFILE only; no Windows
profile/system setting is changed) and assert unconfigured status. The separate
actual Codex/user-config discovery evidence is retained; no parity check was skipped.
An additional synthetic encrypted legacy-record rejection test was added.
Final run: all 24 offline tests passed, 0.549 seconds, including the original 17.
No real credential or Telegram API request was used by these tests.
The installed source was compared with the preserved previous revision before the
three-file update. New hashes match working source; user Codex config is unchanged.
At Christopher's request, the corrected masked window labelled 1.0.2 was launched.
Destination correction/save is pending his local entry and confirmation. First
failed send evidence and no-retry markers remain retained; no second send occurred.

CORRECTED CONFIRMATION DISPLAYED; CHRISTOPHER'S DEVELOPMENT LESSON
Christopher subsequently supplied a confirmation dialog displaying Maverick and
Christopher's own private-recipient identity. Private values are retained only
in restricted work evidence and are placeholders in public development documents.
The dialog is before Yes, so corrected identity verification is observed; saving
the corrected encrypted destination is not established by that screenshot alone.
No second send or physical receipt/download/opening has been established.

Christopher identified the main issue as lack of clarity: the tool requested his
personal Telegram user ID using language that did not make that meaning clear.
His framework is Clarity. Structure. Accountability. This is now a maintained main
development document, DEVELOPMENT-LESSONS.txt, required by the installer and linked
from the main Studio tutorial. It explicitly attributes the ambiguous prompt,
missing initial self-recipient validation and unhelpful generic error to the
implementation and assistant guidance. It must not describe this as user failure.
It also records that leading with receiver-config and data-export routes created
avoidable complexity before Christopher supplied the simpler utility-bot method.

Version 1.0.3 changes wording only (plus version metadata): the actual input label,
invalid-input guidance and identity-confirmation label now explicitly say Your
personal Telegram user ID. Internal chat_id mapping, masking, validation, local
confirmation, encrypted storage, API allowlist, sender and retry behavior remain.
Prior core/setup and installed installer are preserved in the clarity revision.
The actual hidden native masked-control smoke test passed (1 test, 0.073 seconds);
installer syntax passed. The earlier full 24-test result applies to 1.0.2 behavior;
it was not represented as a new full-suite run for this wording-only revision.
Existing setup windows are not closed, inspected or relaunched by this update.
New wording applies on future launches. No encrypted destination was edited and
no file send was made as part of the documentation/clarity correction.

SECOND SAMPLE ATTEMPT — EXPLICITLY REQUESTED, API ACCEPTED
Christopher explicitly instructed: send the sample again. The executor was
rechecked as <STUDIO_COMPUTER> with the expected profile/Documents. Installed status
returned configured true under 1.0.3, whose validation refuses the old self-recipient
record. This establishes that the corrected encrypted configuration was saved.
The unchanged sample hash was checked again. The first failed attempt/result were
preserved. A separate attempt-2 guard and result file were created, with no retry
loop and no modification/deletion of attempt 1. The user-level command/arguments
were read from the actual config and the installed stdio sender was invoked from
disposable project-b. getMe/getChat checked the pinned identities before upload.
Telegram accepted the actual document: sample-delivery.txt, 345 bytes, message ID 3.
Returned status: telegram_api_accepted; physical acceptance remained pending.
Safe receipt: evidence/sample-send-attempt-2.json. No further attempt was made.
No chats or project configurations were created. User config remains byte-identical,
SHA-256 82b49d1b9eef58a61967eb8d0b44985c52d20770e78387dc5e139019bf18f0be.
Christopher was asked to confirm receiving/downloading/opening the attachment and
reading CODEX-TELEGRAM-LOCAL-2026-11-01. Physical acceptance is not yet observed.
Current state: corrected secure setup and live API acceptance VERIFIED; physical
receipt/download/opening OPEN. Earlier failed attempts and design lessons retained.

PHYSICAL ACCEPTANCE — CHRISTOPHER'S DIRECT CONFIRMATION
Christopher replied Attachment arrived and supplied the complete readable sample
contents, including CODEX-TELEGRAM-LOCAL-2026-11-01. This establishes physical
attachment receipt and access to the file's readable contents, beyond API acceptance.
The report does not separately describe a manual save-to-disk UI action; do not
claim independent observation of that action. The functional attachment-delivery
and readable-content acceptance is satisfied by his direct evidence.
Human report retained separately from the original API receipt at
evidence/christopher-acceptance.json. The API receipt's pending-user wording remains
unchanged as a point-in-time response; it is not rewritten retroactively.
Final established results: actual <STUDIO_COMPUTER> executor and prerequisites; standard-
library Python 3.11 runtime; user-wide absolute-path direct registration; preserved
unrelated config bytes/parsed values/ACL; actual two-context Codex discovery; masked
local identity confirmation and current-user DPAPI store; successful second explicit
sample document upload after destination correction; user-confirmed attachment
receipt and readable correct marker. No extra chats, bots, watchers, update reading,
webhook changes, automatic retries or further uploads. Project overrides and already-
open chat tool-refresh behavior remain subject to their stated limits.
The original Office-path failure, initial config preservation caveat, generic setup
rejection, self-recipient/403 failure and Clarity. Structure. Accountability. lessons
remain preserved. This was a corrected development process, not a first-try success.

READER CHECKLIST AND SEPARATE SOURCE KIT
Christopher requested a reproducible step-by-step checklist for blog readers.
READER-CHECKLIST.txt includes ordered checkbox actions, 19 single-line PowerShell
commands, pass/stop checks, exact personal-user-ID guidance, encrypted config
baseline/private preservation verification, masked local confirmation, actual tool
discovery in two contexts and separate API/physical attachment acceptance.
BotFather remains optional. The checklist is a required maintained installer output.
Installer now accepts optional -PythonExecutable with a verified absolute real
runtime path, enabling readers whose compatible interpreter is found via py or
another location. Omission preserves existing resolution. No runtime installation
or global/PATH setting change is performed. Original installer retained in the
pre-reader-checklist revision. Installer syntax and early relative-path refusal pass.

A separate reader kit retains all source/runtime/tests/required documents. Server
policy wording changes only Christopher to the user for that reader copy. Historical
document copies replace personal host/profile values with placeholders; narrative,
failures, original fingerprints and lessons remain. A manifest records original
and packaged hashes and substitutions. Original maintained source/evidence stays
unchanged outside the explicitly recorded installer/documentation additions.
All 24 offline tests passed against reader source, 0.517 seconds, on Studio's normal
Windows account/Python 3.11.0; no real credential/API call was used by those tests.
An initial command-verification harness used a child script scope and lost its
baseline variable. That harness scope error was corrected; the checklist's commands
were not changed to hide it. All 19 commands then parsed, and the actual baseline
and preservation commands passed with disposable config/source fixtures. No live
config was used by that check. Work files/baselines/private screenshots are excluded
from the archive by a manifest allowlist. An in-memory comparison to existing
private credential values confirmed none occurs in packaged file bytes, without
printing those values. ZIP integrity passed. This is a local reviewable source
deliverable, not publication of a plugin, website, bot or public download.
The maintained installer was then run with the explicit observed Studio runtime,
<OBSERVED_STUDIO_PYTHON_DIRECTORY>\python.exe. It passed preflight and returned already registered;
the live user config remained byte-identical. This exercises the new optional
runtime argument on the actual target without altering credentials or sending.

TUTORIAL ROUTE ON STUDIO (run only after recorded installation)
The main workflow remains: install once at user scope; enter credentials only in
the masked local setup; discover the tools across local projects; request one
chosen attachment; verify actual receipt/download/opening. BotFather stays optional.
Correct destination: <DOCUMENTS>\Codex\Integrations\telegram-files
Correct user config: <USERPROFILE>\.codex\config.toml
Correct interpreter: <OBSERVED_STUDIO_PYTHON_DIRECTORY>\python.exe
One-line launcher command:
& '<DOCUMENTS>\Codex\Integrations\telegram-files\Setup Telegram.cmd'
Selected sample:
<DOCUMENTS>\Codex\Integrations\telegram-files\sample-delivery.txt
Expected marker: CODEX-TELEGRAM-LOCAL-2026-11-01
Do not publish real usernames, numeric identities, credentials, or private config.

CURRENT OFFICIAL GUIDANCE RECHECKED
OpenAI direct user MCP configuration, command/args and timeout:
https://developers.openai.com/codex/mcp
(redirects to https://learn.chatgpt.com/docs/extend/mcp?surface=cli)
Telegram identity methods, webhook inspection and document upload:
https://core.telegram.org/bots/api
Microsoft current-user DPAPI and tamper protection:
https://learn.microsoft.com/en-us/windows/win32/api/dpapi/nf-dpapi-cryptprotectdata
Telegram Desktop export route and exact personal_information.user_id source:
https://bugs.telegram.org/c/60/7
https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/SourceFiles/export/output/export_output_json.cpp
Utility-bot user-ID lookup pages, checked for the documentation update:
https://t.me/getmyid_bot
https://t.me/raw_data_bot
