ticket: accept builtin role profiles

This commit is contained in:
Keisuke Hirata 2026-06-11 00:00:41 +09:00
parent a0b688e29a
commit a901ebeb4f
No known key found for this signature in database
3 changed files with 39 additions and 2 deletions

View File

@ -1 +1,2 @@
{"id":"orch-plan-20260610-111729-1","ticket_id":"00001KTRG8N9J","kind":"waiting_capacity_note","note":"Queue notification was received and Ticket/relation/orchestration context was checked. Acceptance is temporarily blocked by unrelated dirty Ticket records in the main workspace (`00001KTFQ109R`, untracked `00001KTRKZ14C`) and a live Intake Pod for `00001KTRKZ14C`; implementation side effects are intentionally not started until that dirty/project-record state is committed or settled. Ticket has no relation blockers and appears implementation-ready once workspace state is safe.","author":"orchestrator","at":"2026-06-10T11:17:29Z"}
{"id":"orch-plan-20260610-150032-2","ticket_id":"00001KTRG8N9J","kind":"accepted_plan","accepted_plan":{"summary":"Add builtin role Profiles `builtin:companion`, `builtin:intake`, `builtin:orchestrator`, `builtin:coder`, and `builtin:reviewer` under `resources/profiles`, register them in the embedded Profile registry/resolver path, migrate `.yoi/ticket.config.toml` role selectors to builtin selectors, and either remove or justify project-local role profile remnants. Preserve role feature/tool policy, Profile validation boundaries, global `yoi` style, and project-specific language/backend/workflow/model/secret settings outside builtin Profiles.","branch":"builtin-role-profiles","worktree":"/home/hare/Projects/yoi/.worktree/builtin-role-profiles","role_plan":"Orchestrator implements in dedicated worktree because prior coder write-scope delegation is unavailable in this session; use read-only reviewer Pod before merge-completion. Keep role Profile changes to reusable builtin policy presets and project config selector migration; do not move prompt/workflow prose into Profiles."},"author":"orchestrator","at":"2026-06-10T15:00:32Z"}

View File

@ -1,8 +1,8 @@
---
title: 'Project role profilesをbuiltin profilesへ移行する'
state: 'queued'
state: 'inprogress'
created_at: '2026-06-10T10:11:51Z'
updated_at: '2026-06-10T11:17:29Z'
updated_at: '2026-06-10T15:00:32Z'
assignee: null
queued_by: 'workspace-panel'
queued_at: '2026-06-10T11:16:43Z'

View File

@ -103,4 +103,40 @@ Project/user config 側に残すべきもの:
Ticket を `workspace-panel` が queued にしました。
---
<!-- event: state_changed author: orchestrator at: 2026-06-10T15:00:32Z from: queued to: inprogress reason: orchestrator_queue_acceptance field: state -->
## State changed
Queue acceptance: dirty Ticket records were committed (`a0b688e2`), relation query has no blockers, orchestration-plan query has only the prior temporary waiting note, workspace state is clean, and user explicitly authorized continuing. Implementation side effects may proceed after this recorded acceptance.
---
<!-- event: plan author: orchestrator at: 2026-06-10T15:00:32Z -->
## Plan
Routing decision: implementation_ready
Reason:
- Ticket is `queued`, user authorized continuing, and dirty workspace blocker was resolved by committing unrelated Ticket records in `a0b688e2`.
- Relation query has no blockers; orchestration plan only had the temporary waiting note from the dirty-state gate.
- Ticket body/thread contain concrete requirements, binding decisions, non-goals, acceptance criteria, and reviewer focus.
Evidence checked:
- Ticket body/thread/artifacts.
- `TicketRelationQuery`: no blockers.
- `TicketOrchestrationPlanQuery`: prior waiting note only.
- Workspace state after commit: clean.
- Relevant context: closed `00001KTR6D3C5` already added global `yoi` and `yoi.profile.import/extend`; closed prompt-resource Ticket keeps LLM-facing prompt prose out of Profiles.
IntentPacket:
- Intent: migrate standard project role Profiles into builtin reusable role policy presets and update this workspace Ticket role config to select those builtin Profiles.
- Binding decisions / invariants: builtin Profiles carry role-level feature/tool policy and reusable defaults only; do not embed LLM-facing prompt/workflow prose; do not include runtime-bound fields, concrete paths, Pod/session state, resolved Manifest, concrete delegated scope/path, project language/backend/workflow/model/secret pins, or environment-specific web secret refs as role contract; final artifacts must pass Profile validation.
- Requirements / acceptance criteria: `builtin:companion`, `builtin:intake`, `builtin:orchestrator`, `builtin:coder`, `builtin:reviewer` resolve through the normal builtin Profile registry/resolver; `.yoi/ticket.config.toml` role selectors use builtin selectors; current project-local role profile handling is removed or explicitly justified; role feature/tool policy remains equivalent to current project role policy; tests cover resolver/registry and role config/launcher as needed.
- Implementation latitude: exact Lua file organization and whether project-local profiles are deleted or kept as thin overrides may be chosen during implementation, but the reason must be recorded. Project-specific values may remain in config or local overrides.
- Escalate if implementation requires broad Profile selector/registry redesign, embedding prompt/workflow prose into Profiles, weakening validation, or expanding role tool authority beyond the recorded policy.
- Validation: `cargo fmt`, manifest profile tests, client Ticket role tests if touched, `target/debug/yoi ticket doctor`, and `nix build .#yoi`.
---