Commit graph

64 commits

Author SHA1 Message Date
9066022825 chore: sync core service scheduler, workflow, storage, and SQL queries
- Update tasks.sql.go with new query mappings
- Add scheduler job definitions and tests
- Extend storage store with new methods
- Update workflow lifecycle and service tests
- Add task query definitions for authoring
2026-06-21 22:23:15 +09:00
af78e429e3 chore: archive finalized files and update workflow lifecycle 2026-06-21 16:55:01 +09:00
c283c1fa5e archive plane todo files and update bridge_test.go 2026-06-21 16:29:21 +09:00
9e534d8133 fix(gitosync): omit RoadmapRevision on missing-create to allow authoring roundtrip
When the missing-create path stores a RoadmapRevision, a later reconcile push
(after the authoring roundtrip adds the Plane identity to the milestone file)
conflicts with ReconcileCreationCycle's revision guard because the new push has
a different revision than the original missing-create push.

Since missing-create has no completed projection steps, a future reconcile on a
different revision should be allowed to resume. Omit RoadmapRevision from the
missing-create job args so the persisted row stores NULL and the revision guard
does not block the subsequent reconcile push.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 15:28:53 +09:00
9338a8500c fix(gitosync): fill in missing tenant/project from bridge config on reconcile path
When a milestone file's provider identity block omits Tenant and Project
(both are optional since MatchDevelopMilestone fills them from expected),
the bridge's FetchWorkItem call fails with ErrInvalidInput because
planeWorkItemRef requires all three: tenant, project, id.

Fill in missing Tenant/Project from BridgeConfig before building the ref,
mirroring the missing-create path which always uses b.cfg.Tenant/Project.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 15:22:34 +09:00
1a99b3d04b fix(scheduler): skip task finalizer when Ref.ID is empty for missing-create jobs
On the missing-create path, SyncCreation creates a new Plane work item and
returns SyncActionProjected before any workflow task has been registered for
the new work item UUID. Calling CompleteTaskByExternalRef with an empty Ref.ID
caused pgx.ErrNoRows → River retry → reconcile returning not_ready, leaving
only develop_matched recorded.

Fix 1 (roadmap_sync_jobs.go): guard CompleteTaskByExternalRef with args.Ref.ID != ""
so missing-create jobs complete cleanly without retrying.

Fix 2 (workflow/service.go): CompleteTaskByExternalRef now returns (zero, false, nil)
when GetTaskByExternalRef returns pgx.ErrNoRows, so reconcile jobs that have no
registered workflow task also complete cleanly rather than triggering retry loops.

Also adds PLANE_PROJECT_ID to docker-compose.yml environment so the missing-create
bridge receives non-empty tenant/project inputs at runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 13:45:48 +09:00
a23c723823 chore: archive old subtask files and update roadmapsyncpipeline 2026-06-21 08:54:11 +09:00
528e9d6966 feat(roadmapsync): plane origin authoring roundtrip 기능 및 마일스톤 ID 지원
- roadmapsync pipeline에 retry 로직 및 개발 일치 검증 로직 추가
- gitosync scanner에 slug 재조정 및 plane 매칭 로직 강화
- roadmap sync identity 관리를 위한 migration(00009) 및 SQL 쿼리 추가
- milestone parser 테스트 및 retry 테스트 보강
- agent-ops 문서(PHASE, SDD, milestones) 갱신
- agent-task archive 및 작업 디렉터리 추가
2026-06-21 07:59:56 +09:00
d1699ef724 feat(authoring): identity write 구현 및 scheduler/river 리팩토링
- authoring: identity write 도메인 구현 (identity_write.go)
- authoring: request/result 도메인 정리 및 테스트 개선
- scheduler: job/river 구조 리팩토링 및 테스트 보완
- gitosync: bridge/scanner 테스트 개선
- roadmap: plane-origin-authoring-roundtrip-sync 마일스톤 업데이트
2026-06-20 21:09:26 +09:00
13ce1ec281 chore: archive migrated task files and update core services
- Move 03+01,02_push_command files to archive
- Update services/core authoring request and scheduler jobs
- Update related tests and documentation
2026-06-20 19:48:16 +09:00
8157ba060b update core services and move progress files to archive 2026-06-20 19:25:18 +09:00
6d4553bdc9 feat: m-plane-origin-authoring-roundtrip-sync G07-G08 progress and core scheduler improvements
- Add code review and plan logs for cloud G07, G08 subtasks
- Add stale task detection to scheduler
- Update OpenAI client config and tests
- Fix core services Makefile, README, docker-compose, and run script
2026-06-20 18:33:39 +09:00
fc84d212d8 update roadmap, add MCP control surface sketches, fix core services config and adapters
- Update agent-roadmap ROADMAP.md and PHASE.md
- Add mcp-control-surface-sketch.md and plane-origin-authoring-roundtrip-sync.md
- Update live-cycle-smoke.md test doc
- Fix services/core: Dockerfile, docker-compose, config, OpenAI client, authoring request
- Update config and test files for core service
2026-06-20 16:29:55 +09:00
4ac7f74d28 update roadmap and fix gito webhook implementations 2026-06-19 20:10:35 +09:00
381c7eaddf feat(services/core): Gito webhook 테스트와 문서 보강한다
- Gito webhook 테스트 케이스 추가 및 기존 테스트 리팩토링
- main_test.go 테스트 구조 개선
- docker-compose.yml 설정 추가
- 관련 문서(README, 마일스톤) 갱신
2026-06-19 17:11:39 +09:00
9258f9de54 feat: gito http webhook consumer readiness milestone completion
- Update milestone and SDD documents
- Add webhook HTTP receiver with idempotency checks
- Add config for webhook endpoints
- Implement gito events processing
- Add HTTP handlers and router updates
- Archive completed task files
2026-06-19 14:06:24 +09:00
5d2acc1afb fix(G06): remove duplicate trim/validate in webhook receiver
- Move strings.TrimSpace into validateBranchUpdatedPayload to avoid
  duplicate validation in ReceiveGitoWebhook
