One row per work item; rows update in place, verdicts append — never delete.
scripts/genome status <id> <state> --evidence <path> is the supervised transition
(terminal states demand evidence; scripts/genome claim-register is the
flock-guarded claim, appended to the notes cell).
Seeded 2026-10-17 from docs/archive/OUTLINE-2026-10-17.md — the frozen
plan. Every row's "where" was verified against the tree at ca63a9e by the
outline itself; the outline stays as the plan-of-record, this register carries
live status.
| id | status | item / verdict | notes |
|---|---|---|---|
| V1a | done | live_reddit_test runs non-skipped: import a working cookie blob or OAuth token; 5 tests green; anything surfaced goes through the audit-fix pattern → [2026-11-05] re-measured — verdict: THE DEFERRED CONDITION LAPSED. The row said 'DEFERRED by user 2026-10-18: resume when credentials are supplied', and the credentials ARE now supplied: the local .env carries REDDIT_ACCESS_TOKEN, REDDIT_REFRESH_TOKEN and REDDIT_COOKIE_TOKEN, all non-empty. The suite runs NON-SKIPPED: 5 passed / 0 failed in 8.68s, including the full write round-trip — get_rules (7 rules), list_flairs (8 entries), list_friends, get_saved, read_all_messages, and the write parity test (crosspost created as t3_1xo383u then its fixtures deleted, a report accepted, friends add/remove round-tripped). Nothing surfaced that needed a fix, so the row's audit-fix clause is satisfied vacuously. The one skip inside the suite is deliberate and self-describing: block_user: no reversible live path (no unblock op in this port). Note for the next agent: the live tests read credentials from the .env FILE via config::load_dotenv_for_live_tests(), not from the shell environment — the shell has none of them set, so a bare-shell run skips everything and a file-backed run does not. |
creds, not code; S–M; order: V1a first (cheapest creds) — CLOSED on evidence 2026-11-05 |
| V1b | open | live_telegram_test roundtrip non-skipped: complete tu_request_code/tu_sign_in once → [2026-11-05] re-measured — verdict: STILL BLOCKED, and the row's wording names ONE missing thing where there are THREE. TELEGRAM_API_ID/TELEGRAM_API_HASH ARE now supplied (present and non-empty in the local .env), so the API credentials are NOT the blocker. The suite skips on: Telegram session not authenticated (run tu_request_code/tu_sign_in first) — a USER session that has completed sign-in — and TELEGRAM_TEST_PEER not set (a @username the session can message, or 'me') — a peer to talk to. So the condition is an authenticated user session PLUS a peer, on top of the API credentials. Result: 1 passed (skipped) in 2.38s |
MUST stay a single sequential test (grammers sessions are not concurrent-client safe); S. Re-check against the .env FILE, not the shell environment. DEFERRED by user 2026-10-18 |
| V1c | open | live_discord_test non-skipped: DISCORD_BOT_TOKEN + test guild; 3 tests green, chronological order asserted → [2026-11-05] re-measured — verdict: STILL BLOCKED, condition unchanged and now precise. All 3 tests skip: DISCORD_BOT_TOKEN not set (the key EXISTS in the local .env but its value is EMPTY — a distinct condition from the key being absent), DISCORD_TEST_CHANNEL_ID not set, DISCORD_TEST_GUILD_ID not set. Result: 3 passed (skipped) in 0.00s |
S. Needs a non-empty bot token, a test channel id, and a test guild id with a bot that can read it. DEFERRED by user 2026-10-18 |
| V1d | open | live_whatsapp_cloud_test full: WHATSAPP_CLOUD_* sandbox creds; template round-trip + wc_send_template + webhook GET verification → [2026-11-05] re-measured — verdict: STILL BLOCKED, condition unchanged. 3 tests: test_wc_webhook_signature_helpers PASSES (it is a pure helper test needing no credentials), and 2 skip — WHATSAPP_CLOUD_TOKEN/_PHONE_NUMBER_ID/_WABA_ID not set and WHATSAPP_CLOUD_TEST_TO not set (no live send). Result: 3 passed / 0 failed in 0.00s |
M — needs the Meta developer-app dance: the Cloud API triple (token, phone number id, WABA id) plus a test recipient. DEFERRED by user 2026-10-18 |
| C1 | done | one resumable-upload implementation: shared youtube_upload::resumable_upload(...); google.rs:286–326 and youtube.rs:1023–1073 call it → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Measured: ONE implementation at src/social/youtube.rs:556 (pub(crate) async fn resumable_upload, with the header comment naming why it exists), called by both sites the row names - google.rs:279 and youtube.rs:1110. uploadType=resumable occurs exactly once in src/, and google.rs carries 0 of the flow's own markers, so the duplication is gone. The 'shrink google.rs' half is a size preference, not the debt. |
S–M; shrink google.rs |
| C2 | done | seam debt: splitter takes &dyn SocialProvider (limits live on providers); db::types::EpochUtc newtype wraps the two cutoff binds → [2026-11-05] re-measured twice — verdict: the row's ORIGINAL PREMISE was stale on both halves, and the debt it named has been RESOLVED. (1) The splitter takes no provider object: content_splitter::split_content(content: &str, provider: &str, limit: usize) (src/services/content_splitter.rs:24) takes the provider IDENTIFIER and the limit as plain values, and the limit comes from SocialProvider::max_content_length() at the CALL site (services/staging.rs:241, api/posts.rs:1681). (2) EpochUtc no longer wraps 'the two cutoff binds' — the 9.34 TEXT-vs-INTEGER class of bug was fixed repo-wide, 32 EpochUtc::from call sites in db/queries.rs alone. The DEBT that remained was that the limit LIVES on the provider, which is the correct OWNERSHIP — but it left a second copy of the limit in the frontend's static fallback table, and that copy had DRIFTED in 13 places. That drift is now fixed and pinned by tests/char_limit_parity_test.rs (see CHAR-LIMIT-DRIFT). The map_or(0, ...) fallback at the call sites is fail-SAFE, not a bug: a limit of 0 means 'no limit' in the splitter (content_splitter.rs:26), so an unregistered provider yields one unsplit segment rather than a crash. |
the seam is now in the right shape: the provider owns its limit, the server publishes it, the frontend prefers the published value, and the fallback table matches the authority and cannot drift silently. CLOSED on evidence 2026-11-05 |
| R1 | done | Telegram write-queue loss window: document the ceiling in tu_queue_send + AGENTS.md (S), or persist a telegram_queue table (M) — persist only if V1b shows real payloads → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: S shape landed: the ceiling is documented at the definition (src/services/telegram_client.rs queue_send, with the loss window, the outcome path and a ponytail: marker) and in AGENTS.md 7.8. The row named tu_queue_send in src/social/telegram_user.rs, which has no send path; the real queue is services/telegram_client.rs over WriteQueue in telegram_rate.rs. M shape (a telegram_queue table) stays unbuilt on the row's own condition - persist only if V1b shows real payloads lost, and V1b is deferred pending credentials. Founder-facing line: 'queued: true means accepted for this process's lifetime'. |
decision point, not a bug |
| P6.1 | rejected | LinkedIn/Facebook/Instagram cookie ports → [2026-10-17] docs/archive/OUTLINE-2026-10-17.md standing notes — verdict: REJECTED on evidence |
re-evaluate only if a scraping provider is ever shown to work where the API path cannot |
| P6.2 | rejected | (same evidence as P6.1) → [2026-10-17] docs/archive/OUTLINE-2026-10-17.md standing notes |
same re-open condition |
| P6.3 | rejected | (same evidence as P6.1) → [2026-10-17] docs/archive/OUTLINE-2026-10-17.md standing notes |
same re-open condition |
| B12 | blocked | Linux Chromium cookie decrypt — deliberately not implemented; upgrade path documented at browser_cookies.rs:64 (ponytail: note) |
unblock = evidence the Firefox/Zen plaintext import + paste paths are insufficient |
| WA-inbox | blocked | WhatsApp Cloud inbound webhook messages parsed + trace-logged only | unblock = the first consumer that needs an inbox table (api/whatsapp_webhook.rs:4) |
| MCP-identity | rejected | /mcp streamable-HTTP advertises serverInfo: rmcp (identity macro-owned by #[tool_handler]) → [2026-10-17] docs/archive/OUTLINE-2026-10-17.md standing notes |
not worth overriding while the macro owns capabilities advertisement |
| AUD-1 | done | splitter hung when a thread provider's numbering overhead left no room for one character → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
find_break_point now advances one whole character; 2 tests |
| AUD-2 | done | OAuth between-steps redirect carried a 30-day session JWT in the URL → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
frontend never read the token; page picker uses the session cookie |
| AUD-3 | done | 20 documented CLI commands rejected by clap (README + skill references) → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
tests/doc_cli_commands_test.rs guards it; 3/3 pass |
| AUD-4 | done | MIME lib test expected unrecognised bytes to be stored under the declared type, contrary to AGENTS §6.2 → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
assertion now expects rejection |
| AUD-5 | rejected | instance_url unwrap_or_default stores an empty URL → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
no provider reads the stored value; Mastodon uses server config |
| AUD-6 | done | media alt accepted and only logged at debug → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
migration 0004 adds alt_text; create_media stores it; round-trip test; MediaPublic does not expose it yet (decision) |
| AUD-7 | done | scheduler audit items (thread successors, group reschedule, repeat state, next slot, RSS dedupe, Telegram transient drops, panicked publish, missing provider, network retry duplicates) → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
shutdown-abort duplicate risk kept as an accepted ceiling, documented by a ponytail: comment at drain |
| AUD-8 | done | CLI/REST/MCP parity: AI endpoints, campaigns, sets, streak, developer keys, RSS CRUD, comment resolve and webhook deliveries are REST-only; CLI posts lacks update/reschedule/tags/thread/validate; no CLI integrations group → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md — verdict: 22 MCP tools for campaigns, sets, RSS, AI, streak, comment resolve, webhook deliveries; CLI posts update/tags/validate and integrations enable/disable; developer keys excluded from MCP (decision 3) |
decision on scope before building |
| AUD-9 | done | website-design gates: authenticated probe at 1440/768/375 had 42 FAIL before fixes and 0 after; contrast 0 failing pairs; detector 20/4 with waivers → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
solid accent buttons set text-accent-fg; route titles are h1; no heading skips; 4 detector waivers recorded; 165 advisory probe warnings (tap targets, 10px nav labels, no btn-primary CTA) |
| AUD-10 | done | doc drift: AGENTS §9.8 event list, AGENTS §7 reclaim window, README tool and command counts → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
tests/surface_docs_audit.rs checks README counts against source |
| AUD-11 | done | production unwrap/expect sites → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 3 |
bare .unwrap() count in production code is 0; rate-limit empty-bucket panic fixed; infallible sites are expects with a reason |
| AUD-12 | done | /api/metrics and /api/streak are public (src/api/mod.rs) → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md — verdict: routes moved behind the session; AGENTS public-endpoint list updated; default is auth required (decision 2) |
decision: keep public or require auth |
| AUD-13 | done | Postgres-only SQL on SQLite paths: NOW() and make_interval in signature update, analytics summary, feed analytics, integration posting times and enable/disable → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
unixepoch() and ? * 86400; queries::set_integration_disabled shared by REST and CLI; test admin_analytics_and_integration_toggle_run_on_sqlite |
| AUD-14 | done | posting_times (TEXT JSON) came back as a JSON string: channels page threw fe.map is not a function, slot finder ignored configured times → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
models::decode_posting_times; test stored_posting_times_text_decodes_to_an_array; found by the seeded-data probe |
| AUD-15 | done | contrast: status badges 3.9–4.3:1 at 10–12 px on their tint; dashboard provider counts 2.1–2.5:1 → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md | content-colour text with a hue ring (decision 5); inkFor in frontend/src/lib/ui/ink.ts; probe light and dark 0 FAIL |
| AUD-16 | done | APP_URL/FRONTEND_URL port must match serve --port, else the feed import POST returns 403 csrf_origin_mismatch → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
README env table, AGENTS env table, serve --help |
| AUD-18 | done | calendar showed no posts: get_calendar_posts_with_metrics bound DateTime (TEXT) against INTEGER epoch columns, and the date OR was unparenthesised so it escaped the user and deleted filters. Kanban update_stage binds were in the wrong order, so drags reported success but did not persist → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
db::types::EpochUtc binds; tests/calendar_range_test.rs (5), tests/kanban_stage_test.rs (3) |
| AUD-19 | done | calendar page refetch loop (~10 /api/calendar requests in 6 s) and week-view chips never rendered (bucketed HH, looked up HH:00) → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
routes/calendar/+page.svelte untrack; lib/calendar/WeekView.svelte key; browser drag verified |
| AUD-20 | done | security: API keys with a past expires_at still verified, because the create handler bound a DateTime (TEXT) into the INTEGER column and expires_at > unixepoch() held for every TEXT value → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
api::developer binds EpochUtc; migration 0005_epoch_api_key_and_plug_times.sql converts stored rows; tests/api_key_expiry_test.rs (3, the past-expiry test failed before the fix) |
| AUD-21 | done | post_plugs.next_run_at bound TEXT, so the plug runner never found a plug due again → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
services/plugs.rs binds EpochUtc; migration 0005 converts stored rows. No automated test: the runner loop has no seam, so the fix is checked by reading and the migration by running it on a scratch copy |
| AUD-22 | done | plug automations had no creation path: the plug table was read and fired by the plug runner, but no REST, MCP or CLI route inserted a row, so the runner was dormant → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md — verdict: plug runner removed, table kept (decision) | decision: remove the runner, keep the table (no schema change, additive-only rule). Removed the runner module, its declaration and the spawn in main. Real automation is automation_rules (REST src/api/automation.rs, MCP tools_automation.rs). Clippy -D warnings exit 0; 699 tests pass |
| AUD-23 | done | /api/proxy-media was a public route: anonymous callers reached the upstream CDN fetch (500 from the upstream path before the fix, 401 after) → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
moved into protected_routes (src/api/mod.rs); AGENTS §6.4 and line 444 updated; tests/proxy_media_auth_test.rs fails on the old route table and passes on the new one |
| AUD-24 | done | /api/proxy-media checked the host allowlist on the first URL only; the media clients followed redirects to any host, so an allowlisted URL could redirect the fetch off the list → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md — verdict: per-hop policy on both upstream clients |
src/api/media.rs: is_proxyable_media_host checks the request URL and every redirect hop; wreq sets the policy per request, reqwest uses a dedicated client PROXY_HTTP_CLIENT (fails closed). Shared clients (Discord attachments) are unchanged. Tests: 2 redirect tests against a loopback server (fail when the policy is disabled), 1 host-predicate test |
| F1 | rejected | 46 non-test Provider::new( sites outside the registry (outline Wave C) → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 5 — verdict: rejected as written. Routing cookie-session providers through the shared registry instance is unsafe: XProvider::prepare_from_token writes credentials into self (src/social/x.rs:155-163), so two accounts' requests would share one credential slot. Construction stays per call; the TLS cost the outline cited is already removed by the shared pools (shared_http, shared_wreq, x_http) |
re-open only if provider credentials move out of self (per-request token argument on every method) |
| W006 | done | five-pair plan overlap flagged by kb lint → [2026-10-19] docs/planning/EXECUTION_2026-10-19.md Cycle 5 and Cycle 6 — verdict: one owner per question. OUTLINE-2026-10-19, -v3 and OUTLINE-2026-10-17 archived behind v2 (the live queue named in AGENTS §0.6); GAPS_2026-10-15 and OUTLINE-2026-10-16 archived as superseded; AUDIT_2026-10-14 moved to docs/audit/ (AGENTS routing table) |
none. kb lint: 0 errors, 0 W006 |
| CHAR-LIMIT-DRIFT | done | the frontend kept a static charLimit per provider as a fallback for the moment before GET /api/providers answers, and it had DRIFTED from Provider::max_content_length() in 13 places → [2026-11-05] found while assessing C2's remaining seam debt — verdict: REAL DEFECT, now fixed. The worst was X: the composer claimed 280 while the server enforced 4000, so a 280..4000 character post was blocked and the Post button disabled — the exact defect §9.20 records having fixed once, BACK IN PLACE, because the fallback table was never pinned to the authority. The others: discord 2000/1980, google 65536/5000, medium 65536/15000, hashnode 65536/100000, devto 65536/800000, skool 65536/10000, whatsapp 65536/4096, google-my-business 1500/3000, and gmail/calendar/drive/github 65536/0 (four providers with NO publish surface, which §9.20 says the composer must not offer at all). The exposure is real, not theoretical: the API client RETURNS { error } on a failed request instead of throwing, so the composer's catch never fires on an HTTP error, provRes.data is undefined, and the static table stays in place SILENTLY — any 500, any network failure, any offline open leaves the composer enforcing numbers the server does not. FIXED: all 13 entries now match the Rust provider exactly. GATE ADDED: tests/char_limit_parity_test.rs (2/2), which reads BOTH tables and compares them — the Rust value is the owner, so the direction of the comparison is fixed. MUTATION-TESTED IN FIVE DIRECTIONS — x 4000→280, github 0→65536, devto 800000→65536, discord 1980→2000, and a RUST-SIDE change (x 4000→280 in src/social/x.rs) each fail the gate with their own message, and each was restored byte-identical. The gate itself had TWO real holes found by mutation, both worth recording: (1) 0 // GitHub does not support publishing does not parse as an integer, so github, devto and wordpress were dropped from the Rust map and NEVER COMPARED — a mutation on github stayed GREEN. The extraction now takes the leading run of digits. (2) the gate's own vacuity check caught a THIRD bug in my first parser: it read the ProviderMeta interface's charLimit: number; as a table row and found zero entries. |
the static fallback table matches the authority for every provider, and cannot drift again without failing the gate. CLOSED on evidence 2026-11-05 |
| VPS-DEPLOY-NOOP-2026-11-05 | done | no redeploy for the comment-only frontend round → [2026-11-05] done — verdict: MEASURED, NOT ASSUMED. After commit 1c02663 changed three frontend files, git diff --stat 83be63b..github/master -- frontend/src/ shows 6 insertions / 4 deletions across providers.ts:13, platforms.ts:166 and PerPlatformCharCount.svelte:7. All THREE are COMMENT-ONLY: they correct statements of X's character limit (280 → 4000) that the code change had already made false. The DEPLOYED binary already serves the correct value — verified over TLS on the VPS: curl -sk https://127.0.0.1:6543/_app/immutable/chunks/UWvnIFti.js returns icon:"X",charLimit:4e3 — and the built bundle contains no trace of the comment text (the minifier strips it), so a redeploy would ship a BYTE-EQUIVALENT bundle for zero behavioural change. NO REDEPLOY NEEDED. The rule that follows: diff --stat HEAD..github/master -- frontend/ being non-empty is a NECESSARY condition for a redeploy and not a SUFFICIENT one — the round-6 deploy was needed because providers.ts changed a VALUE that reaches the browser; this round changed PROSE that does not. Check what the change IS before spending 7 minutes and a service restart on it. |
the deployed behaviour is already correct and stays correct. CLOSED on evidence 2026-11-05 |
| VPS-DEPLOY-2026-11-05 | done | deploy the frontend character-limit fix to the VPS → [2026-11-05] done — verdict: SHIPPED AND VERIFIED LIVE. git diff --stat b1d5dab..github/master -- src/ frontend/ was non-empty for the first time since the round-6 deploy (frontend/src/lib/providers.ts, +13/-13), and the release binary embeds frontend/build, so the running binary served the OLD fallback table - the path that matters, because the API client RETURNS an error instead of throwing, so a failed /api/providers fetch leaves the stale table in place silently. Built from a CLEAN tree (git archive HEAD, 909 files, the shared tree carries another writer's uncommitted files) with the frontend built IN that tree. Binary: sha256 197acf22e4eba9c45e04d9c7c1505b4ddf78b31794deccc6b4bbe7ec2f2d8c55, glibc ceiling GLIBC_2.34 (the VPS runs 2.36), 0 errors in 7m23s. SMOKE TESTED against an isolated scratch DB, never the live one: /health 200, /ready 200, / 200, 29 providers, 0 errors - and the SERVED assets walked (not the source, per 9.53): /_app/immutable/chunks/UWvnIFti.js serves icon:"X",charLimit:4e3 and no served asset contains charLimit:280. Deployed: uploaded as switchpost.new, sha256 verified on BOTH sides, dated backup switchpost.bak-20261105-0630, mv into place, systemctl --user restart → MainPID 981083, ActiveState=active SubState=running, ZERO error-level journal entries since the restart, and over TLS from the VPS /health 200, / 200, served chunk carries charLimit:4e3. Rollback: cp ~/.local/bin/switchpost.bak-20261105-0630 ~/.local/bin/switchpost && systemctl --user restart switchpost. |
the fix is live. BUILD RECIPE CORRECTED: the round-6 note says 'cargo-zigbuild resolves zig through PATH when its wrapper cache is cleared' - that was true then and is NOT true now. The wrapper REGENERATES and bakes an ABSOLUTE path (CARGO_ZIGBUILD_ZIG_COMMAND=/home/ishanp/.local/bin/zig, the pip shim reporting 0.16.0), so clearing the cache and prepending the shim to PATH does NOT work - the wrapper bypasses it. Setting CARGO_ZIGBUILD_ZIG_VERSION=0.14.1 changes the version but NOT the command. What works is setting BOTH: CARGO_ZIGBUILD_ZIG_VERSION=0.14.1 AND CARGO_ZIGBUILD_ZIG_COMMAND=$HOME/.cache/zb/shimdir/zig, with shimdir also on PATH. The shim strips -Wl,--no-keep-memory (zig's bundled LLD rejects it by name in 0.11.0, 0.13.0, 0.14.1 and 0.16.0 alike) and forwards to a real zig 0.14.1. Also note the minifier writes 4000 as 4e3, so a grep for charLimit:4000 in a built bundle finds NOTHING and reads as a build failure. CLOSED on evidence 2026-11-05 |
| CHAR-LIMIT-DRIFT | done | the frontend kept a static charLimit per provider as a fallback for the moment before GET /api/providers answers, and it had DRIFTED from Provider::max_content_length() in 13 places → [2026-11-05] found while assessing C2's remaining seam debt — verdict: REAL DEFECT, now fixed. The worst was X: the composer claimed 280 while the server enforced 4000, so a 280..4000 character post was blocked and the Post button disabled — the exact defect §9.20 records having fixed once, BACK IN PLACE, because the fallback table was never pinned to the authority. The others: discord 2000/1980, google 65536/5000, medium 65536/15000, hashnode 65536/100000, devto 65536/800000, skool 65536/10000, whatsapp 65536/4096, google-my-business 1500/3000, and gmail/calendar/drive/github 65536/0 (four providers with NO publish surface, which §9.20 says the composer must not offer at all). The exposure is real, not theoretical: the API client RETURNS { error } on a failed request instead of throwing, so the composer's catch never fires on an HTTP error, provRes.data is undefined, and the static table stays in place SILENTLY — any 500, any network failure, any offline open leaves the composer enforcing numbers the server does not. FIXED: all 13 entries now match the Rust provider exactly. GATE ADDED: tests/char_limit_parity_test.rs (4/4 — one more than the commit message records, because this round added two checks and re-ran the count). The server publishes THREE server-owned rules through /api/providers: char_limit, dm_supported and tier. char_limit was the only one gated, and it is the reason the gate has four checks instead of one: (1) the static charLimit table against Provider::max_content_length(); (2) max_content_length() == 0 means no publish surface and the static table must say 0 too; (3) the frontend's SPECS membership against the server's TIER_1 (the frontend's isTier1 is 'is this provider in SPECS'); (4) the frontend's TIER1 array against the server's TIER_1 including ORDER, because TIER1 claims to be 'in the v25 §1 order' and order decides which preview a platform gets. dm_supported was MEASURED and found to have NO second copy — the frontend reads it from the response (/dms/+page.svelte:77), which is the correct pattern. MUTATION-TESTED IN SEVEN DIRECTIONS — x 4000→280, github 0→65536, devto 800000→65536, discord 1980→2000, a RUST-SIDE change (x 4000→280 in src/social/x.rs), removing the bluesky SPECS entry, and REORDERING TIER1 with the same set — each fails with its own message, and each was restored byte-identical. The gate itself had TWO real holes found by mutation, both worth recording: (1) 0 // GitHub does not support publishing does not parse as an integer, so github, devto and wordpress were dropped from the Rust map and NEVER COMPARED — a mutation on github stayed GREEN. The extraction now takes the leading run of digits. (2) the gate's own vacuity check caught a THIRD bug in my first parser: it read the ProviderMeta interface's charLimit: number; as a table row and found zero entries. And Rust's rsplit yields from the RIGHT, so the value after the marker is .nth(0), not .nth(1) — three parser bugs before the gate measured anything, each caught by the vacuity check rather than by a green run. |
the static fallback table matches the authority for every provider, and cannot drift again without failing the gate. CLOSED on evidence 2026-11-05 |
| C3 | open | skill eval loop: 47 of 50 evals not run paired (skills/switchpost-agent/evals/c3-paired-run.json) → [2026-11-05] re-measured — verdict: TWO STALE NUMBERS and a MISPLACED DEFER, corrected. (1) The row said '40 of 43 evals'; evals.json now holds 50 evals, of which the 2026-10-19 paired run covered only ids 41/42/43, so 47 are unpaired, not 40 of 43. (2) The row's trailing note — 'DEFERRED by user 2026-10-18: finalized for now; resume when credentials are supplied' — belongs to V1a/the Reddit credentials, which have SINCE BEEN SUPPLIED and whose row has already closed with the defer recorded as lapsed. It does not apply here, and it misdescribes the blocker. The paired run needs NO API credentials: its recorded method is 'Each eval answered by two planning-only subagents ... No commands were executed.' It needs a subagent runtime and token budget for 47 evals x 2 arms = 94 runs. (3) The CONFIGURATION half — the part that can be verified without spending tokens — is GREEN and is now re-measured against THIS tree rather than the 2026-10-18 snapshot: all 37 distinct CLI command prefixes in expected_commands resolve as switchpost <prefix> --help against the current debug binary (0 unparseable, was 90 expected commands on 2026-10-18); all 6 mcp-call tool names the evals use (fb_create_post, ig_create_container, ig_get_insights, ig_poll_container, ig_publish_container, x_home_timeline) resolve in the current 389-tool registry (was 7 names on 389 tools then); every files reference in all 50 evals exists; 15 assertions total. So the evals are not stale against the product, which is what the configuration check is for. |
the paired run is a TOKEN-COST decision and the user declined it on 2026-10-18 in favour of the configuration check. Re-open only if the user changes that decision; the configuration check is re-runnable on every release. OPEN, owner: user |
| LIVE-X-FLAKE | done | live_x_test::test_x_get_me failed once in the full run with a transport error (client error (SendRequest) to x.com) and passed 3 of 3 alone → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md Cycle 6 → [2026-11-05] re-measured — verdict: RESOLVED, and by a THIRD option the row did not name. The row asked 'retry transport errors in the live helper, or keep it strict and accept a rare red run? Not decided' — but AGENTS.md 9.43 had already answered it with neither: an environment failure now SKIPS. Measured: cargo test --test live_x_test is 11 passed / 0 failed, and test_x_get_me still hits the SAME transport error (client error (SendRequest) on the UserByScreenName GraphQL endpoint) — but skip_on_environment_failure turns it into a skip with the reason printed, so the suite stays green for the right reason. The gate is NOT a blanket skip, which is what makes it safe: tests/live_failure_classification_test.rs pins it in BOTH directions and passes 3/3 (the_environments_failures_skip, the_codes_failures_fail, the_helper_agrees_with_this_test), so a real defect still fails. The classifier matches transport, timeout, connection, dns, reset-by-peer, 429, 401, 403 and the provider's own error envelopes. Note the row's own advice is still the right default for a failure that is NOT the environment's: that one must FAIL, not skip. |
network, not product behaviour. Options: retry transport errors in the live helper, or keep it strict and accept a rare red run — RESOLVED by the 9.43 classifier; neither option needed. CLOSED on evidence 2026-11-05 |
| LIVE-WRITES | done | two live suites MUTATE the operator's real account with no opt-in: live_x_test (like_tweet, unlike_tweet, retweet, unretweet) and x_live_test (delete_tweet, like, unlike, retweet, unretweet, follow, unfollow) — while live_reddit_test has had a REDDIT_LIVE_WRITE guard since it was written → [2026-11-05] found by auditing every live suite for MUTATING provider calls — verdict: FIXED. Both X suites now require X_LIVE_WRITE=1 for their mutating operations and print why they skipped, following the Reddit suite's established shape so the rule is learnable from one place. Verified BOTH directions, because a blanket skip is not a guard: without the opt-in, live_x_test is 11 passed and x_live_test is 1 passed with the write groups skipped, and the READS still run (user_lookup, search_tweets, home_timeline, user_tweets, tweet_detail, bookmarks, list_timeline, get_me all execute and report). Note the shape of the risk: the X writes are self-reversing against a public fixture tweet, so the state is restored, but the reverse step is not ASSERTED — if unlike errors, the like persists on a real account with a real audience; and delete_tweet is IRREVERSIBLE. live_reddit_test is the model: it guards its write test, targets sr=test (Reddit's own sandbox), and deletes the fixture afterwards. |
the operator must now opt in with X_LIVE_WRITE=1 to run the X write operations. CLOSED on evidence 2026-11-05 |
| LIVE-SUITES | done | five live suites are NOT in the register and skip for undocumented reasons: live_threads_ias_test, live_linkedin_youtube_test, live_github_google_test, live_youtube_test, plus x_live_test (which PASSES non-skipped) → [2026-11-05] measured while re-checking the V1 rows, then RE-MEASURED after the round-9 work — verdict: the row's own proposed fix had already LANDED in round 8 (the live_linkedin_youtube_test message it quotes, 'visit the onboarding page first', is no longer in the tree), so the row was stale on both halves. Re-measuring the other four found the SAME defect class in three of them, which the row never recorded: they hard-coded the SAME fixture account, so they skipped for the same wrong reason and reported a MISSING CHANNEL ('no youtube integration in DB') when the real cause was a MISSING ACCOUNT. live_github_google_test was worse: its SELECT id FROM users had a BARE id on a uuid column, which the sqlx macro infers as TEXT from the column's DECLARED type and which fails at RUNTIME against the BLOB the app stores (AGENTS.md 5.1.1 / 9.44) — measured directly: 'mismatched types; Rust type alloc::string::String (as SQL type TEXT) is not compatible with SQL type BLOB'. The .ok()?? chain swallowed that error and reported 'Google token not found', naming a missing CREDENTIAL when the real cause was a decode failure. FIXED: all four suites now resolve the account from LIVE_TEST_EMAIL, the bare query was replaced with the shared db::queries::get_user_by_email (which already declares id as "id!: Uuid"), and each suite's skip message now names the ACTUAL cause — account absent vs channel not connected vs token unreadable. Verified BOTH ways on each: with the default fixture account and with LIVE_TEST_EMAIL set to the operator's real account, each suite names the matching cause. GATE ADDED: tests/live_account_selection_test.rs (3/3), which pins that no live suite bakes an account in, that every suite that resolves an account READS LIVE_TEST_EMAIL (not merely mentions it), and that the suite list is PINNED BY NAME. MUTATION-TESTED IN FOUR DIRECTIONS — bake an account into a query, stop reading the env var, rename a suite out of the gate's reach, and add an unpinned suite each fail the gate with their own message, and each was restored byte-identical. Two of the four passed the gate on the FIRST run and were real holes: a string presence check is satisfied by prose, and a count is satisfied while a suite is renamed out of reach. |
all four suites are now registered, configurable, and honest about why they skip. CLOSED on evidence 2026-11-05 |
| AUD-17 | done | isolated test binaries migrated and wrote the operator data/switchpost.db → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md |
load_dotenv_for_tests isolates to target/test-data/; live_* tests keep the operator DB (decision 1) |
| BR-1 | done | seeded browser checks not all run: A5 (tooltip on keyboard focus) and B3 (calendar and kanban drag) → [2026-10-18] docs/planning/EXECUTION_2026-10-19.md — verdict: A5 closed by removing dead Tooltip.svelte (no call sites). B3 run: calendar week-view drag persists (scheduled_at 2026-10-20 11:07:13 -> 2026-10-22 03:30:00 UTC), kanban drag persists (tests/kanban_stage_test.rs). See Cycle 3. | A5: Tooltip has no call sites, so nothing in the app to check. B3: needs a drag run in the browser against the seeded DB. A2, B1, B2, B4, B5 are done (see the Cycle 3 doc) |
| P1-BILLING | done | postiz billing ported and removed in a clean cutover: the /api/billing/webhook route, the whole billing module, stripe_secret_key/stripe_webhook_secret in Config, the STRIPE_* CLI env template block, and the AGENTS.md env/CSRF rows → [2026-10-19] docs/planning/PHASES_P0-P9.md P1 |
route enumeration over src/api/mod.rs shows no /api/billing*; git status reports the billing module deleted in the working tree; src/config.rs, src/cli/run.rs and src/social/mod.rs carry no stripe identifier; AGENTS.md env table and CSRF exemption row updated in the same edit. Tables in migrations/0001_init.sql left in place (AGENTS rule 3: nothing is deleted) |
| P5-RESEARCH | done | no read-only research surface: postiz has none to port, so /api/research and /research were built from stored data only → [2026-10-19] docs/planning/PHASES_P0-P9.md P5 |
src/api/research.rs + .route("/api/research", get(research::get)) in src/api/mod.rs; frontend/src/routes/research/+page.svelte renders five sections, each with its own EmptyState naming the missing source (Settings → Channels to connect, Feed to import); cargo test --test research_aggregate_test 7/7 green, covering the window cutoff, zero/hidden competitor exclusion, the two-competitor-post gap rule, per-post timing averages and the empty-DB case. src/db/queries.rs gained top_own_posts_by_engagement, top_external_posts_by_engagement, engagement_histogram_by_slot |
| P6-ACTIVITY | done | three append-only tables (events_log, automation_logs, publish_attempts) had no merged read surface; two of the three carry no user_id, so ownership is only reachable through FK joins → [2026-10-19] docs/planning/PHASES_P0-P9.md P6 |
src/api/activity.rs + .route("/api/activity", get(activity::list)); merges all three newest-first with keyset paging (before), and kind/range/provider filters; pub mod activity so tests/activity_feed_test.rs can call the handler directly. cargo test --test activity_feed_test 4/4 green: the three-source merge order, ok:false on failed rows, another user's rows excluded (the FK-join ownership filter), and every write verb 405 with a session / 401 without. /activity page subscribes to post_published/post_failed/post_created/post_scheduled/post_deleted and unsubscribes in onDestroy |
| P7-NAV | done | /activity and /research existed as routes but were unreachable from the sidebar; no research glyph existed in Icon.svelte → [2026-10-19] docs/planning/PHASES_P0-P9.md P7 |
both entries under the existing Insights group in frontend/src/routes/+layout.svelte (Activity + Research, alongside Search/Analytics); a research path (open flask) added to the Icon.svelte map following the existing one-line-per-glyph convention |
| UI-C0 | done | week/day calendar chip is 21px tall, under the WCAG 2.2 2.5.8 floor of 24x24. The month grid already applies .event-chip.compact { min-height: 24px }; the non-compact chip was never given the same rule → [2026-10-30] docs/planning/PLAN_UI_PARITY_LAUNCHES_CALENDAR_2026-10-30.md F1 + docs/audit/2026-10-30-launches-parity/findings.json → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Measured on the RUNNING app, not read off the source: .event-chip boxes render 24px and computed min-height is 24px. CalendarEvent.svelte:225 has .event-chip.compact { min-height: 24px } and :248 the non-compact .event-chip { min-height: 24px } with the padding trap documented at :230-246. |
measured by the rendered probe over the running app: week [21], day [21], month [24]. Touch frontend/src/lib/calendar/CalendarEvent.svelte. Do NOT touch the tag chips, the time, the metrics, the hover toolbar, the inkOnFill ink or the 3px left bar - the first draft of the audit wrongly proposed adding all four and they are already there. Acceptance: every chip >= 24px in all four views at 3 widths, probe 0 FAIL, no cell growth as a side effect |
| UI-C1 | done | a calendar cell renders every chip with no cap: with 8 posts seeded on today, 23 chips rendered and 6 stacked inside one 30-minute slot, with no +N more affordance (measured anyMoreAffordance: []) → [2026-10-30] same plan F2 → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Month view measured rendering '+2 more' and '+4 more' disclosures (2 cells) against a cap; frontend/src/lib/calendar/CellMoreButton.svelte implements the +N row and the row that puts the cap back, DayView.svelte:39 holds which hour rows have revealed it. |
postiz does slice(0,3) + Show more (N). Port that to WeekView/DayView/MonthView with an in-place expand keyed by date. Secondary: at a 129px chip the tag name chips truncate to buil/la... - cap week/day visible tags at 1 (month already uses dots) so the title keeps its width |
| UI-C2 | done | 218px of calendar chrome above the grid at 1440 (measured shellTop: 1440=218, 768=270, 390=350): three stacked rows - the title+h1 row, the header nav row, the filter row → [2026-10-30] same plan F4 → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Measured: h1 is the date range ('Week of November 3' at week view, 'November 2026' at month view) - the duplicate 'Content Calendar' heading is gone. The 218px figure survives only as the pre-JS-paint CSS fallback for --cal-shell-top (calendar/+page.svelte:813), documented as deliberately stale at :791-698. |
postiz puts it all in one flex-wrap gap-[8px] row at h-[42px]. Collapse to one row, make the view switcher a segmented control, and NAME the shell constant - the page's --cal-shell-top fallback says 218px while its own comment says ~168px, so the two already disagree |
| UI-M1 | done | the composer's preview column defaults to HIDDEN below lg (display:none until the footer Preview button is pressed), so a tablet or phone user sees only the editor; and the footer has TWO filled primaries (Post Now = bg-success, Schedule = bg-accent-fill) so neither is the primary → [2026-10-30] same plan F5 + findings.json correction 1 → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Both halves measured at 1440 and 390 on the running app. The preview is a footer disclosure (button label 'Preview', aria-expanded=false, with a 'Close preview' control inside the pane) rather than a hidden column; the pane is {showPreviewMobile ? 'block' : 'hidden lg:block'} (ComposerModal.svelte:1782) so a phone gets a full-width stack AFTER the editor, not a squeezed 400px column. Second half: 'Post Now' is transparent/bordered (border-line) and 'Schedule' is the ONE bg-accent-fill primary (rgb(97,100,241)). |
postiz's answer to "no room" is SWAP (mobileTab edit/preview, mobile:!w-full), not hide. Also: the 0.7-alpha bg-overlay-strong scrim is what removes page context, NOT the panel geometry - the panel is already inset 20/45px and matches postiz's max-w-[1400px]. The first draft's "full-bleed, no page context" claim was measured wrong |
| UI-R1 | done | the global nav rail is 224px wide (56px collapsed) carrying 16 items in 7 groups plus a timezone <select> in its footer; postiz's rail is 80px with icon-over-label and no section headings → [2026-10-30] same plan → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Measured: the rail is 80px (w-20) with 19 nav items. sidebarExpanded defaults to false (+layout.svelte:43) and the class is {sidebarExpanded ? 'w-56' : 'w-20'} (:303); the 224px claim is pre-Phase-5a and stale. → [2026-11-03 later] CORRECTED, the item count was wrong: navSections (+layout.svelte:48-100) holds 16 items in 6 groups — Dashboard 1, Publish 5, Engage 4, Insights 4, Channels 1, Settings 1 — measured two ways (a programmatic count of href: entries and reading the array directly). The 19 was never right, and the item text's '16 items in 7 groups' is the pre-fix state. What the verdict's conclusion rests on is unchanged and exact: 80px (w-20), sidebarExpanded false by default at :43, the ternary class at :303. |
224 -> 80 returns 144px on every route. Move the timezone picker to /settings (a setting, not a nav) and keep the zone visible in the calendar header. Do not change any slug, label text or item order |
| UI-R2 | done | there is no channel rail on the calendar: channels are one native <select> filter, a separate /channels route and a composer card, so a solo founder leaves the calendar to see which channel needs a reconnect → [2026-10-30] same plan F6 → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: A channel rail is on the calendar: ChannelRail imported at frontend/src/routes/calendar/+page.svelte:27 and rendered at :628, with the Phase 5b comment at :607-618 explaining it sits BESIDE the grid (not above it) so the 80px rail plus a 260px rail would not fit. |
The load-bearing constraint, measured: 80px rail + a 260px always-open channel rail leaves 1100px of calendar at 1440 - LESS than today's 1104px. So the channel rail is collapsed to 64px by default (80+64=144, calendar gets 1296px) and is per-route: /calendar, /posts, /feed, /comments, /dms. No grouping in v1 - switchpost has no customer/org concept (AGENTS.md §0.5.1 forbids it). The All channels <select> stays as the filter; the rail is the management surface |
| UI-M2 | done | one SchedulePicker for the whole post, so a cross-post cannot carry X at 09:00 and LinkedIn at 17:00 - postiz has per-channel channelDates → [2026-10-30] same plan → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: Per-channel scheduling exists: channelSchedule is a reactive Map keyed by integration id (ComposerModal.svelte:144, alongside providerOverride which already carried each channel's own body), and :145-148 records the design - a channel absent from the map uses the shared scheduledAt, so one post to two channels with no per-channel edits still publishes both at the shared time. |
SelectCurrent.svelte already exists (94 lines) but is not surfaced as the editor's channel header. Phase UI-M1 must land first (it is the prerequisite). Deliberately NOT porting postiz's per-channel full content: switchpost's model is one shared body + per-channel targets (AGENTS.md §9.13/§9.27) and changing it would touch every provider's settings read |
| UI-V1 | done | the probe renders each route in its DEFAULT state only, so the composer and the calendar's other three views are surfaces nobody measures → [2026-10-30] same plan + AGENTS.md §9.35/§9.50 → [2026-11-03] docs/planning/EXECUTION_2026-11-03.md — verdict: The probe drives a named state: probe.mjs:784-788 has --state, with STATE_CONTROLS applied per route and the screenshot name suffixed by the states (:1121-1122), which is the AGENTS 9.35/9.50 fix. |
the 2026-10-30 re-measurement is the proof of value: six claims in the first draft of the audit were false because the app had not been driven into the state being described. Add the composer's three states and the calendar's four views to the probe route list; docs/audit/2026-10-30-launches-parity/probe-audit-render.mjs is a working example of a state-driving probe |
| PUB-ATT | done | the publish audit trail records the wrong attempt number → [2026-11-05] FIXED in 6607402: the failure write now records the attempt that failed instead of MAX_RETRIES; verified live on the VPS (binary sha dd4cefd15e0cecf331f6e2f159d38eb2763e8a9abb12ddc83edd4efa40a3390b) and mutation-tested in both directions: publish_post's post-loop failure write hard-coded MAX_RETRIES because the loop variable attempt is out of scope, so a post that fails ONCE on a non-retryable error (Api, Auth, scope-loss, empty platform_post_id) is recorded in publish_attempts as "attempt 3" and the Activity feed reports three calls for one |
found live, not in review: a probe publish to X made exactly one call (the journal holds ONE Publish error for post 9c1f3796-... line and ZERO rate-limited/backing-off lines) yet the activity row read "Publish attempt 3 failed". Confirmed at source: Err(ProviderError::Api(_)) has no retry arm - the match arms are TokenExpired, RateLimited, Network(is_connect), Network, then a catch-all that breaks at attempt 1 (Api appears at scheduler/mod.rs:51 only inside is_platform_outage, the circuit-breaker classifier, which is not a retry path). FIXED in 6607402: capture final_attempt = attempt at the top of each iteration and write that, so a break records the attempt that failed and natural exhaustion records MAX_RETRIES. The success arm already recorded the real attempt; only the failure path substituted the constant. Mutation-tested: reverting the write fails left: 3, right: 1, and deleting the capture line fails identically, so the test sees its own failure and each line is load-bearing. src/services/posts.rs carried a test asserting the old constant with a comment contradicting itself three lines earlier ("one failed attempt, so this is not invisible" above assert_eq!(.., MAX_RETRIES)); it now asserts 1. Verification: cargo check --lib --bin switchpost 0 errors, cargo test --lib 565/565, frontend pnpm build succeeds (untouched). LIVE as of 2026-11-05 03:52 IST: shipped to the VPS via the vps-app-deploy skill, new binary sha dd4cefd15e0cecf331f6e2f159d38eb2763e8a9abb12ddc83edd4efa40a3390b, running as MainPID 801588 (was 1323611), confirmed from /proc/801588/exe rather than a guessed path. The fix is proven present IN THE RUNNING BINARY by a differential probe: the panic-location refs src/scheduler/mod.rs:2251/:2258 (old) are absent and :2262/:2269 (new) are present, a shift of exactly +11, matching the diff's +12 added / -1 removed content lines; the old refs count 0 in the live binary. Startup against the live DB is clean (writer lock acquired, migrations applied, 29 providers registered, scheduler started) and there are no ERROR-level journal entries since the restart. Rollback: cp ~/.local/bin/switchpost.bak-20261105-0352 ~/.local/bin/switchpost && systemctl --user restart switchpost. No migration needed - publish_attempts is append-only history and the corrected rows describe future failures only |
| DOC-DRIFT-N | done | documented counts drift while the code asserts them: tier.rs asserts TIER_1.len()==12/TIER_2.len()==17, so the build never caught prose that had drifted → [2026-11-04] live measurement of Provider registry initialized with: (29 registered, 12+17) + a570431 (8 files) + 8a4384f (the gate) — verdict: FOUR counts were wrong across 8 live files: 26 platforms / 14 Tier-2 (truth: 29 / 17), 9 realtime routes (truth: 16 realtime.on( in routes; +layout.svelte owns the one realtime.connect()), ~94,200 Rust + ~29,200 frontend LOC (truth: ~101,700 / ~32,400), and the repo-layout line calling gmail/calendar/drive capability modules reached through google (the code does the opposite — they are their own connectable providers, because Google refuses auth/youtube* and auth/drive* in one consent). The drift was DATED: correct in 574de89, false from ee2ab25, ~30 days undetected, because tests/surface_docs_audit.rs gates the TOOL count and the CLI COMMAND count (both from AUD-10) but never the PROVIDER count — the one that moved. Recorded as AGENTS.md 9.62 and REMEDIATED by a new test, d1_documented_provider_count_matches_the_registry, which builds the REAL registry (ProviderRegistry::new(&config, None, None), list().len() == TIER_1 + TIER_2; Tier-3/farcaster excluded as opt-in) and asserts the true count in AGENTS.md, README.md and the agent skill, and the absence of the stale figure. MUTATION-TESTED in all three directions (each reintroduction of 26 fails with its own message; each restored then verified byte-identical to HEAD) → suite 5/5 |
the generalisable rule: an ASSERTED count is a reason to distrust the doc, not trust it. The assertion guarantees the constant moved; the prose travelled only if someone remembered. Any other doc stating a number should get the same treatment — measure at source, gate the drift |
| V7-OBS | done | the deploy's purpose is now observed on the running system, not just asserted → [2026-11-04] a570431 + the live probe — verdict: created a post against the X channel via the public API, scheduled 2 minutes out; the scheduler claimed it, called X ONCE, and X refused with its own non-retryable DAILY LIMIT (344). publish_attempts records attempt_number = 1; the historic Nov-3 row still reads 3 and is untouched (append-only, so the fix corrects future rows and does not rewrite history). The founder's Activity feed now reads Publish attempt 1 failed: … (344) — the exact string that used to read attempt 3. Corroborating counts, all independent of the row: 1 audit row, 1 Publish error for post 46146eef journal line, 0 retry/backoff lines |
the one claim validation could not previously make. Two register details corrected in the process: deletion is SOFT (deleted_at + a deleted_at IS NULL filter in every list query), so a raw sqlite3 read shows 3 rows while the API correctly reports 0 — the WAL-reader trap in a second form with a different cause; and raw uuid BLOB selection can make terminal output vanish (byte 0x1f, the ASCII Unit Separator), which also independently confirms §9.33/§9.44's BLOB(16) claim |
| CH-LOGIN | done | two reported channel logins are dead ends: Telegram (user) answers "set TELEGRAM_API_ID and TELEGRAM_API_HASH in ~/.switchpost/.env and restart" (a file on a server, and a restart — neither doable from a browser), and Threads bounces to Meta's own privacy/consent page with error_code=1349003 and never returns, so no handler of ours ever runs → [2026-11-06] FIXED on measured evidence. TELEGRAM: the VPS .env (a symlink to /home/nerd/switchpost/.env) carried NO TELEGRAM_* lines at all, so the client manager was None; the credentials are now collectable IN THE APP — GET /api/integrations/connect/telegram-user/status gates the phone step, POST .../credentials validates, persists to the config file FIRST and then hot-swaps the live client (no restart), and AppState::provider_configured() reads the LIVE manager for telegram-user so the UI and the API cannot disagree. Measured live: the write appends without disturbing the existing keys, configured flips true, and the client reaches Telegram's API (rpc 420 FLOOD_WAIT on the test number — only an authorised client gets that far). THREADS: root cause is NOT the scope set — the reported URL already carried the narrowed five. The credential pair is VALID (client_credentials returns an app token; a wrong secret is rejected) and graph.threads.net/debug_token answers "The app associated with this request is in dev mode", while the SAME probe on the sibling FACEBOOK app answers "Invalid OAuth access token" — so the message is specific to this app. Meta's get-started page states the consequence: only accounts with a ROLE on the app can grant the permissions until the app is published and App-Reviewed. social::threads_app probes that mode and names both Meta-documented causes (dev-mode app with no role on the account; a Threads account tied to an Instagram BUSINESS account), the exact fix (App roles -> Add People -> Threads Tester, then accept under Settings -> Account -> Website permissions) and the manual escape hatch (www.threads.com/privacy/consent/?flow=gdp). Surfaced through a new SocialProvider::connect_preflight() hook by the REST connect route (as a warning beside the auth URL, and folded into the HTTPS-gate message so an http:// instance learns BOTH facts in one round trip), the MCP integrations_connect tool and all three CLI connect paths. TRAP RECORDED: the preflight was first an INHERENT method with the same name as the trait's, so Arc<dyn SocialProvider> resolved to the trait default None — dead code, green build, no warning on any connect; the_preflight_is_reachable_through_the_trait_object now pins it. Verified live: the production probe returns DevMode against the real credentials, and a running instance serves both messages. |
S; the founder's remaining action is the Meta-side tester role (Meta offers no API for it — /{app-id}/accounts POST and /{app-id}/roles are both refused for a Threads app). DEPLOYED to the VPS the same day: built with cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.36 (through the --no-keep-memory zig shim), glibc ceiling measured at 2.34 <= 2.36, backup + SQLite snapshot taken, sha256 verified, pre-flighted and smoke-tested on an isolated copy on a free port, then moved into place and the USER unit restarted. Verified live through the public hostname with the operator's session: telegram-user/status answers {"configured":false}, and connect/threads returns the authorize URL WITH the warning. The served-page check was the decisive one — the new instance serves /_app/immutable/nodes/11.DwN6oam8.js containing the new form and the old binary does not. Rollback: cp -p ~/.local/bin/switchpost.bak-20261106-2029 ~/.local/bin/switchpost && systemctl --user restart switchpost |