feat(workspace): point planning guardrails at omo
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
} from "./validator"
|
||||
|
||||
const PROMETHEUS_REJECTION_MESSAGE =
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .sisyphus/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead."
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .omo/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead."
|
||||
|
||||
function createCategoryMember(name: string): Member {
|
||||
return {
|
||||
|
||||
@@ -136,7 +136,7 @@ describe("team-mode types", () => {
|
||||
],
|
||||
[
|
||||
"prometheus",
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .sisyphus/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead.",
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .omo/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead.",
|
||||
],
|
||||
] as const
|
||||
|
||||
@@ -286,7 +286,7 @@ describe("team-mode types", () => {
|
||||
"Agent 'momus' is read-only (plan reviewer). Cannot write to mailbox as team member. Use delegate-task for plan review instead.",
|
||||
)
|
||||
expect(AGENT_ELIGIBILITY_REGISTRY.prometheus.rejectionMessage).toBe(
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .sisyphus/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead.",
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .omo/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead.",
|
||||
)
|
||||
expect(CategoryMemberSchema).toBeDefined()
|
||||
expect(SubagentMemberSchema).toBeDefined()
|
||||
|
||||
@@ -229,7 +229,7 @@ export const AGENT_ELIGIBILITY_REGISTRY: Readonly<Record<string, {
|
||||
prometheus: {
|
||||
verdict: "hard-reject",
|
||||
rejectionMessage:
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .sisyphus/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead.",
|
||||
"Agent 'prometheus' is plan-mode-only; can only write to .omo/*.md (enforced by prometheusMdOnly hook). Cannot write to team mailbox. Use category: 'plan' instead.",
|
||||
},
|
||||
"sisyphus-junior": { verdict: "eligible" },
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user