feat: move profile scope to launch policy

This commit is contained in:
2026-06-14 15:52:59 +09:00
parent cdb12af997
commit 21bf009a3f
10 changed files with 279 additions and 56 deletions
-1
View File
@@ -2,7 +2,6 @@ local p = yoi.profile.import("builtin:default")
p.slug = "coder"
p.description = "Coder role profile with bundled reusable policy"
p.scope = yoi.scope.workspace_write()
p.worker.instruction = "$yoi/role/coder"
p.feature = {
task = { enabled = true },
-3
View File
@@ -2,9 +2,6 @@ local p = yoi.profile.import("builtin:default")
p.slug = "companion"
p.description = "Companion role profile with bundled reusable policy"
p.scope = yoi.scope.workspace_write({
deny_write = { ".worktree" },
})
p.feature = {
task = { enabled = true },
memory = { enabled = true },
-1
View File
@@ -2,7 +2,6 @@ return yoi.profile {
slug = "default",
description = "Default Yoi coding profile",
scope = yoi.scope.workspace_write(),
session = {
record_event_trace = true,
-1
View File
@@ -2,7 +2,6 @@ local p = yoi.profile.import("builtin:default")
p.slug = "intake"
p.description = "Intake role profile with bundled reusable policy"
p.scope = yoi.scope.workspace_read()
p.worker.instruction = "$yoi/role/intake"
p.feature = {
task = { enabled = false },
-2
View File
@@ -2,7 +2,6 @@ local p = yoi.profile.import("builtin:default")
p.slug = "orchestrator"
p.description = "Orchestrator role profile with bundled reusable policy"
p.scope = "workspace_read"
p.worker.instruction = "$yoi/role/orchestrator"
p.feature = {
task = { enabled = false },
@@ -12,6 +11,5 @@ p.feature = {
ticket = { enabled = true, access = "lifecycle" },
ticket_orchestration = { enabled = true },
}
p.delegation_scope = "workspace_write"
return p
-1
View File
@@ -2,7 +2,6 @@ local p = yoi.profile.import("builtin:default")
p.slug = "reviewer"
p.description = "Reviewer role profile with bundled reusable policy"
p.scope = yoi.scope.workspace_read()
p.worker.instruction = "$yoi/role/reviewer"
p.feature = {
task = { enabled = false },