- Update CODE_REVIEW to reflect the improvement
2026-06-19 11:51:10 +09:00
2b35251b6d fix(G06): restore HTTP payload contract validation in webhook receiver
- Add validateBranchUpdatedPayload() to check body type and changed_files
- Extend gitoWebhookPayload struct with Type and ChangedFiles fields
- Add tests for wrong body type and malformed changed_files rejection
- All tests pass: ./internal/http, ./internal/config, ./cmd/server, ./...
2026-06-19 11:37:00 +09:00
18f0c37e6a fix: gito sync failure ops and archive plan/review docs 2026-06-17 10:09:29 +09:00
48901b11d5 archive completed subtask and update related artifacts 2026-06-17 07:49:01 +09:00
f4959a3bab feat: gito-protosocket-consumer-wire-readiness milestone completion
- Update roadmap milestone status
- Add gitosync runner and tests
- Update gitoevents tests
- Adjust docker-compose configuration
- Update core and project READMEs
- Add agent-task for consumer wire readiness
2026-06-16 22:26:44 +09:00
0109c89eb9 update: agent-ops-mcp-control-plane 로드맵 정리 및 gitoevents 클라이언트 개선
- 마일스톤 문서 archive로 이동 (gito-branch-event-sync-bridge, plane-work-item-webhook-intake)
- PHASE.md 및 ROADMAP.md 갱신
- gitoevents/client.go: 클라이언트 로직 개선
- gitoevents/client_test.go: 테스트 커버리지 추가
2026-06-16 21:05:31 +09:00
58dce3d7a3 feat: agent-ops MCP control plane phase updates and core service refinements
- Update roadmap and phase documentation for agent-ops MCP control plane
- Update milestone work-item creation/sync documentation
- Refine core server command and HTTP Plane webhook handling
- Update Plane webhook tests
2026-06-16 11:01:17 +09:00
afb26e67ed feat: complete work item creation sync milestone - slot finalizer, live cycle smoke test, archive completed subtasks
- Add slot_finalizer.go for terminal state management
- Add live cycle smoke test documentation
- Archive completed subtasks (slot terminal state, live cycle smoke)
- Update scheduler jobs and workflow service for roadmap sync
- Update authoring request/result handlers
- Update milestone documentation
2026-06-16 10:06:58 +09:00
ef4c2191ce feat(core): scheduler jobs 및 workflow 서비스 개선, 코드 리뷰 아카이브
- scheduler: roadmap_sync_jobs, river 개선 및 테스트 추가
- workflow: lifecycle, model, service 수정 및 테스트 보완
2026-06-15 22:16:11 +09:00
26f90bae08 feat: milestone work item creation sync 구현 및 agent-task 구조 추가 2026-06-15 21:02:09 +09:00
a6625fd0eb feat: webhook idempotency & test improvements
- Move 03+02 idempotency docs to archive (2026/06)
- Add task_store_test.go for storage layer testing
- Improve plane_webhook_test.go (handle_null_external_id support)
- workflow/service.go: idempotency guard for duplicate webhook events
- workitempipeline/service.go: pipeline step error handling fix
- workitempipeline/service_test.go: test alignment with pipeline changes
2026-06-15 17:36:37 +09:00
bbb1179194 feat(work-item-pipeline): 작업자 외부 참조 중복 처리 및 고유 인덱스 추가
Tasks 테이블에 external_provider, external_id 기반 UPSERT 로직을 추가하고
GetTaskByExternalRef 쿼리를 신설하여 중복 작업을 효율적으로 처리한다.

