feat: agent-manager (am) integration — local source, verify, runtime observability#1
Merged
Merged
Conversation
…observability 實作 CH-002,讓 gogents 作為 agent-manager 的執行面: - local 任務源:讀 ~/.am/tickets/、依 label 認領、ticket verify 驗證、終態回寫 ticket 檔(TaskSource/SourceProbe/ContentFetcher/TaskVerifier/FeedbackReporter) - agent 工作目錄改 workspace 根,使 workspace 級 .claude/ 與 .mcp.json 生效;repo 為 ./<reponame> 子目錄 - runtime 註冊寫入 ~/.gogents/config.yaml(upsert-by-workspace,移除 active_runtime) - state.yaml 增 runtime_state 欄位;觀測 CLI:gogents runtime list/status、gogents logs - CLI 命令層集中至 internal/cli(含 start),main.go 縮為薄進入點 - 需求/設計/測試文件(R11/R12、D07/D08 等)與對應單元測試同步 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
實作 CH-002,讓 gogents 作為 agent-manager (am) 的執行面:am 產出 ticket → gogents worker daemon 依 label 認領執行 → 回寫終態;am 經
gogents runtime status/gogents logs查詢(單向am → gogents)。變更範圍
~/.am/tickets/、依 label 認領、ticketverify驗證、終態回寫 ticket 檔(TaskSource/SourceProbe/ContentFetcher/TaskVerifier/FeedbackReporter);dispatcher 五 factory 加localverify.cmd→ exit code 判成敗;未宣告 fallback 現行result.jsonverdict(github_issue不受影響).claude/、.mcp.json生效;repo 為./<reponame>子目錄(Base Prompt 指示)start寫入~/.gogents/config.yaml,upsert-by-workspace、移除active_runtimeidle/executing/verifying/reporting/failed/broken);down由查詢端依 pid 推得gogents runtime list/runtime status <target>/logs <target> [--error]架構調整(review 後確認)
internal/cli:start/runtime/logshandler 全部移入;cmd/gogents/main.go縮為薄派發器。文件
需求 R11/R12、設計 D07/D08 新增;R02/R03/R04/R06/R07、D01/D02/D03/D06、requirement.md、README、AGENTS 同步更新;unit-tests.md 補 D07/D08 測項。
驗證
go build ./...✓ ·go test ./...全通過 ✓ ·golangci-lint run0 issues ✓runtime status(dead pid →down、未註冊 → exit 1)、runtime list、薄 main 派發皆正確internal/cli~83%、local/global_config/runner-verify 路徑 80–100%未含
docs/changes/change-remove-gemini-agent.md(另一獨立變更的佔位,未納入)🤖 Generated with Claude Code