docs(#4340): add entity provider schema contracts to boost AGENTS.md - #4341
docs(#4340): add entity provider schema contracts to boost AGENTS.md#4341fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Document upstream AiResource/agent and AiModelServerAPI/ai-model-server schema requirements in the boost workspace AGENTS.md. This closes a documentation gap that caused rework on PR #4260, where a human reviewer had to flag missing spec.instructions and spec.handoffs fields because neither the issue spec nor AGENTS.md documented the upstream entity schema contracts. The new section lists schema-required fields (type, lifecycle, owner for AiResource; plus serverType and serverUrl for AiModelServerAPI) and key optional fields that entity providers should populate (instructions, handoffs, handoffDescription, model, tools, modelSettings for agents; models.available, models.default, requiresApiKey for model servers). Cross-references the canonical JSON schema files in the ai-integrations workspace and notes the AiResourceAgentProcessor's runtime type validation via collectAgentErrors. Note: prettier could not run in sandbox (missing @backstage/cli dependency). Manual formatting verified. Closes #4340
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4341 +/- ##
=======================================
Coverage 61.36% 61.36%
=======================================
Files 2520 2520
Lines 100978 100978
Branches 28295 28295
=======================================
Hits 61965 61965
Misses 38462 38462
Partials 551 551
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
closed corresponding issue as well ... see that for details |
|
🤖 Finished Retro · ✅ Success · Started 1:25 PM UTC · Completed 1:36 PM UTC Commit: |
Retro Analysis: PR #4341 — docs-only AGENTS.md change, closed without mergeWhat happenedPR #4341 was a retro-originated documentation PR that was closed without merge by maintainer gabemontero. The full chain:
The entire retro → triage → code → PR pipeline completed in ~13 minutes with no human validation gate. The resulting work was rejected. AssessmentThis is a textbook case of the retro-to-code pipeline creating wasted work from a single-instance finding. The retro correctly identified that the code agent missed schema requirements, but the maintainer considered this a one-off problem (attributable to imprecise openspec content) rather than a systemic documentation gap. The retro's diagnosis was reasonable but its proposed fix was disproportionate. This retro itself is running on a retro-originated PR — a self-referential chain that consumes compute analyzing rejected agent output. Existing issue coverageAll improvement areas identified in this workflow are already covered by open issues in
|



Document upstream AiResource/agent and AiModelServerAPI/ai-model-server schema requirements in the boost workspace AGENTS.md. This closes a documentation gap that caused rework on PR #4260, where a human reviewer had to flag missing spec.instructions and spec.handoffs fields because neither the issue spec nor AGENTS.md documented the upstream entity schema contracts.
The new section lists schema-required fields (type, lifecycle, owner for AiResource; plus serverType and serverUrl for AiModelServerAPI) and key optional fields that entity providers should populate (instructions, handoffs, handoffDescription, model, tools, modelSettings for agents; models.available, models.default, requiresApiKey for model servers). Cross-references the canonical JSON schema files in the ai-integrations workspace and notes the AiResourceAgentProcessor's runtime type validation via collectAgentErrors.
Note: prettier could not run in sandbox (missing @backstage/cli dependency). Manual formatting verified.
Closes #4340
Post-script verification
agent/4340-add-entity-schema-docs)887e675df7939b79648353ce9001dc9cc7ed09d3..HEAD)