Repository navigation
feat(platform): start new project agents with the document skills ticked - #3781
Merged
Merged
Conversation
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.
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New project agents now start with the
docx,pptx,xlsxandpdfskills 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 thetesttask, which hashesconfigs/platform/**, so turbo cannot replay a stale pass after a bundle is renamed.Manual box
PROJ-F35covers 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 inreference/automation.mdas owned by the dialog and route component tests.Checklist
bun run checkpasses: 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:sastpasses: 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.docs/{en,de,fr}/:platform/projects/project-agents.md,platform/agents/skills.mdandtutorials/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
bun run --filter @tale/platform test -- lib/shared/config/document-skills-catalog.test.tspasses 4/4 in theserverproject. With a slug renamed temporarily it fails for that slug, and the rename was then reverted.tests/guards/turbo-inputs.guard.test.tspasses 16/16, and itsOUTSIDE_READSentry forconfigs/platform/customnow 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 typecheckpasses, typed oxlint on the touched files is clean,bun run lint:manualis OK (1260 boxes across five trees),check-guide.tsonsuites/projects.mdis OK, andbun run --filter @tale/docs testpasses 171/171.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-modelsscreenshot shows saved rows and is unaffected, so no screenshot needs recapturing.