feat(agent): forge state-transition tools (RIG-3331) - #1019
Draft
rigel-mintaka wants to merge 1 commit into
Draft
Conversation
This was referenced Sep 8, 2026
|
Compass engineering docs preview: https://compass-forge-rig-3331-tools.compass-eng-docs.pages.dev Deployed from |
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.
Implements T6 of
docs/designs/server/compass-forge-state-transition/design.md: the two agent tools. Stacked on #1018.forge_transition_issue_stateandforge_transition_pull_request_state, on the DL-241 single-purpose-tool pattern over the sameForgeBrokerseam every existing forge tool uses.The tool-facing parameter is
pull_number, matching every other PR tool in the file, and maps to the proto'spr_numberat the request boundary — agent-facing consistency over wire-name symmetry.Schema semantics follow the record:
reporequired (<owner>/<name>on GitHub, team key on Linear),stateisopenorclosed,close_reasonGitHub-issues-only,workflow_stateLinear-only. The PR tool takes no refinement fields —close_reasonis a GitHub issue concept, and merge is a separate concern never expressed as a transition.Tests
Broker round-trips asserting the request arm and its fields, and that the rendered result is the post-transition artifact. Plus schema-rejection tests pinning the portable state domain:
mergedand a Linear workflow-state name are both real forge states and neither is a legal target.The three native-tool count tripwires in
cli.test.tsmove 20 → 22. That is what a tripwire is for — it caught the roster change rather than letting the tools land unnoticed.Verified:
compass-agent:test684 pass / 0 fail;compass-agent:typecheckclean.Ledger-impact: none — DL-342/DL-343 landed with the record's freeze in #981.