Skip to content

fix(cli): report a source registered with no agent enabled as a success - #155

Open
nclsndr wants to merge 1 commit into
mainfrom
fix/profile-docs-and-source-add-exit
Open

nclsndr wants to merge 1 commit into
mainfrom
fix/profile-docs-and-source-add-exit

Conversation

@nclsndr

@nclsndr nclsndr commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Why

  • tack source add --apply with no agent enabled registers the source, but exits 1. A script or an agent reads that as a failed registration.
  • reference/profiles.mdx says that a profile layer leaves out a member named like a built-in skill. That is true for the user only: at project scope the member is selected and linked.

What

  • source add --apply succeeds (exit 0) when the source is registered and no-adapters-enabled is its only warning. The warning stays, and Next names tack adapter enable claude before the project to register. Any other warning of the delivery, such as a missing project root, still makes the result partial (exit 1).
  • The JSON payload schema is unchanged: same envelope version 1, same applied payload. status and classification are success in this case, and next has one more command.
  • The preview of source add, and project add, stay partial with no agent enabled.
  • reference/profiles.mdx and the use-tack selection reference now state the actual rule. Tack delivers its built-in skills to the user, so a user layer leaves out a member of that name. A project layer links it in the project. Confirmed with real runs in throwaway homes at both scopes; no code change.
  • reference/sync.mdx, guides/add-a-source.mdx and the use-tack setup reference describe the new result of source add --apply.

Related to

Follow-up of #153. The evals README line that documents the exit 1 is part of that pull request and not on main yet, so it is unchanged here.

Details

  • A route test registers a source with no agent enabled (success, warning, Next), then adds a missing project root (partial). It failed before the fix, and its partial half fails when the classification is weakened.
  • setup-hints.host.test.ts expects the new Next command. The shared expectRegisteredWithoutAgents expects a success for source add and a partial result for project add.
  • bun run check and bun run deadcode pass locally.

AI assisted

source add --apply exits 0 when the source is registered and the only warning is that no agent is enabled. It keeps the no-adapters-enabled warning and names tack adapter enable under Next.

The docs now say that only a user profile layer leaves out a member named like a built-in skill, and that a project layer links it.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tack-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: a06f65d
Status: ✅  Deploy successful!
Preview URL: https://704ba2b3.tack-ayg.pages.dev
Branch Preview URL: https://fix-profile-docs-and-source.tack-ayg.pages.dev

View logs

This branch has not been deployed

No deployments
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