Repository navigation
feat(workspace): builder agents by tier and member kind on the box block's factory (#3152) - #3442
Merged
Merged
Conversation
…ock's factory (#3152) factory.tiers lists { tier, agent, kinds, session }: which agent the builders member declares builds each tier of the work kind's vocabulary, optionally only for some member kinds and as a declared agent session. The read refuses an ambiguous tier, tiers without builders and an unknown session. status --json and graph --json print tiers and builderFor, the agent for each built member and tier. Recorded as ws-094.
# Conflicts: # docs/design/decisions/README.md
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.
This declares which builder agent builds at which tier in the spec, replacing the
studio/role: buildandstudio/tiermetadata on studio's Agents that only studio reads. Recorded as ws-094.The box block's factory takes a new optional
tierslist besidebuilders. Each entry is{ tier, agent, kinds, session }:tieris a word of the work kind'swork.tier.tiers(#3147),agentnames an agent thebuildersmember declares,kindslimits the entry to members of those kinds (so an infra builder and an app builder can share a tier, per the ops update on the issue), andsessionnames a declared agent session the builder writes as, so its write scope is that session's. A tier has at most one entry withoutkindsand at most one per kind,tiersneedsbuilders, and asessionmust be declared; otherwise the read fails withdeclaration-invalid(WSP001 in check).builderskeeps its 0.102.0 meaning.status --jsonandgraph --jsonprintfactory.tiersas declared andfactory.builderFor, keyed by each member inbuildsand then by tier, with{ agent, session }from the entry for the member's kind, else the tier's entry without kinds. An orchestrator holding a work item's tier (from the item or the slice-tier answer) looks the agent up there with no studio code. Contract 1 additions; a declaration that usestiersneeds minReader 0.103.0.Not done here: checking at
chant workspace checktime that each tier word is in the work kind's vocabulary and that the builders member really declares each agent. The first needs the work kind module loaded and a WSP id, the second needs the member built; both are noted in ws-094 as left to the orchestrator for now.Verified with the core typecheck, targeted vitest (the new builder-tiers tests, box-factory, declaration, status, graph and read contracts, boundary roster, decisions import), the docs diataxis check and the docs prose lint.
Closes #3152