Skip to content

feat(platform): start new project agents with the document skills ticked - #3781

Merged
yannickmonney merged 10 commits into
mainfrom
feat/preselect-document-skills
Sep 29, 2026
Merged

yannickmonney merged 10 commits into
mainfrom
feat/preselect-document-skills

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

New project agents now start with the docx, pptx, xlsx and pdf skills ticked, as long as the project can see them. People can untick them, and editing an existing agent keeps its saved equipment. The dialog uses the catalog's first successful response once per opening, even when that response is empty, so later refreshes never quietly add equipment. If the first response arrives late, tools and connectors picked in the meantime stay selected.

The Agents route resets its form state when the organization or project changes, so an open create or edit form cannot carry equipment into another project. The EN/DE/FR project-agents guide and skills guide describe the defaults. The first-agent tutorial now tells readers to untick any preselected document skills. The document-skill slugs live with the existing project helpers. A server-project test (lib/shared/config/document-skills-catalog.test.ts) checks that the builtin custom catalog ships a bundle under each slug. It sits in the test task, which hashes configs/platform/**, so turbo cannot replay a stale pass after a bundle is renamed.

Manual box PROJ-F35 covers what a person judges: the ticked defaults, an untick that persists, and an edit that keeps the saved equipment. The catalog lifecycle cases (a missing skill, refreshes, a delayed first response, reopening, navigation) are recorded in reference/automation.md as owned by the dialog and route component tests.

Checklist

  • bun run check passes: N/A locally, not run as a whole this round. Targeted typecheck, typed lint, tests and manual guards pass (see Test plan). The exact-head CI run is the full gate.
  • bun run lint:sast passes: Opengrep passed on the earlier head. This round adds only tests, docs and manual-suite text, and those went through the pre-commit Opengrep hook.
  • Translations: N/A. No message keys changed. The dialog reuses the existing equipment labels.
  • Docs updated in docs/{en,de,fr}/: platform/projects/project-agents.md, platform/agents/skills.md and tutorials/editor/first-agent-end-to-end.md.
  • README.md / README.de.md / README.fr.md: N/A. The READMEs do not describe agent equipment.

Test plan

  • Red/green on main: four dialog cases (the ticked defaults, an unticked default surviving a refresh, the delayed first catalog, an edited agent receiving a late catalog) and all four route navigation cases (create/edit × project/organization) fail with main's code and pass here. The two empty or non-document catalog refresh cases also pass on main, because main never seeds anything. They guard against re-seeding on a refresh, not against a main regression. An actual Chrome route navigation reproduced the old stale form.
  • Seed check: bun run --filter @tale/platform test -- lib/shared/config/document-skills-catalog.test.ts passes 4/4 in the server project. With a slug renamed temporarily it fails for that slug, and the rename was then reverted. tests/guards/turbo-inputs.guard.test.ts passes 16/16, and its OUTSIDE_READS entry for configs/platform/custom now names this reader.
  • bun run --filter @tale/platform test:ui -- app/features/projects/components/project-agent-dialog.test.tsx 'app/routes/dashboard/$id/projects/$projectId/agents.test.tsx' passes 15/15.
  • bun run --filter @tale/platform typecheck passes, typed oxlint on the touched files is clean, bun run lint:manual is OK (1260 boxes across five trees), check-guide.ts on suites/projects.md is OK, and bun run --filter @tale/docs test passes 171/171.
  • Earlier head: 146 focused project/equipment UI tests and 24 locale tests passed. 42 native Chromium flows passed in EN/DE/FR at desktop/light and phone/dark sizes, using the actual route, tab/dialog, query hooks and HTTP adapters. The localized guides rendered at desktop and phone widths without page errors or horizontal overflow. Main merged in without conflicts.

Not verified: browser authentication and HTTP responses were controlled in the Chromium runs. They inspect submitted payloads and UI readback, and do not prove live database persistence, two-session collaboration, or document generation by a vendor harness. The tutorial and skills-guide edits were not re-rendered in a browser this round (the docs tests pass). The existing project-agents-models screenshot shows saved rows and is unaffected, so no screenshot needs recapturing.

Producing a Word, PowerPoint, Excel or PDF file is the most common reason to
create a project agent, and an agent without the seeded document skills
cannot write one. Customers who moved from the chat lane expected document
creation to work and found agents that could not do it until someone knew to
equip docx or pptx.

A new agent now starts with docx, pptx, xlsx and pdf ticked — only those the
project can see, so a deleted or unshared one is skipped — and the person
creating it can untick any. The catalog may land after the dialog opens, so
the defaults are applied once per opening when it does. Editing an existing
agent never changes its equipment. A test pins that the four slugs are in the
seed catalog every organization receives.
The check that the builtin custom catalog ships a bundle for each
preselected document skill lived in a component test, which runs under
the test:ui task. That task does not hash configs/platform/**, so a PR
renaming a seeded bundle could replay a cached green run. The check now
lives in the server project, whose test task hashes the catalog, and
resolves the path from the test file instead of the working directory.
A new project agent now starts with the document skills ticked, but the
first-agent tutorial still told readers to leave the equipment field
empty, and the skills guide did not mention the defaults. The tutorial
step now says to untick them, and the guide states the default, in
English, German and French.
The box packed the default ticks together with six catalog lifecycle
cases, so a partial failure had no stable ID to land on, and steps such
as delaying the first catalog response did not say how. The component
and route tests already own those lifecycle cases, so they move to a
row in reference/automation.md and the box keeps what a person judges:
the ticked defaults, an untick that sticks, and an edit that keeps the
saved equipment.
…nt-skills

# Conflicts:
#	services/platform/tests/manual/readme.md
Every open change bumped the same box-count lines in the manual readme, so each merge conflicted with the rest. The totals are recounted once after the batch lands.
@yannickmonney
yannickmonney merged commit 37f574c into main Sep 29, 2026
57 checks passed
@yannickmonney
yannickmonney deleted the feat/preselect-document-skills branch September 29, 2026 02:42
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