feat(prompt): add deployed-app verification step to default workflow#84
Open
thisistonydang wants to merge 1 commit intomainfrom
Open
feat(prompt): add deployed-app verification step to default workflow#84thisistonydang wants to merge 1 commit intomainfrom
thisistonydang wants to merge 1 commit intomainfrom
Conversation
Extends dev-guidelines.md (concatenated into every /api/bootstrap-prompt response and the homepage Copy-prompt button payload) with a new step 8: drive the deployed app end to end with `agent-browser`, loop on log inspection and redeploys, and only report done after a clean pass. Routes agents to the `databricks-apps` skill's agent-browser reference when available, with an inline `npm install -g agent-browser` fallback for agents that don't have the skill loaded. Pending databricks/databricks-agent-skills#63 (adds the agent-browser reference to the `databricks-apps` skill).
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
Adds a new step 8 to the default agent workflow in
content/dev-guidelines.md: run and test the deployed app end to end withagent-browserbefore reporting done. The new section instructs agents to load the deployed app, smoke-test it, inspect logs via the Databricks CLI, and loop on redeploys until clean.This content is concatenated into every
/api/bootstrap-promptresponse (powered bycomposeAgentPromptinsrc/lib/copy-preamble.ts), so it ships immediately to:Pending dependency
This PR is pending databricks/databricks-agent-skills#63, which adds the
agent-browserreference (references/appkit/agent-browser.md) to thedatabricks-appsskill. Once that PR lands, agents that have thedatabricks-appsskill loaded will automatically follow the full recipe (deployed URL with--headed --profile <dir>for one-time SSO, daemon flag gotchas,databricks apps run-localedge case for header-injection testing).The new step is written to degrade gracefully when the skill isn't available — bullet 1 has an inline
npm install -g agent-browserfallback so non-Databricks-skilled agents still execute the verification loop manually.Test plan
npm run fmtpassesnpm run typecheckpassesnpx vitest run tests/bootstrap-prompt.test.tspasses (13/13)prettier -c .+ typecheck + verify:images + build) passes/api/bootstrap-promptresponse on the preview deployment to confirm the new section renders inline