docs(schema): add schema/telegram.toml — platform source of truth#1306
docs(schema): add schema/telegram.toml — platform source of truth#1306chaodu-agent wants to merge 1 commit into
Conversation
Machine-readable TOML schema for Telegram platform capabilities, aligned with the three-layer trust architecture (ADR #1291, Phase 3). Covers: - Trust layers (L1 secret_token/IP, L2 scope, L3 identity deny-all) - Platform capabilities (message limits, threads, reactions, bot model) - OpenAB feature support with symbol references (not line numbers) - Quirks & findings log with dates and official doc references This is the first platform schema file; others will follow the same structure. The schema enables future CI conformance checks, docs generation, and capability-aware runtime routing. Ref: #1291 (trust ADR), #1295 (platform knowledge base)
|
LGTM ✅ — Well-structured platform schema establishing the first machine-readable source of truth for Telegram capabilities. What This PR DoesAdds How It WorksFour-section TOML structure:
Findings
Baseline Check
What's Good (🟢)
|
|
LGTM ✅ — Well-structured platform schema establishing machine-readable source of truth for Telegram capabilities. What This PR DoesIntroduces How It WorksSingle TOML file organized into sections: platform identity, trust layers (L1/L2/L3), message capabilities, thread model, interactions, bot behavior, OpenAB feature support matrix (with symbol references), and dated quirks log. Designed to be the canonical reference for CI conformance checks and future multi-platform schemas. Findings
Finding Details🟢 F1: Trust layer alignmentAll three layers (L1 platform auth, L2 scope control, L3 identity gate) correctly documented with config fields, defaults, and decision semantics matching the ADR #1291 architecture. 🟢 F2: Symbol references over line numbers
🟢 F3: Quirks traceabilityEach quirk entry has a date and official Telegram docs reference link, making it easy to verify against upstream changes. 🟢 F4: TOML format choiceConsistent with project convention ( Baseline Check
What's Good (🟢)
|
Summary
Adds
schema/telegram.tomlas the machine-readable, single source of truth for Telegram platform capabilities in OpenAB. Aligned with the three-layer trust architecture from ADR #1291.Structure
Three sections (per #1295 design discussion):
implemented/partial/not_implemented) with symbol references (not line numbers — symbols survive refactors)Why TOML (not markdown)?
config.toml)git diff schema/telegram.tomlshows exactly what changedTrust alignment (ADR #1291)
secret_token+trusted_source_only(IP subnet check)allow_all_users = false+allowed_userswhitelist (THE security gate)Future
Ref
Discussion: https://discord.com/channels/1491295327620169908/1491365158868619404/1523034521807618289