fix(builtin-commands): pin hyperplan roster contract
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
import { afterEach, beforeEach, describe, test, expect } from "bun:test"
|
import { afterEach, beforeEach, describe, test, expect } from "bun:test"
|
||||||
import { loadBuiltinCommands } from "./commands"
|
import { loadBuiltinCommands } from "./commands"
|
||||||
import { HANDOFF_TEMPLATE } from "./templates/handoff"
|
import { HANDOFF_TEMPLATE } from "./templates/handoff"
|
||||||
|
import { HYPERPLAN_TEMPLATE } from "./templates/hyperplan"
|
||||||
import { REFACTOR_TEMPLATE, REFACTOR_TEAM_MODE_ADDENDUM } from "./templates/refactor"
|
import { REFACTOR_TEMPLATE, REFACTOR_TEAM_MODE_ADDENDUM } from "./templates/refactor"
|
||||||
import { REMOVE_AI_SLOPS_TEMPLATE, REMOVE_AI_SLOPS_TEAM_MODE_ADDENDUM } from "./templates/remove-ai-slops"
|
import { REMOVE_AI_SLOPS_TEMPLATE, REMOVE_AI_SLOPS_TEAM_MODE_ADDENDUM } from "./templates/remove-ai-slops"
|
||||||
import type { BuiltinCommandName } from "./types"
|
import type { BuiltinCommandName } from "./types"
|
||||||
@@ -104,6 +105,28 @@ describe("loadBuiltinCommands", () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe("HYPERPLAN_TEMPLATE", () => {
|
||||||
|
test("should hard-code the adversarial team categories for slash command execution", () => {
|
||||||
|
//#given - the slash command template owns /hyperplan execution context
|
||||||
|
|
||||||
|
//#when / #then
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("unspecified-low")
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("unspecified-high")
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("artistry")
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("ultrabrain")
|
||||||
|
})
|
||||||
|
|
||||||
|
test("should make deep conditional instead of requiring it unconditionally", () => {
|
||||||
|
//#given - deep may be disabled by user category config
|
||||||
|
|
||||||
|
//#when / #then
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("deep")
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("only if")
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("enabled")
|
||||||
|
expect(HYPERPLAN_TEMPLATE).toContain("retry")
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe("loadBuiltinCommands - remove-ai-slops", () => {
|
describe("loadBuiltinCommands - remove-ai-slops", () => {
|
||||||
test("should include remove-ai-slops command in loaded commands", () => {
|
test("should include remove-ai-slops command in loaded commands", () => {
|
||||||
//#given
|
//#given
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ LOAD THE HYPERPLAN SKILL IMMEDIATELY:
|
|||||||
skill(name="hyperplan")
|
skill(name="hyperplan")
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
After loading the skill, follow its 7-phase workflow EXACTLY using this user request:
|
After loading the skill, follow its 7-phase workflow EXACTLY using this user request.
|
||||||
|
|
||||||
|
Roster contract: call \`team_create\` with category members \`unspecified-low\`, \`unspecified-high\`, \`ultrabrain\`, and \`artistry\`. Include \`deep\` only if the category is enabled; if \`deep\` is disabled or unavailable, retry without only that member and state the degraded roster.
|
||||||
|
|
||||||
<user-request>
|
<user-request>
|
||||||
$ARGUMENTS
|
$ARGUMENTS
|
||||||
|
|||||||
Reference in New Issue
Block a user