feat(commands): settle the try-flow project from getDefaultProject #70
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #70"
general
weight: 0.35
sicoyle
Both try commands decided which project to use with a two-way branch: is
defaultincatalyst_list_projects, yes or no. The platform answers a richer question — three outcomes over six reasons — in thegetDefaultProjectpart ofcatalyst_whoamithat step 1 already fetches and step 2 discarded.Step 2 now branches on that outcome, and the skills key their "do not create a project" rule on it too. The control-plane behaviour behind this, and one change it would need on the cloudgrid side, are at the bottom.
What step 2 does now
ready→ use the project it names.pending→ say so, wait ~5s, callcatalyst_whoamiagain, up to five times. Never create anything while pending.unavailable→ name the reason, then useotherProjects(same response, no second call), or offer to create one.Creation is guarded three ways: the name may not collide with an existing project;
dry_rungoes first, becausecatalyst_applyreplaces a same-named project and a field left out is dropped, which cannot be undone; and a project-limit refusal is reported plainly instead of worked around. A new project's spec setsdefaultPubsubEnabled,defaultKVStoreEnabledanddefaultWorkflowStoreEnabledtotrue, withspec.regionomitted because it is immutable once set.Whichever project is settled on — including one the user picks from their own list — step 2 confirms
status.defaultWorkflowStoreEnabledbefore step 3. That closes the hole where a hand-made project silently produces runs that never appear.Skills
catalyst-setupgains section 5, a table of the five situations and what each one means.catalyst-agent-scaffold,catalyst-workflow-scaffold,catalyst-workflow-from-diagramandcatalyst-developkeyed their rule on a project listing; they now key it on the outcome, with the try-flow exception scoped tounavailable.Evals
starter-no-project-creates-one— the create path, graded on enabling all three managed stores and on asking before creating.starter-pending-project-waits— new, and the one that matters: it fails any response that offers to create a project, sends the user to the console, or treats a pending project as permanently absent.Line endings
.gitattributespins LF. The install component test read files raw, so its LF-only frontmatter regex failed on a Windows checkout undercore.autocrlf=trueand passed on the ubuntu runners; it now normalises on read.npm testgoes 11/12 → 12/12 on Windows.Verification
check_mcp_surface.py,build_install_data.py --check,lint_skills.py,npm test(12/12), 14 evals with valid frontmatter, both command/eval pairs byte-identical.Suggestion: the cloudgrid edge case behind this
Nothing below is changed by this PR — it is the control-plane behaviour this flow was adapted to, and one suggested change to it. Worth a second opinion from whoever owns
defaultproject.getDefaultProjectis a trigger as well as a report. Inservices/cloudgrid/internal/app/catalyst/service/project_default.go,EnsureDefaultProjectcallsRequestResyncon the organization whenever the reason isreadyor transient — so asking is what makes the operator get on with bootstrapping, and a new organization converges from the same call that discovers it has not converged yet.That produces
outcome: pending, classified inservices/cloudgrid/internal/app/catalyst/defaultproject/reason.goasno_regionorregion_not_connected, with the instruction built ininstruction.gosaying "Wait a few seconds and repeat the same call."Why the old flow got this wrong, and why it is expensive. Step 2 called
catalyst_list_projects, whose tool wiring inservices/catalyst/mcp/internal/toolset/tools.goisOps: []string{"listProject"}— it carries no outcome, no reason, no instruction. So a pending project and a permanently absent one are indistinguishable from that call, and the flow read both as "there is no default project":/catalyst-ai:try-command opens with "I'm new to Diagrid Catalyst." A brand-new organization is precisely the one whose project is still being created. The flow's worst case was its most common one.services/cloudgrid/products.yamlsetsnumber_of_projectsto 3 per cloud region oncra:free(5 oncra:plus, 3 oncra:enterprise). An agent that readspendingas absent and creates a project spends one of three on a duplicate of a project that arrives seconds later.reason.goandinstruction.goboth call this out in their package comments as the failure the package exists to prevent.default: per theProjectschema none of the managed infrastructure is on unless the spec asks for it, so the user would most likely land on a project with no workflow store and discover it three steps later, when the crash-and-resume demo produces runs that never appear.The suggested change
instruction.goappends" Do not create a project."to every instruction, unconditionally, for all six reasons — its doc comment calls that "the point… No combination may leave that unsaid" — and thecatalyst_whoamitool description intools.gorepeats it.Step 2 now agrees with that everywhere except one narrow case:
unavailable, with nootherProjects, and headroom available. There, the instruction tells the agent to ask the user to go and create a project by hand, which is the dead end above. Suggestion: let the instruction for that one case permit a create, or say what a hand-made project must enable. Until then this flow is contradicted at runtime in exactly that case.Worth noting the platform's own hosted quickstart already takes the other side in
hostedquickstart.go, refusing a non-empty project with "hosted quickstart requires an empty project -- create a new one"*.Files read
| File | What it establishes |
| --- | --- |
|
services/cloudgrid/internal/app/catalyst/defaultproject/reason.go| the six reasons, which two are transient ||
services/cloudgrid/internal/app/catalyst/defaultproject/instruction.go| the instruction text, and the unconditional "Do not create a project." ||
services/cloudgrid/internal/app/catalyst/defaultproject/result.go|outcome/reason/otherProjects/instructionshape ||
services/cloudgrid/internal/app/catalyst/service/project_default.go| the resync trigger, anddefault_deletedbeing permanent ||
services/cloudgrid/internal/app/catalyst/service/hostedquickstart.go| the platform's own quickstart telling users to create a project ||
services/cloudgrid/products.yaml| 3 / 5 / 3 / 200 projects per region by plan ||
services/catalyst/mcp/internal/toolset/tools.go|catalyst_list_projectscarries none of this ||
services/catalyst/mcp/internal/toolset/resources.go|Projectis creatable via apply; the prohibition is advisory prose only |🤖 Generated with Claude Code