외부 참조 고유 인덱스 마이그레이션(00008)을 추가한다.

Workspace slots 쿼리에서 alias를 명시하여 FOR UPDATE SKIP LOCKED 동시성 처리를 개선한다.

Storage, workflow, workitempipeline의 중복 처리 로직을 일관되게 적용하고
Plane 웹훅 테스트를 보강한다.
2026-06-15 14:58:59 +09:00
210f67bd9a feat: complete G07 trigger dispatch and refactor webhook handling
- Move G07 task artifacts to archive (plan, code review, complete.log)
- Refactor main.go to use new webhook router
- Update plane webhook handlers with improved error handling
- Add config for Plane webhook integration
- Update docker-compose for webhook testing
- Update plane-dev test documentation
2026-06-15 14:46:20 +09:00
f23ba78eba feat: plane webhook intake & protosocket consumer wire readiness
- Add Plane webhook handler for issue events (created, state, assignees)
- Add Plane webhook integration tests with testdata fixtures
- Add Gito Protosocket consumer wire readiness milestone
- Add Plane work item webhook intake milestone
- Add agent-task for plane-work-item-webhook-intake (trigger dispatch, idempotency, live smoke)
- Update service config, router, handlers for Plane webhook endpoints
- Add SOPS env setup script and secrets configuration
- Update agent-ops domain rules and phase roadmap
2026-06-14 20:37:48 +09:00
2afa534338 feat: gito events client 및 gito sync bridge 구현, config 확장
- gitoevents: Gito 이벤트 클라이언트 및 이벤트 모델 구현
- gitosync: 브리지, 러너, 스캐너 구현으로 브랜치 이벤트 및 작업 항목 동기화
- config: 새 설정 항목 추가 및 테스트
- roadmapsync: plane projection 수정 및 테스트
- agent-task: G07 관련 계획 및 코드 리뷰 로그 추가
- roadmap: PHASE 및 마일스톤 업데이트
- contracts: Flutter core API 후보 노트 업데이트
2026-06-14 15:31:25 +09:00
32fda2a844 feat: milestone work-item creation sync 및 roadmap sync pipeline 구현
- Plane 프로젝트의 work-item 생성 시 Orchestrator로 동기화
- scheduler에 roadmap sync job 등록 및 river client 지원
- roadmapsycpipeline adapter 패키지 추가
- 관련 테스트 파일 및 브리지 문서 추가
2026-06-14 12:39:31 +09:00
91e3aabd16 update authoring request and model, scheduler tests, archive task files 2026-06-14 06:47:41 +09:00
8803d29554 feat: work item creation sync milestone implementation
- Add Plane API client integration for work item creation
- Update HTTP handlers for work item sync endpoints
- Implement workitem provider and pipeline service updates
- Add test cases for Plane client, handlers, and pipeline
- Update milestone documentation
- Archive task artifacts from 09_creation_trigger_gate and 10+09_plane_draft_authoring
2026-06-14 06:38:50 +09:00
dd0c4d953b feat: workspace provision pipeline archive and authoring result, scheduler fixes 2026-06-14 05:50:29 +09:00
096efb0a83 feat(workitempipeline): add provision service and archive G06 artifacts
- Add projectsync provision service with tests
- Update HTTP handlers with provision endpoint support
- Update workitempipeline service and tests
- Archive G06 workspace provision artifacts (plan, code review)
- Update G07 cloud code review
2026-06-14 05:13:16 +09:00
fad5627ae6 feat: milestone work item creation/sync 구현 및 roadmap sync 기능 추가
- Plane Todo projection 및 idempotency/retry 메커니즘 구현
- Roadmap sync identity 및 step 모델/DB 마이그레이션/쿼리 추가
- OpenAI 및 Plane adapter 개선
- roadmaps sync package: plane_format, plane_projection, retry 모듈 추가
- Storage layer: roadmap_sync_identities, roadmap_sync_steps 추가
- agent-task 아카이브 정리
2026-06-14 04:08:15 +09:00
dde07f9dea feat(core): add roadmapsync package for milestone work item creation
- Add develop_match.go/handlers for matching Plane tasks to local develop areas
- Add identity.go for external ID mapping and lookup
- Add milestone_parser.go for parsing agent-roadmap milestone files
- Include unit tests for all new modules
- Archive completed subtask documents for 03+02_develop_match
2026-06-13 22:09:45 +09:00
6ab8dd8f63 feat: authoring bridge implementation and scheduler improvements
- Add authoring adapter for openai integration
- Move 02+01_iop_authoring_bridge to archive
- Update scheduler jobs and workflow lifecycle
- Enhance openai client and model definitions
2026-06-13 20:47:09 +09:00
f9c6be03ef feat: milestone work-item creation sync 관련 변경사항 커밋
- projectsync: checkout, config 모듈 개선 및 테스트 추가
- workitempipeline: service 개선 및 테스트 추가
- http handlers 테스트 업데이트
- client: proto_socket_branch_event_service.dart 추가 및 테스트
- contracts notes 업데이트
- agent-task: milestone 하위 subtask PLAN/CODE_REVIEW 문서 추가
2026-06-13 16:45:10 +09:00
b505b7d0f1 chore(roadmap): 로드맵/IOP 변경사항을 반영한다 2026-06-08 19:39:03 +09:00
0d6916fd48 feat: project sync checkout implementation and task archive migration
- Add projectsync package with checkout logic and tests
- Integrate project sync into server initialization
- Update HTTP handlers and middleware for project sync endpoints
- Update workitempipeline service with project sync support
- Migrate task documents to archive structure with standardized naming
2026-06-07 03:29:53 +09:00
74ba7ebd76 feat(core): 워크스페이스 슬롯 저장소를 추가한다
Milestone work item 생성 동기화에서 workspace slot 상태를 DB에 저장하고 available slot을 원자적으로 예약할 수 있어야 한다.

