Skip to content

fix(connectors): the Telegram tagline teaches the model TASK-154 ruled, not one pod (TASK-158) - #1957

Merged
lilyshen0722 merged 1 commit into
mainfrom
kai/task158-telegram-tagline
Sep 27, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
kai/task158-telegram-tagline

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

TASK-158. The Telegram catalog row taught the model TASK-154 reversed: One Telegram chat, one pod. The ruling says one private chat binds one member, and that member's pods sit behind it as gates — so the row now reads:

Link your Telegram chat to Commonly — every pod you turn on reaches it.

Same spirit as Slack's ("every pod you're in gets a voice where you already talk"), and the same vocabulary the rest of the page already uses ("Pods that reach this channel", "Relay {{pod}}").

What changed

  • backend/integrations/manifests.ts — the Telegram catalog description.
  • backend/__tests__/unit/integrations/manifestReadiness.test.js — the exact-string arm updated, and the one-pod sentence split into its own arm so removing it reddens one name instead of hiding behind another.
  • backend/__tests__/unit/scripts/seedBuiltinConnectors.copy.test.js (new) — the seed's Telegram description must be derived from the manifest (description: telegramCatalog.description) rather than forked as a literal, and must not teach the one-pod model.
  • frontend/src/v2/__tests__/V2ConnectorsPage.test.tsx — the fixture and both render assertions.

Why the derivation arm exists (it is not ceremony)

A forked literal that happens to match reads exactly like a derivation, so a value comparison cannot see the fork. The worktree proved it: with the value arm alone, mutating the seed to description: '<the same string>' survived every suite (ledger M2, first run). The source-binding arm is what killed it (M2), and forking a different string reddens both arms (M2b). Slack's description is a literal in that same file, so the fork is a live pattern, not a hypothetical.

How the change reaches a user (verified, not assumed)

seedBuiltinConnectors runs at boot (server.ts:350) and upserts with $set: connector, so the Installable row the Connectors page renders gets the new copy on the next deploy boot — no migration. The page reads entry.description (V2ConnectorsPage.tsx:832), which is why the frontend arm is a render assertion on a hand-copied fixture and the source pin is the backend arm; the fixture cannot import the backend manifest, and the ledger shows that honestly (M1 reddens the two backend arms and leaves the frontend green).

Ledger — 8 mutations, no survivors

# mutation killed by
M1 manifest back to One Telegram chat, one pod. both manifest arms + the seed's one-pod arm
M2 seed forks the copy as a literal, same string the source-binding arm
M2b seed forks it as a literal, different string value arm + source arm
M3 frontend fixture back to the old copy both frontend assertions
M4 findByText back to the old copy 1 arm
M5 getByText back to the old copy 1 arm
M6 page stops rendering entry.description (control) both frontend assertions
M7 joint: both exact-string arms relaxed and copy teaches one pod only the one-pod arm

Suites at this head: manifestReadiness + the new seed-copy suite = 2 suites / 8 tests green; V2ConnectorsPage.test.tsx = 1 suite / 56 tests green. Ledger /tmp/kai-158-ledger.py, output /tmp/kai-158-ledger3.txt.

Two instrument notes, both honest: the first M2 run survived (above — that is what bought the source arm), and my first M7 replacement dropped a comma, so both suites failed to compile and the run reported 2 suites / 0 tests. The ledger's expected count (2/8) caught it — the same "the tell is the COUNT, not a red" shape Vera recorded at 74749. Fixed and re-run; the table above is the clean pass.

Lint

  • backend/integrations/manifests.ts — 0 errors.
  • The new .js test reports only import/no-unresolved + import/extensions for extensionless TS imports, the identical pair the existing seed-builtin-tools.test.js reports (control run) — the un-gated .js corpus, nothing new.
  • Frontend leg is not runnable as a gate here: npx eslint in frontend/ under this worktree fails on the eslint v10 config migration. Running eslint directly on the changed test file gives 0 errors and one pre-existing warning at :78, outside the changed lines. Claiming nothing for the frontend beyond the jest run.

Not in this PR

Wren's carried residual on the row (the already_installed 409 message at V2ConnectorsPage.tsx:420–424, same page, same class of copy) is connector-ops' call whether it rides here; I have asked. No layout change, so no UI-hold PNGs.

Gate: Vera (one gate).

@lilyshen0722
lilyshen0722 added this pull request to the merge queue Sep 27, 2026
@lilyshen0722
lilyshen0722 removed this pull request from the merge queue due to a manual request Sep 27, 2026
@samxu01
samxu01 force-pushed the kai/task158-telegram-tagline branch from 835caf4 to 6c53721 Compare September 27, 2026 11:29
@lilyshen0722
lilyshen0722 added this pull request to the merge queue Sep 27, 2026
Merged via the queue into main with commit 2659760 Sep 27, 2026
16 checks passed
lilyshen0722 added a commit to thantiklermcirony/commonly that referenced this pull request Oct 9, 2026
…ip hardened (Team-Commonly#1975)

* docs(plans): Telegram routing shipped, test binding removed, membership hardened

Updates the connector rows of the readiness matrix for what landed after the
2026-09-27 Telegram re-walk: pod tags and quote-reply routing (Team-Commonly#1935, TASK-156,
tags seen live), the catalogue tagline (Team-Commonly#1957), the test binding removed on
Sam's word, and the membership hardening across every connector write path
(TASK-161/162/166/168/171/175) as it bears on C9.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MCF2UK3EQ6z6EHdvxAkM44

* docs(plans): the TASK-175 clause names the hosted exemption; owner routes are Discord/Slack (Vera 74954)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MCF2UK3EQ6z6EHdvxAkM44

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant