Skip to content

docs(platform): align platform docs with 0.5 backend reality - #3154

Merged
larryro merged 29 commits into
mainfrom
docs/align-backend-reality
Sep 3, 2026
Merged

larryro merged 29 commits into
mainfrom
docs/align-backend-reality

Conversation

@larryro

@larryro larryro commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Audits the first half of the platform docs (34 en pages + de/fr siblings) against the 0.5 backend/frontend in this tree. Every factual claim was checked against code; wrong claims were corrected with the smallest truthful edit, applied natively in all three locales. Pages describing behavior the code does not implement were left intact and are listed below as product gaps. Docs suite: 194/194 green (bun run --filter @tale/docs test), search manifest regenerated.

Corrections by area

Admin — API keys: keys are personal Better Auth credentials (role = creator's org role at request time, no role picker), the page moved to Settings > API > REST, the table shows name/masked key/added/last-used with no filters, revoke deletes the row, and the documented IP allowlist never existed in any version (removed).

Admin — branding / changelog / connectors: logo also accepts WebP/ICO; the changelog toast fires per version bump, auto-dismisses, and pairs with a persistent avatar dot (page cache is 1h per GitHub page, cold cache needs GitHub); connector catalog labels now match shipped strings (Configured / Back / Edit credential) and the leaked </content></invoke> artifacts at EOF are removed.

Governance: audit logs have one Category filter across four tabs, +Target/Error columns, server-built exports (10k-row cap, presigned link), retention 730d default with a hard one-year floor (was "90 days, 30–365"); content & models scopes are team/role/org (no user scope), denied models are refused at request time rather than hidden, page label is "Models"; DSAR cascade documented as main runs it (threads/documents/uploads/prefs/notifications/feedback/memories/usage + audit scrub — not wf-runs/RAG/prompts); feedback analytics' second signal is arena verdicts (no 1–5 star ratings exist) under Settings > Metrics; guardrails editors live on one page, PII modes are mask/block/tokenize, events keep 90d; legal-hold targets are user-custodian or org only; budgets block sends in the composer (server-side refusal exists only for voice), the idle-timeout page is "Security"; run-code mode is global across Python/Node; trash categories match shipped labels; usage analytics moved to Settings > Metrics with real sections — the documented budget chart overlays never existed (removed).

Admin — people & identity: last-admin demotion is refused (not warned), creator role immutable, ownership transfer demotes you to Admin; teams scope documents/projects/skills/conversations (not agents/prompts/connectors); only passkey.revoked_by_admin is audited; settings groups are Personal/Organization/Advanced; SSO provisioning toggles use shipped labels.

Agents & approvals: sandbox egress documented as it ships (open at hostname layer, IMDS+RFC1918 always blocked) instead of deny-by-default; harness roster/capabilities verified against configs/platform/system/harnesses; approval-config pages no longer walk UI that does not exist (per-connector operations badges, "Discovered Tools" under Settings > API > MCP — that page is Tale's own MCP endpoint).

Flagged, not papered over (product gaps on main)

  • No org-agents admin or editor UI: admin/agents.md, agents/create.md, agents/tools.md, agents/knowledge.md, agents/versions.md describe a Settings > Agents directory and an agent editor with tabs/History; 0.5 has only the chat picker and the per-project Agents tab (backend persona routes exist and were verified).
  • spawn_agent and generate_image are absent from the 0.5 tree — agents/delegation.md and agents/image-generation.md document tools that do not exist (only the agent_jobs governance schema references spawn_agent).
  • Guardrail and run-code enforcement is unwired: policies, editors, and secrets ship, but the chat pipeline runs no filter and emits no chat_filter_events ("PRODUCER pending" per MIGRATION.md), and nothing consumes the run-code package policy.
  • Slack fan-out of security notifications is an unported 0.4 lane (domains/notifications/service.ts ledger note).
  • Stale screenshots to re-capture via the manifest: governance-content-models.webp (shows a system-prompt panel that lives on Guardrails now), settings-api-keys.webp, governance-security-monitoring.webp (page renamed).
  • Same </content></invoke> EOF corruption still present in platform/connectors/overview.md and develop/connectors.md (all locales) — outside this page set.

Backend smell found while verifying: auth/auth.ts apiKey plugin rateLimit.timeWindow: 60 is milliseconds in Better Auth (likely meant 60_000), so the per-key limiter is inert.

API keys are personal Better Auth credentials under Settings > API > REST (no role picker, no IP allowlist, revoke deletes the row); branding accepts WebP/ICO; changelog toast fires per version bump with a persistent avatar dot and an hourly GitHub page cache; connector catalog labels match the shipped strings and the leaked tool-call tags at EOF are removed.
Audit logs: category-only filter with four tabs, real columns, server-built exports (10k cap), 730-day default retention with a one-year floor. Content & models: team/role/org scopes, refusal instead of picker-hiding, page renamed Models. DSAR: main's cascade passes and status semantics. Feedback: arena verdicts instead of star ratings, Settings > Metrics > Feedback. Guardrails: single-page editors, PII tokenize mode, 90-day events. Legal hold: user/org targets only. Policies & limits: composer-side budget blocking, Security page name, REST-only key metering. Run-code: global mode across both languages. Trash: shipped category labels. Usage: Settings > Metrics > Usage with real sections; budget overlays removed (never implemented).
Members: last-admin demotion refused, creator role immutable, real menu groups (Advanced), matrix rows match access.ts. Teams: team-scoped resources are documents/projects/skills/conversations; create dialog has member checklist, no description; row actions instead of sub-views. 2FA: only passkey.revoked_by_admin is audited; Security page name. Overview cards follow. Providers: catalog group label Configured. Enterprise SSO: shipped provisioning toggle labels.
Sandbox egress is open at the hostname layer with IMDS and RFC1918 always blocked (services/sandbox-egress), not deny-by-default with a registry allowlist; the harness resolution view is a section of Settings > AI providers, not a tab.
The connectors settings page has no per-connector operations list with approval badges, and Settings > API > MCP is Tale's own MCP endpoint, not a server-registration page (the old mcp-servers route redirects to Connectors). The approval-policy mechanics (effect-gated writes, approval-policy.yml rules) are real and stay.
The shipped catalog is 13 vendor connectors, not 14: listConnectors skips
the four platform-auth connectors, leaving exactly the 13 in the table.
IMAP / SMTP Mailbox exposes 3 actions (list_messages, get_message, send),
not 2. Also strip the committed `</content>`/`</invoke>` EOF garbage that
rode into all three locales.
The engine registers four core node types (transform, llm, agent,
subautomation), not three. Rename the nested-workflow node from the old
`subworkflow` to its real type `subautomation`, and document the omitted
`agent` node — its equipment fields and its top-level, non-iterating
constraint — matching slots.ts and the editor's field labels.
Arena compares two models under the same chat assistant — there is no
per-chat agent pick and no temperature knob, so drop that framing. Voice
output is not an unsaved per-turn switch: chat-surface resolves a cascade
(org policy veto -> thread override -> saved user default), so describe
that instead.
Customers and vendors are one Contacts entity now (the vendors/customers
routes redirect to contacts). Knowledge opens on five tabs, not six, and
ships three built-in structured entities (Contacts, Products, Websites),
not four. Sweep the merged reference out of the knowledge pages and the
platform, member and editor overviews, and regenerate the frontmatter
manifest for the reworded structured-data description.
Every project carries five core tabs (Tasks, General, Chats, Knowledge,
Agents); Automations, Environment and app tabs are conditional. The
"eight tabs" caption predates the 0.5 tab consolidation (Settings merged
into Overview) — say five.
Match the page to the shipped /api/v1 handlers:
- list envelope: /automations returns {automations:[...]} with
  latestVersion, not a {page,isDone,continueCursor} page; note that
  contacts/products emit continueCursor but do not honor ?cursor= yet.
- uploads: the handoff is always a presigned PUT (S3), the uploadId
  expires after 30 minutes, and the bind refuses oversize/type with 400
  (no 413/415 on this path); drop the retired platform-storage POST lane.
- tasks: runWorkflowSlug starts the run inline and returns its executionId.
- content endpoint answers 302 to a presigned URL (no Convex blob stream).
- writes by a multi-org key require X-Organization-Slug; 415 removed.
0.5 stores blobs in S3 and state in Postgres. WebDAV: blobs are S3
objects, locks live in app.webdav_locks, PUT streams to a presigned S3
URL, the handler talks to Postgres directly (no ADMIN_KEY/Convex), and
dev serves /dav via the Vite proxy (no serve-webdav middleware). Status:
the platform is the Hono app over Postgres; the self-hosted /status probe
runs against the backend.
The rest:upload lane covers only the handoff mint and file bind; folder
creation is a plain write on the general lane, so drop it from the upload
bucket. `dev:fast` is a workspace-only script, so the root-level fast path
is `TALE_DEV_SKIP_DOCKER=1 bun run dev` (which the orchestrator honors).
The develop overview advertised OpenAI-compatible endpoints and outbound
signed webhooks; neither exists, so point at REST/webhooks/MCP and describe
the inbound token webhook. Strip the committed </content></invoke> EOF
garbage from connectors.md in all three locales.
GET /api/v1/agents returns a JSON object with an `agents` array (and a
`failures` array), not a bare JSON array.
The /automations smoke test returns {automations:[...]}, not a page
envelope, and list shapes vary by resource. Thread messages carry `parts`,
not `content`, so extract the reply text from the text parts.
@larryro
larryro marked this pull request as ready for review September 3, 2026 03:58
…ality

# Conflicts:
#	docs/de/develop/api-reference.md
#	docs/de/platform/admin/governance/data-subject-requests.md
#	docs/en/develop/api-reference.md
#	docs/en/platform/admin/governance/data-subject-requests.md
#	docs/fr/develop/api-reference.md
#	docs/fr/platform/admin/governance/data-subject-requests.md
@larryro
larryro merged commit 1ca7bab into main Sep 3, 2026
68 of 70 checks passed
@larryro
larryro deleted the docs/align-backend-reality branch September 3, 2026 04:19
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