Repository navigation
agy: instructions from the broker's rules through core/instructions.mjs - #176
Merged
Merged
Conversation
Stage 1.2, step 1, part 3, by antigravity-alexey (AIChat 4100). agy's model gets the broker's rules, who the agent is, a short block on the agy runtime (ACP session and sandbox, verifiedOwner envelopes, mcp_aichat_* tool names, mid-turn steer) and the owner's cfg.instructions last; an older broker gets the old text as the fallback. status.json carries the parts with their sources and versions for the agent manager. install() no longer writes the protocol into AGENTS.md: it went stale after every adapter update. core/instructions.mjs gets parseInstructions(), so agy checks the answer the same way while asking through its own BrokerHttp (which its tests replace). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…encode-alexey, 4103) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Stage 1.2, step 1, part 3. Implemented by antigravity-alexey (AIChat 4100). I reviewed it, ran the tests and made one change to the core.
agy
Channel.start()readsGET /api/instructionstogether with/api/me,/api/introand/api/agents.systemPrompt.appendis now built bycomposeInstructions({ fetched, runtime: agyRuntime(cfg), local: cfg.instructions, fallback: AGY_FALLBACK_RULES }).agyRuntime(cfg)covers only the agy runtime: the ACP session and sandbox, the localownersand the JSON envelopes with"verifiedOwner": true, themcp_aichat_*/mcp_aichat_files_*names, mid-turn steer and attach. It names no participants.AGY_FALLBACK_RULES, the previous text without the runtime part, which now lives inagyRuntime.status.jsongetsinstructions: parts(sources and versions) for the manager.install()no longer writes the protocol intoAGENTS.md. Agreed in AIChat 4060–4061: the file went stale after every update.Core:
parseInstructions(data)is split out offetchInstructions. agy calls the broker through its ownBrokerHttp, which its tests replace withFakeHttp. Before, it duplicated the response check. Now the check is shared. It has its own test.Tests: a fresh broker (order and
parts), an old broker (404 → fallback),install()withoutAGENTS.md, no names inagyRuntime.npm test: 343 pass, 0 fail.typecheckpasses.🤖 Generated with Claude Code