3 KiB
3 KiB
| brief | convoy | role | title | status | priority | slice_dependencies | recommended_model | model_tier | workspace_id | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 | repo-discovery-onboarding | role-implementer | Agent onboarding and repository bootstrap | ready | P2 |
|
qwen-coder | local | global |
Brief 4 — Agent onboarding and repository bootstrap
Goal
After connection/import, the operator receives accurate, client-specific instructions for connecting an agent to Echodo and can optionally open a bootstrap PR for repository-side convoy guidance.
Backlog task: plans/Plan-automation-foundation/Epic-repo-discovery-onboarding/Task-agent-mcp-starter.md.
Product and security contract
- Do not generate snippets containing
DATABASE_URLor other infrastructure secrets. - Do not assume an
ECHODO_WORKSPACE_IDenvironment variable is consumed unless the MCP transport/config actually supports it. - Support the deployment's real MCP transport first. If this remains local stdio, show the command plus non-secret workspace slug used in tool arguments. If remote authenticated MCP is added separately, link to that setup rather than fabricating it here.
- Client formats differ. Render templates from typed server data for explicitly supported clients (OpenCode and Cursor first); label unsupported clients instead of presenting one generic JSON object as universal.
- Any repository bootstrap change is a commit on a branch followed by
createPullRequest;createPullRequestalone cannot create files.
Files
- Add a typed onboarding-config procedure returning only non-secret deployment and workspace/repo identifiers.
- Add an Agent setup panel to connected-repo settings with client tabs, copy controls, prerequisites, and verification steps.
- Add bootstrap service only if the forge adapter has branch/file/commit primitives; otherwise scope this brief to guidance and create a follow-up task rather than simulating a PR.
- Bootstrap content should reference the canonical
.convoys/README.mdcontract and avoid overwriting an existing file without explicit confirmation.
Acceptance
- OpenCode and Cursor examples are syntactically valid for their actual configuration formats and contain no database URL, PAT, access token, or API-key value.
- Instructions identify the selected workspace and repository and include a smoke test such as
query_manifest_status. - Copy controls provide success/error feedback and work over secure browser contexts.
- Bootstrap is idempotent: existing
.convoys/README.mdis detected, and any remote change is shown to the user through a PR URL. - Authorization is workspace owner/admin for remote writes; read-only members may view non-secret setup guidance if allowed by workspace policy.
- Lint, type-check, and relevant UI/service tests pass.
Prompt for implementer
Implement only Brief 4 after Briefs 2 and 3. First verify the MCP server's supported transport and environment contract in code. Never place infrastructure credentials in browser-rendered snippets. Do not claim a bootstrap PR is possible unless branch/file commit support is implemented and tested.