리뷰 루프 산출물을 archive하고, 현재 로드맵 우선순위를 Workbench Provider Slot Composition으로 조정한다.
2026-06-06 19:50:16 +09:00
488a2e6c6a feat(project-sync): 프로젝트 동기화 저장 경계를 추가한다
마일스톤 작업 생성 동기화를 진행하기 위해 Plane project별 active sync 설정을 Core DB에 저장하고 조회할 수 있는 persistence 경계와 검증 산출물을 함께 정리한다.
2026-06-06 18:56:37 +09:00
8bdbc75b4b feat(core): provider registry 조립을 정리한다
외부 provider 추가가 handler 시그니처 고정에 묶이지 않도록 provider 목록 기반 조립으로 정리한다.

Mattermost adapter 완료 리뷰 로그와 외부 통합 마일스톤 진행 근거도 함께 보존한다.
2026-06-05 11:52:28 +09:00
bb43efc8a6 feat(external-integration): 외부 통합 마일스톤 아카이브 및 HTTP 핸들러/테스트를 보강한다
- external-integration 마일스톤 아카이브 추가 (01_provider_intake_registry, 02+01_adapter_boundary)
- HTTP 핸들러에 외부 통합 관련 로직 추가
- HTTP 핸들러 테스트 케이스 보강
- HTTP 라우터 설정 추가
- 외부 통합 마일스톤 문서 업데이트
2026-06-05 04:37:40 +09:00
d121f8f094 feat: mattermost task notification adapter and agent-task archive
- Add mattermost notification sink adapter
- Update notification service and scheduler tests
- Archive completed agent-task files for 04+01,02,03_adapter_boundary
- Rename plan/review files to archive format
2026-06-03 20:02:37 +09:00
84408ab245 feat: external integration adapters and test improvements
- Add JIRA, Mattermost, Plane adapter implementations
- Add Mattermost client tests
- Update core server setup and main.go
- Improve config and validation tests
- Enhance HTTP handlers and middleware tests
- Update work item provider and notification tests
- Add protoSocket tasks tests
- Update agent-task and agent-roadmap documentation
2026-06-03 18:41:12 +09:00
ac242e5fac feat: notification event model with workflow context (WFC-EVENTS)
- Add Attempt, Reason, OccurredAt fields to notification.TaskEvent
- Populate workflow context in scheduler event emission via parseTaskEventContext
- Extend proto-socket task.status.changed payload with additive fields
- Update contracts note with new event payload shape
- Archive notification_model subtask to agent-task/archive
- Fix Plane compose path in core domain rules
2026-06-01 13:19:07 +09:00
f862d5c646 fix: workflow scheduler and lifecycle bug fixes 2026-06-01 11:05:40 +09:00