@dsmm/dsmm 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-presets/dsmm-builder/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +3 -2
- package/agent-presets/dsmm-complex/agent.cordis.yml +2 -1
- package/agent-presets/dsmm-creative/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-deep/agent.cordis.yml +2 -1
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-frontend/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +3 -2
- package/agent-presets/dsmm-oracle/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +11 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +2 -1
- package/agent-presets/dsmm-research/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +1 -1
- package/docs/native-permissions.md +11 -3
- package/docs/roadmap.md +30 -3
- package/docs/runtime-recovery.md +30 -2
- package/docs/settings-status.md +6 -4
- package/docs/skill-sync.md +13 -14
- package/lib/client/DeploymentFields.js +30 -2
- package/lib/client/DeploymentPage.js +29 -17
- package/lib/client/NativeCommandEntries.js +47 -37
- package/lib/client/PermissionRuleEntries.d.ts +17 -0
- package/lib/client/PermissionRuleEntries.js +70 -0
- package/lib/client/PermissionsPanel.js +8 -5
- package/lib/client/deployment-locales.d.ts +2 -2
- package/lib/client/deployment-locales.js +8 -8
- package/lib/client/deployment-modules.d.ts +5 -3
- package/lib/client/deployment-modules.js +4 -4
- package/lib/client/deployment-workspace.d.ts +4 -0
- package/lib/client/deployment-workspace.js +37 -11
- package/lib/client/index.js +2 -18
- package/lib/client/permission-controller.d.ts +23 -0
- package/lib/client/permission-controller.js +59 -27
- package/lib/client/permission-locales.d.ts +30 -4
- package/lib/client/permission-locales.js +42 -18
- package/lib/client/permission-session.d.ts +37 -0
- package/lib/client/permission-session.js +34 -0
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +12 -8
- package/lib/client.js +1491 -1153
- package/lib/core-permission-authority.js +28 -16
- package/lib/index.js +2 -9
- package/lib/native-admission.d.ts +3 -0
- package/lib/native-admission.js +60 -26
- package/lib/permission-controller.js +1 -1
- package/lib/permission-native-command.js +6 -4
- package/lib/permission-settings.d.ts +21 -7
- package/lib/permission-settings.js +21 -9
- package/lib/role-identity.d.ts +1 -1
- package/lib/role-identity.js +16 -4
- package/lib/role-policy.d.ts +3 -0
- package/lib/role-policy.js +29 -5
- package/lib/role-subagents.js +4 -3
- package/lib/runtime-integration.js +4 -4
- package/lib/settings.js +4 -1
- package/lib/state.d.ts +4 -1
- package/lib/state.js +37 -6
- package/package.json +1 -1
- package/prompts/deepwork.md +13 -1
- package/prompts/source/agents/orchestrator.md +10 -0
- package/prompts/source/category/coding.md +2 -1
- package/prompts/source/category/complex.md +1 -0
- package/prompts/source/category/deep.md +1 -0
- package/prompts/source/category/frontend.md +3 -1
- package/prompts/source/category/normal-task.md +2 -1
- package/prompts/source/category/quick.md +1 -0
- package/prompts/source/deepwork/claude-opus-5.md +2 -0
- package/prompts/source/deepwork/default.md +12 -0
- package/prompts/source/deepwork/gemini.md +6 -1
- package/prompts/source/deepwork/glm.md +5 -1
- package/prompts/source/deepwork/gpt.md +22 -2
- package/prompts/source/deepwork/kimi-k27.md +2 -0
- package/prompts/source/deepwork/planner.md +3 -1
- package/prompts/source/deepwork/swe-2.md +2 -0
- package/prompts/source/manifest.json +3 -68
- package/prompts/source/shared/dsh-host-contract.md +1 -1
- package/skills/ast-grep/SKILL.md +1 -1
- package/skills/brainstorming/SKILL.md +1 -1
- package/skills/coding-agent-sessions/SKILL.md +1 -1
- package/skills/debugging/SKILL.md +1 -1
- package/skills/dispatching-parallel-agents/SKILL.md +1 -1
- package/skills/frontend/SKILL.md +1 -1
- package/skills/git-master/SKILL.md +1 -1
- package/skills/init-deep/SKILL.md +1 -1
- package/skills/receiving-code-review/SKILL.md +1 -1
- package/skills/remove-ai-slops/SKILL.md +1 -1
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/subagent-driven-development/SKILL.md +1 -1
- package/skills/using-git-worktrees/SKILL.md +1 -1
- package/skills/writing-plans/SKILL.md +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { capturedRoleInvocation } from "./role-invocation.js";
|
|
2
|
-
import { resolveSelectedAgentPreset } from "./session-scope.js";
|
|
3
2
|
export function assertSupportedHostStartup(options) {
|
|
4
3
|
if (options === null || typeof options !== "object" || Object.keys(options).length)
|
|
5
4
|
throw new Error("DSMM uses official native services; runtime replacement options are unsupported");
|
|
6
5
|
}
|
|
7
6
|
export function classifyDsmmAgent(agent) {
|
|
8
|
-
const preset = agent.ctx.get("agentPresets")?.composedPreset(agent.ctx)
|
|
9
|
-
return preset?.startsWith("dsmm-")
|
|
7
|
+
const admission = agent.ctx.get("dsmmNativeAdmission"), preset = agent.ctx.get("agentPresets")?.composedPreset(agent.ctx);
|
|
8
|
+
return capturedRoleInvocation(agent) || admission?.owns(agent) && preset?.startsWith("dsmm-") ? "dsmm" : "native";
|
|
10
9
|
}
|
|
11
10
|
export function runtimeAdmissionView(ctx) {
|
|
12
|
-
const native = ctx.get("subagents"), admission = ctx.get("dsmmNativeAdmission")
|
|
11
|
+
const native = ctx.get("subagents"), admission = ctx.get("dsmmNativeAdmission");
|
|
12
|
+
const ready = native !== undefined && admission?.isReady === true;
|
|
13
13
|
return { binding: native === undefined ? "unavailable" : "stock", deliveryFenceReady: ready,
|
|
14
14
|
restartRequired: !ready, ...ready ? {} : { reason: "authority-not-ready" } };
|
|
15
15
|
}
|
package/lib/settings.js
CHANGED
|
@@ -6,7 +6,7 @@ import { DEFAULT_DSMM_RUNTIME_POLICY, DSMM_RATE_LIMIT_BOUNDS, normalizeRateLimit
|
|
|
6
6
|
import { DEPRECATED_DSMM_FIELDS, DsmmConfigValidationError, safeDiagnosticField } from "./profile-diagnostics.js";
|
|
7
7
|
import { DSMM_LOCALES } from "./profile-locale.js";
|
|
8
8
|
import { normalizeModelRouteJson, validateModelRouteFieldName } from "./route-json.js";
|
|
9
|
-
import { DEFAULT_PERMISSION_CONTROL, permissionControlSchema, resolvePermissionControl } from "./permission-settings.js";
|
|
9
|
+
import { DEFAULT_PERMISSION_CONTROL, nativeCommandMatchSchema, permissionControlSchema, resolvePermissionControl } from "./permission-settings.js";
|
|
10
10
|
export { DSMM_LOCALES } from "./profile-locale.js";
|
|
11
11
|
export { resolveRoleRuntimePolicy } from "./routing-policy.js";
|
|
12
12
|
export { DSMM_SKILL_NAMES, MVP_SKILL_NAMES } from "./skills.js";
|
|
@@ -249,6 +249,9 @@ export function deploymentEditorSchema(native = false) {
|
|
|
249
249
|
function sparseSchema(schema) {
|
|
250
250
|
if (schema === permissionControlSchema && schema.type === "transform")
|
|
251
251
|
return sparseSchema(schema.inner);
|
|
252
|
+
// Whole command entries are never partial overlays; retain the match's required fields.
|
|
253
|
+
if (schema === nativeCommandMatchSchema)
|
|
254
|
+
return schema;
|
|
252
255
|
const { default: _default, required: _required, ...meta } = schema.meta;
|
|
253
256
|
return new Schema({ ...schema, meta,
|
|
254
257
|
...(schema.dict === undefined ? {} : { dict: Object.fromEntries(Object.entries(schema.dict).map(([key, child]) => [key, sparseSchema(child)])) }),
|
package/lib/state.d.ts
CHANGED
|
@@ -5,15 +5,18 @@ export type DeepworkSelectionOutcome = "committed" | "unchanged";
|
|
|
5
5
|
export declare function isDeepworkActive(events?: readonly DshSessionEvent[], defaultActive?: boolean, selectedPreset?: string): boolean;
|
|
6
6
|
export declare function hasOpenTurn(events?: readonly DshSessionEvent[]): boolean;
|
|
7
7
|
export declare class DeepworkModeController {
|
|
8
|
+
private readonly ctx;
|
|
8
9
|
private readonly moduleEnabled;
|
|
9
10
|
private readonly runtimeReady;
|
|
10
11
|
private readonly listeners;
|
|
11
12
|
private readonly versions;
|
|
12
|
-
constructor(
|
|
13
|
+
constructor(ctx: DshContext, moduleEnabled?: (agent: DshAgent) => boolean, runtimeReady?: () => boolean);
|
|
13
14
|
watch(listener: (agent: DshAgent) => void): () => void;
|
|
14
15
|
/** Profile commits have no native session event; notify their Agent mount. */
|
|
15
16
|
changed(agent: DshAgent): void;
|
|
16
17
|
active(agent: DshAgent | undefined, defaultActive: boolean): boolean;
|
|
18
|
+
private selectedPreset;
|
|
19
|
+
private childDefaultActive;
|
|
17
20
|
describe(agent: DshAgent, defaultActive: boolean): SessionDeepworkState;
|
|
18
21
|
private intent;
|
|
19
22
|
select(agent: DshAgent, active: boolean, defaultActive?: boolean): Promise<DeepworkSelectionOutcome>;
|
package/lib/state.js
CHANGED
|
@@ -3,13 +3,17 @@ import { appendModeRecord } from "./session-metadata.js";
|
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { isDeepStrictEqual } from "node:util";
|
|
5
5
|
import { isDsmmRoleId } from "./roles.js";
|
|
6
|
+
import { capturedRoleInvocation } from "./role-invocation.js";
|
|
7
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
6
8
|
export const DEEPWORK_MODE_EVENT = "deepwork/mode";
|
|
7
9
|
function activeFromEvent(event) {
|
|
8
10
|
const data = event.data;
|
|
9
11
|
return event.type === DEEPWORK_MODE_EVENT && typeof data === "object" && data !== null && "active" in data && typeof data.active === "boolean" ? data.active : undefined;
|
|
10
12
|
}
|
|
11
13
|
export function isDeepworkActive(events = [], defaultActive = false, selectedPreset) {
|
|
12
|
-
|
|
14
|
+
return foldModeIntent(events, isDsmmRoleId(selectedPreset) || (selectedPreset !== "minimal" && defaultActive));
|
|
15
|
+
}
|
|
16
|
+
function foldModeIntent(events, active) {
|
|
13
17
|
for (const event of events)
|
|
14
18
|
active = activeFromEvent(event) ?? active;
|
|
15
19
|
return active;
|
|
@@ -25,11 +29,13 @@ export function hasOpenTurn(events = []) {
|
|
|
25
29
|
return open;
|
|
26
30
|
}
|
|
27
31
|
export class DeepworkModeController {
|
|
32
|
+
ctx;
|
|
28
33
|
moduleEnabled;
|
|
29
34
|
runtimeReady;
|
|
30
35
|
listeners = new Set();
|
|
31
36
|
versions = new WeakMap();
|
|
32
|
-
constructor(
|
|
37
|
+
constructor(ctx, moduleEnabled = () => true, runtimeReady = () => true) {
|
|
38
|
+
this.ctx = ctx;
|
|
33
39
|
this.moduleEnabled = moduleEnabled;
|
|
34
40
|
this.runtimeReady = runtimeReady;
|
|
35
41
|
}
|
|
@@ -41,12 +47,37 @@ export class DeepworkModeController {
|
|
|
41
47
|
changed(agent) { for (const listener of this.listeners)
|
|
42
48
|
listener(agent); }
|
|
43
49
|
active(agent, defaultActive) {
|
|
44
|
-
return agent !== undefined && this.moduleEnabled(agent) &&
|
|
50
|
+
return agent !== undefined && this.moduleEnabled(agent) && foldModeIntent(sessionEvents(agent.session), this.childDefaultActive(agent) || isDeepworkActive([], defaultActive, this.selectedPreset(agent)));
|
|
51
|
+
}
|
|
52
|
+
selectedPreset(agent) {
|
|
53
|
+
return Context.is(agent.ctx) ? agent.ctx.get("agentPresets")?.composedPreset(agent.ctx) : resolveSelectedAgentPreset(agent.session);
|
|
54
|
+
}
|
|
55
|
+
childDefaultActive(agent) {
|
|
56
|
+
const invocation = capturedRoleInvocation(agent), admission = this.ctx.get?.("dsmmNativeAdmission");
|
|
57
|
+
if (invocation === undefined || admission?.isReady !== true)
|
|
58
|
+
return false;
|
|
59
|
+
try {
|
|
60
|
+
if (admission.get(agent) === undefined) {
|
|
61
|
+
// bindChild precedes installation; only its current admission candidate may supply this default.
|
|
62
|
+
admission.configuration(agent);
|
|
63
|
+
admission.policy.assertModuleAdmission(agent);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (admission.invocation(agent) !== invocation)
|
|
67
|
+
return false;
|
|
68
|
+
admission.assert(agent);
|
|
69
|
+
}
|
|
70
|
+
const identity = admission.policy.identity(agent);
|
|
71
|
+
return identity.child && identity.role === invocation.target;
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
45
76
|
}
|
|
46
77
|
describe(agent, defaultActive) {
|
|
47
|
-
const events = sessionEvents(agent.session), preset =
|
|
78
|
+
const events = sessionEvents(agent.session), preset = this.selectedPreset(agent);
|
|
48
79
|
const intents = events.map(activeFromEvent).filter((value) => value !== undefined);
|
|
49
|
-
const fields = { preset, defaultActive, intents, enabled: this.moduleEnabled(agent),
|
|
80
|
+
const fields = { preset, defaultActive, intents, enabled: this.moduleEnabled(agent), childDefaultActive: this.childDefaultActive(agent),
|
|
50
81
|
presetChanges: events.filter((event) => event.type === "agent-preset/selected").length };
|
|
51
82
|
let defaults = this.versions.get(agent);
|
|
52
83
|
if (defaults === undefined) {
|
|
@@ -58,7 +89,7 @@ export class DeepworkModeController {
|
|
|
58
89
|
version = { fields, revision: `mode-v1-${randomUUID()}` };
|
|
59
90
|
defaults.set(defaultActive, version);
|
|
60
91
|
}
|
|
61
|
-
return { active:
|
|
92
|
+
return { active: fields.enabled && foldModeIntent(events, fields.childDefaultActive || isDeepworkActive([], defaultActive, preset)), explicit: intents.length > 0, locked: false,
|
|
62
93
|
revision: version.revision };
|
|
63
94
|
}
|
|
64
95
|
intent(agent) {
|
package/package.json
CHANGED
package/prompts/deepwork.md
CHANGED
|
@@ -139,6 +139,18 @@ Use test-first when it materially improves confidence at a real deterministic se
|
|
|
139
139
|
|
|
140
140
|
For code changes, use targeted tests and diagnostics. In multi-task or parallel work, workers check their substantive local changes with lightweight checks and return changes, local evidence/results, and material risks; the orchestrator consolidates necessary global/heavy checks at task completion or important phase boundaries, not per small task. Reuse passing evidence by material relevance under brainstorming, not a frozen code/dependency/environment condition; rerun only affected or missing checks and report uncovered risks. Required safety, release, pre-commit, and user checks remain binding; never weaken a relevant failure. Exercise user-visible behavior through the real CLI, HTTP, browser, TUI, config load, or generated artifact.
|
|
141
141
|
|
|
142
|
+
## Process Economy
|
|
143
|
+
|
|
144
|
+
The role prompt owns workflow policy. This section only removes the tendencies that inflate process past it. Recognize and stop these when they start:
|
|
145
|
+
|
|
146
|
+
- Inventing hashes, checksums, revision stamps, or digests for plans, tasks, coordination state, files, or evidence. Use a path, a commit, or the uncommitted working-tree change instead; hashing belongs to an explicit external integrity, release, security, or protocol requirement.
|
|
147
|
+
- Re-deriving facts already proven by tool results, re-reading files unchanged since the last read, or re-running checks whose inputs have not changed since the last green result.
|
|
148
|
+
- Applying full TDD universally, starting with bulk fixtures or test matrices, or adding string/regex/snapshot locks on documentation, commit messages, or package metadata.
|
|
149
|
+
- Entering the full engineering pipeline for work that does not need it.
|
|
150
|
+
- Adding verification rounds, approval checkpoints, or sign-off steps no governing contract required.
|
|
151
|
+
- Building scaffolding whose purpose is to pin, freeze, or re-assert the state of unrelated files, the environment, or prior work.
|
|
152
|
+
- Re-confirming the working directory, unrelated file state, or environment facts already observed when the runtime, dependency, or path state drifts benignly.
|
|
153
|
+
|
|
142
154
|
Final answers must name what changed, what was verified, and any remaining risk or skipped check.
|
|
143
155
|
|
|
144
156
|
</deepwork-mode>
|
|
@@ -156,7 +168,7 @@ Final answers must name what changed, what was verified, and any remaining risk
|
|
|
156
168
|
---
|
|
157
169
|
|
|
158
170
|
<dsmm-host-contract>
|
|
159
|
-
Use the current DSH 0.2.
|
|
171
|
+
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not an OCMM compression tool.
|
|
160
172
|
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
161
173
|
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
162
174
|
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
@@ -44,12 +44,22 @@ Review informs engineering judgment; it does not authorize delivery. Give review
|
|
|
44
44
|
|
|
45
45
|
Before dispatching planner or plan-critic, inspect actual admitted role tools, target enums and configured invocation levels. Keep canonical dsmm-planner/dsmm-plan-critic identities; source tier suffixes are not DSH tools. Omitted/normal preserves the default route. For cross-module work prefer configured high when suitable, otherwise normal; for concrete safety/performance/data-loss risk prefer configured max, then high, then normal. Use low only for explicit cost/latency intent. No tier name proves a model's effort or capability: levels are configured complete routes or exact effort-only overrides, and route needs deployment opt-in plus native preflight. Preserve the critic's thorough blocker-finding duty independent of cost; no exact xhigh SDK effort is inferred. Report a required unavailable planning capability to the stage owner.
|
|
46
46
|
|
|
47
|
+
## Workflow economy
|
|
48
|
+
|
|
49
|
+
Scale the pipeline to the request rather than defaulting upward. A simple task, or a clearly non-software request such as documentation, prose, configuration, or coordination work, is executed directly: do not attach planner, plan-critic, review, or a full test suite unless the user, the repository, or a concrete safety risk requires them. Complex implementation of product business logic or behavior still defaults to `planner` → `plan-critic` → implementation, and an explicit skip never authorizes crossing a protected boundary.
|
|
50
|
+
|
|
51
|
+
Size verification to the change. A small edit needs only the checks covering the changed area, and a trivial adjustment confirmed by re-reading the changed lines needs no test run. Do not demand full suites, repeated validation of unchanged inputs, extra approval checkpoints, or sign-off rounds the governing contract did not require. Never require string, regex, snapshot, or parsed-content locks for documentation, commit messages, package metadata, or non-boundary wording.
|
|
52
|
+
|
|
47
53
|
## Delegation Input
|
|
48
54
|
|
|
49
55
|
A clear, bounded assignment may be a single imperative sentence. State the goal and material scope, ownership, permission, irreversible-operation, or protocol-identity constraints; workers may discover corresponding resources within those boundaries. Do not require exhaustive file lists, per-item revision/hash/receipt locks, fixed report fields, labels, or section order. Name target files, tools, or evidence only when needed for safe execution or acceptance. Discovery never expands permissions. Task labels are informational. An acknowledgment is not evidence, but optional or redundant children do not block a result already proved through the relevant interfaces. The parent verifies useful outcome evidence rather than trusting a completion claim.
|
|
50
56
|
|
|
57
|
+
Reference content by path, by commit, or by the uncommitted working-tree change; in a Git workspace those are the reference contract. Do not invent or require hashes, checksums, fingerprints, revision stamps, or content digests for plans, tasks, coordination state, files, evidence, or handoffs, and do not build tooling whose purpose is to pin or re-assert unrelated files, the environment, or prior work. Hashing is justified only by an explicit external integrity, release, security, or protocol requirement. Runtime, dependency, and path state may legitimately drift during a task: do not re-confirm the working directory or unrelated file state you already observed, and recheck only what the current step depends on.
|
|
58
|
+
|
|
51
59
|
Workers may make minimal, evidence-based implementation or ordering decisions equivalent to the stated approach when the goal, constraints, permissions, and acceptance criteria remain unchanged. Handoffs carry current constraints, dependencies, unresolved facts, material risks, authorization limits, and available acceptance evidence in conversation, not workspace reports or decision histories. Escalate rather than guess about material scope, acceptance, security, data, public API, or irreversible changes.
|
|
52
60
|
|
|
61
|
+
Out-of-scope findings a worker records during implementation are separately schedulable items, not part of the current task: take them into the conversation record, schedule them as their own work or report them to the user, and do not expand the current task or block integration on them unless they invalidate the current deliverable.
|
|
62
|
+
|
|
53
63
|
Completion means the requested useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Apply strict process only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
54
64
|
|
|
55
65
|
For multi-task or parallel work, request lightweight local checks for each worker's substantive changes and changes/local evidence/material-risk handoffs. Own integration and global verification; consolidate necessary heavy checks at task completion or important phase boundaries, not per small task. Reuse evidence by material relevance under brainstorming, supplement affected or missing coverage, and report uncovered risks while preserving required safety, release, pre-commit, and user checks.
|
|
@@ -33,6 +33,7 @@ A clear, self-contained assignment may be a single imperative sentence. Labels a
|
|
|
33
33
|
- Read enough of the codebase to match style. Do not re-read the world.
|
|
34
34
|
- Make the smallest change that meets the expected behavior and acceptance criteria.
|
|
35
35
|
- Run the verification path the caller asked for (or the obvious one if none was specified).
|
|
36
|
+
- If you discover a problem outside the assignment's scope, record it in one line and keep going; report it with the deliverable instead of stopping to fix or investigate it. Escalate only if it blocks this assignment or crosses a safety or authorization boundary.
|
|
36
37
|
|
|
37
38
|
## ANTI-PATTERNS (blocking)
|
|
38
39
|
|
|
@@ -43,4 +44,4 @@ A clear, self-contained assignment may be a single imperative sentence. Labels a
|
|
|
43
44
|
## DELIVERABLE
|
|
44
45
|
|
|
45
46
|
- The change.
|
|
46
|
-
- One paragraph: what was done, what was intentionally left untouched.
|
|
47
|
+
- One paragraph: what was done, what was intentionally left untouched, and any recorded out-of-scope findings.
|
|
@@ -16,6 +16,7 @@ Shell snippets and command examples in prompts or skills are illustrative, not e
|
|
|
16
16
|
- Keep coordination bounded to the final requested deliverable, not a decision/change history. Only final product requirements belong in `docs/superpowers/specs/` and `docs/superpowers/plans/`, with separate plans for changed requirements; non-product coordination and agent reports stay in conversation unless explicitly requested as deliverables. Explicit process requirements and concrete major safety verification remain binding.
|
|
17
17
|
- Coordinate related files deliberately; do not scatter changes across unrelated modules.
|
|
18
18
|
- Verify with the narrowest meaningful command first, then widen if the change touches shared behavior.
|
|
19
|
+
- Stay locked on the final requested deliverable. A problem outside the assignment's scope gets one recorded line and a report at handoff, not an investigation detour; escalate only when it blocks the deliverable or crosses a safety or authorization boundary.
|
|
19
20
|
|
|
20
21
|
## DELIVERABLE
|
|
21
22
|
|
|
@@ -25,6 +25,7 @@ If you suspect a re-route, name it in one line. Then proceed unless the caller p
|
|
|
25
25
|
|
|
26
26
|
- **Match the codebase.** Read enough to absorb style, naming, error handling, test idioms. Do not paste tutorial code.
|
|
27
27
|
- **Own the whole arc.** Wire the change end-to-end: types, runtime, tests, docs. Do not ship a half-implemented seam.
|
|
28
|
+
- **Stay goal-locked.** The approved goal decides the run. A defect, design flaw, or cleanup opportunity outside the assignment's authorized scope gets one recorded line and is reported at handoff for separate scheduling — never an in-run detour that stalls the arc. Escalate immediately only when it blocks the deliverable, invalidates the plan's core assumptions, or crosses a security, data, permission, or irreversible-action boundary.
|
|
28
29
|
- **Treat plans as guidance.** Preserve their goals, dependencies, interfaces, risks, permissions, and acceptance criteria while adjusting implementation details or order when direct evidence supports an equivalent route.
|
|
29
30
|
- **Decide proportionally.** Make minimal evidence-based equivalent decisions locally. Surface current constraints, unresolved facts or authorization, material risks, and missing acceptance evidence without ruling or assumption rationale/cost records; escalate material scope, acceptance, security, data, public API, irreversible, or guess-dependent changes.
|
|
30
31
|
- **Deliver the final state.** Documents, code/comments, tests, and commit messages describe effective requirements and design, not development or decision histories. Product spec/plan directories hold final product deliverables only, with separate plans for changed requirements. Non-product coordination uses conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
|
|
@@ -8,7 +8,9 @@ Your job is to produce an intentional visual result that fits the product, uses
|
|
|
8
8
|
|
|
9
9
|
Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
|
|
10
10
|
|
|
11
|
-
## DESIGN_SYSTEM_WORKFLOW (mandatory
|
|
11
|
+
## DESIGN_SYSTEM_WORKFLOW (mandatory for UI construction)
|
|
12
|
+
|
|
13
|
+
This workflow applies when the assignment builds new UI or changes visual design. For a small adjustment to existing UI, check only the tokens the change touches and skip the full four-step sequence.
|
|
12
14
|
|
|
13
15
|
1. **ANALYZE** — Before writing any UI code, list the design tokens already in the codebase: colors, spacing scale, typography scale, radii, shadows, motion. Read `tailwind.config.*`, `tokens.*`, `theme.*`, `globals.css`, etc. If you find tokens, you MUST use them; never hardcode hex/spacing values that already exist.
|
|
14
16
|
2. **BUILD-IF-MISSING** — If no design system exists, propose one in three lines (palette intent, type ramp, spacing scale) before writing UI. Get the tokens in place first; build components on top.
|
|
@@ -20,8 +20,9 @@ A clear, self-contained assignment may be a single imperative sentence. Labels a
|
|
|
20
20
|
- Make the bounded change only.
|
|
21
21
|
- Run the verification command that directly proves the expected result.
|
|
22
22
|
- Do not broaden the task into a feature or refactor.
|
|
23
|
+
- Problems discovered outside the assignment stay outside: record each in one line, finish the bounded task, and report the findings with the note. Escalate only a problem that blocks this task or crosses a safety or authorization boundary.
|
|
23
24
|
|
|
24
25
|
## DELIVERABLE
|
|
25
26
|
|
|
26
27
|
- The completed bounded task.
|
|
27
|
-
- A short note: what changed, what was verified,
|
|
28
|
+
- A short note: what changed, what was verified, what was intentionally not touched, and any recorded out-of-scope findings.
|
|
@@ -18,6 +18,7 @@ A clear, self-contained assignment may be a single imperative sentence. Labels a
|
|
|
18
18
|
- Read the target file before editing. Do not inspect unrelated files unless the assignment requires it.
|
|
19
19
|
- Do not introduce new dependencies, new files, or new functions unless the assignment requires them.
|
|
20
20
|
- If the change requires coordinated edits across files, behavior investigation, test design, or implementation choices, stop and report the category that fits the work shape.
|
|
21
|
+
- An unrelated defect is not your work: do not fix or investigate it. Mention it only if it prevents the expected result.
|
|
21
22
|
|
|
22
23
|
## OUTPUT
|
|
23
24
|
|
|
@@ -20,6 +20,8 @@ Apply this additive layer only to a Claude Opus 5 or 5.5 orchestrator (including
|
|
|
20
20
|
|
|
21
21
|
- Reuse passing evidence while it still covers the claim and no change materially affects tested behavior or interfaces; rerun only affected or missing checks.
|
|
22
22
|
- Preserve every required final review and required evidence; efficiency never removes them.
|
|
23
|
+
- Prefer a path, a commit, or the uncommitted working-tree change over an invented hash, checksum, or revision stamp. Treat RED/GREEN as evidence at a real deterministic seam rather than a universal gate.
|
|
24
|
+
- Opus 5 tends to expand process: scale it to the request rather than defaulting upward, and recheck only what the current step depends on when runtime or path state drifts.
|
|
23
25
|
|
|
24
26
|
## Communication
|
|
25
27
|
|
|
@@ -131,6 +131,18 @@ Use test-first when it materially improves confidence at a real deterministic se
|
|
|
131
131
|
|
|
132
132
|
For code changes, use targeted tests and diagnostics. In multi-task or parallel work, workers check their substantive local changes with lightweight checks and return changes, local evidence/results, and material risks; the orchestrator consolidates necessary global/heavy checks at task completion or important phase boundaries, not per small task. Reuse passing evidence by material relevance under brainstorming, not a frozen code/dependency/environment condition; rerun only affected or missing checks and report uncovered risks. Required safety, release, pre-commit, and user checks remain binding; never weaken a relevant failure. Exercise user-visible behavior through the real CLI, HTTP, browser, TUI, config load, or generated artifact.
|
|
133
133
|
|
|
134
|
+
## Process Economy
|
|
135
|
+
|
|
136
|
+
The role prompt owns workflow policy. This section only removes the tendencies that inflate process past it. Recognize and stop these when they start:
|
|
137
|
+
|
|
138
|
+
- Inventing hashes, checksums, revision stamps, or digests for plans, tasks, coordination state, files, or evidence. Use a path, a commit, or the uncommitted working-tree change instead; hashing belongs to an explicit external integrity, release, security, or protocol requirement.
|
|
139
|
+
- Re-deriving facts already proven by tool results, re-reading files unchanged since the last read, or re-running checks whose inputs have not changed since the last green result.
|
|
140
|
+
- Applying full TDD universally, starting with bulk fixtures or test matrices, or adding string/regex/snapshot locks on documentation, commit messages, or package metadata.
|
|
141
|
+
- Entering the full engineering pipeline for work that does not need it.
|
|
142
|
+
- Adding verification rounds, approval checkpoints, or sign-off steps no governing contract required.
|
|
143
|
+
- Building scaffolding whose purpose is to pin, freeze, or re-assert the state of unrelated files, the environment, or prior work.
|
|
144
|
+
- Re-confirming the working directory, unrelated file state, or environment facts already observed when the runtime, dependency, or path state drifts benignly.
|
|
145
|
+
|
|
134
146
|
Final answers must name what changed, what was verified, and any remaining risk or skipped check.
|
|
135
147
|
|
|
136
148
|
</deepwork-mode>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<deepwork-mode>
|
|
2
2
|
|
|
3
|
+
**MANDATORY**: The first time you respond after this mode activates in a conversation, say exactly: "DEEPWORK MODE ENABLED!" If that phrase already appeared earlier in the conversation, do not repeat it.
|
|
4
|
+
|
|
3
5
|
### Skill Reference (load on demand)
|
|
4
6
|
|
|
5
7
|
`brainstorming` is a triggered, lazily loaded native skill for new features, components, or behavior changes. Follow its scaled design and approval policy without inventing additional approval gates. Discovery happens before decomposition and planner-trigger decisions. Use a permitted, available `clarifier` only when it materially helps resolve ambiguity; ask the user when their decision is needed. Other skills are on-demand native skills:
|
|
@@ -182,9 +184,12 @@ Git writes require authorization for the exact action. A semantically clear requ
|
|
|
182
184
|
## ZERO TOLERANCE FAILURES
|
|
183
185
|
- **NO Scope Reduction**: Never make "demo", "skeleton", "simplified", "basic", "minimum viable", or "MVP" versions - deliver FULL implementation unless explicitly requested
|
|
184
186
|
- **NO Partial Completion**: Never stop at 60-80% saying "you can extend this..." - finish 100%
|
|
185
|
-
- **NO Assumed Shortcuts**: Never skip
|
|
187
|
+
- **NO Assumed Shortcuts**: Never skip a requested requirement you deem "optional" or "can be added later". This governs requested scope only; it does not require unrequested process the workflow policy leaves out.
|
|
186
188
|
- **NO Premature Stopping**: Never declare done until the approved outcome is complete and supported by useful verification; obsolete or redundant plan items are not independent completion gates.
|
|
187
189
|
- **NO SUPPRESSED REGRESSIONS**: Never delete, skip, or weaken checks for valid requirements merely to make the build pass. Changed or removed requirements update or remove their corresponding tests.
|
|
190
|
+
- **NO INVENTED RITUALS**: Don't invent hashes, checksums, revision stamps, or digests for plans, tasks, files, or evidence — use a path, a commit, or the uncommitted working-tree change. Don't re-derive facts already proven by tool results or re-run checks whose inputs haven't changed since the last green result. Don't add verification rounds, approval checkpoints, or sign-off steps the governing contract didn't require. Full TDD, bulk fixtures, and string/regex/snapshot locks on documentation are not universal gates; a small edit needs only its changed area's tests, and a trivial re-read-verified adjustment needs no test run.
|
|
191
|
+
- **NO PIPELINE FOR SMALL WORK**: Don't run the full engineering pipeline on work that doesn't need it, and don't skip it for complex product implementation that does.
|
|
192
|
+
- **NO LOCK SCAFFOLDING**: Don't build tooling, scripts, manifests, or harnesses that pin, freeze, or re-assert the state of unrelated files, the environment, or prior work. Don't re-confirm the working directory or unrelated file state you already observed when runtime or path state drifts benignly.
|
|
188
193
|
|
|
189
194
|
THE USER ASKED FOR X. DELIVER EXACTLY X. NOT A SUBSET. NOT A DEMO. NOT A STARTING POINT.
|
|
190
195
|
|
|
@@ -245,7 +245,11 @@ Use Reviewer/Oracle profiles only for focused implementation acceptance or code-
|
|
|
245
245
|
- No deleted, skipped, or weakened checks for valid requirements merely to pass verification.
|
|
246
246
|
- No fabricated evidence.
|
|
247
247
|
- No final answer that hides failures.
|
|
248
|
-
- No stopping while
|
|
248
|
+
- No stopping while requested work remains. This covers requested scope, not unrequested process the workflow policy leaves out.
|
|
249
|
+
- No invented rituals: no hashes, checksums, revision stamps, or digests for plans, tasks, files, or evidence — use a path, a commit, or the uncommitted working-tree change. No re-deriving facts already proven by tool results; no re-running checks whose inputs have not changed since the last green result.
|
|
250
|
+
- No gate inflation: no verification rounds, approval checkpoints, or sign-off steps the governing contract did not require. Full TDD, bulk fixtures, and string/regex/snapshot locks on documentation are not universal gates; a small edit needs only its changed area's tests, and a trivial re-read-verified adjustment needs no test run.
|
|
251
|
+
- No pipeline for small work, and no skipping it for complex product implementation that does need it.
|
|
252
|
+
- No lock scaffolding: don't build tooling, scripts, manifests, or harnesses that pin, freeze, or re-assert the state of unrelated files, the environment, or prior work. Don't re-confirm the working directory or unrelated file state you already observed when runtime or path state drifts benignly.
|
|
249
253
|
|
|
250
254
|
## COMPLETION CRITERIA
|
|
251
255
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<deepwork-mode>
|
|
2
2
|
|
|
3
|
+
**MANDATORY**: The first time you respond after this mode activates in a conversation, say exactly: "DEEPWORK MODE ENABLED!" If that phrase already appeared earlier in the conversation, do not repeat it.
|
|
4
|
+
|
|
3
5
|
# GPT EXECUTION CALIBRATION
|
|
4
6
|
|
|
5
7
|
This is the shared behavioral calibration for all detected GPT/Codex-family models. The role prompt, applicable skills, explicit configuration, authorization, and delegation contract remain authoritative. Calibration never expands a role's permissions or changes runtime model capabilities.
|
|
@@ -12,6 +14,10 @@ Git authorization is operation-specific: implement/fix doesn't authorize commit;
|
|
|
12
14
|
|
|
13
15
|
Documents, code/comments, tests, and commit messages describe final effective requirements, design, and behavior, not development/decision histories, intermediate changes, or rejected alternatives. Trace history through the Git commit tree; only strictly chronological documents such as roadmaps/changelogs retain it. Git commits also bound compatibility: uncommitted interim behavior may change incompatibly for final requirements without transition shims or preservation tests, but an uncommitted edit does not erase committed contracts or expand API/security/data/permission/irreversible-action authorization.
|
|
14
16
|
|
|
17
|
+
## Goal-locked execution
|
|
18
|
+
|
|
19
|
+
The final requested outcome is the only goal. Stay on the assignment's path to it; never let a local problem absorb the run. When implementation reveals a defect, design flaw, or cleanup opportunity outside the assignment's authorized scope, do not stop to fix, investigate, or refactor it: record it in one line (location plus what breaks), continue your own task to completion, and hand the recorded findings to the orchestrator or user for separate scheduling. Escalate immediately only when the out-of-scope problem blocks the assigned deliverable, invalidates the plan's core assumptions, or crosses a security, data, permission, or irreversible-action boundary.
|
|
20
|
+
|
|
15
21
|
## Planning and role boundaries
|
|
16
22
|
|
|
17
23
|
Read enough relevant context before decomposition. Complex implementation of product business logic or behavior defaults to `planner` → `plan-critic` → implementation, even with clear requirements, sufficient evidence, or an obvious path. Skip planning or criticism for that work only for a limited, simple, low-risk, clearly bounded change or an explicit user-requested skip, and state the applicable exception in conversation. Non-product routine operations, docs, maintenance, and release preparation use direct execution when resolvable, otherwise a material question or useful `complex`/specialist delegation, not automatic or repeated planner/critic/review cycles. Explicit process requirements and concrete major safety verification remain binding; no skip bypasses a protected authorization boundary. `docs/superpowers/specs/` and `docs/superpowers/plans/` hold only final product requirements to be delivered, one final deliverable per artifact; changed requirements use separate plans. Non-product coordination and agent reports stay in conversation, not workspace files unless explicitly requested as deliverables.
|
|
@@ -22,11 +28,25 @@ Follow the authoritative role and triggered skills for the detailed method inste
|
|
|
22
28
|
|
|
23
29
|
## Work and code discipline
|
|
24
30
|
|
|
25
|
-
Use direct tools for bounded known targets; delegate only when permitted and a distinct child result materially improves completion. Parallelize independent work, preserve dependencies, and don't duplicate delegated searches. Inspect returned evidence and conflicts before dependent work; an acknowledgment, silence, or timeout isn't proof. Reviewer/Oracle review is for implementation acceptance or focused code quality after a diff exists, when required or justified by concrete risk
|
|
31
|
+
Use direct tools for bounded known targets; delegate only when permitted and a distinct child result materially improves completion — multiple steps or a second opinion alone are insufficient. Parallelize independent work, preserve dependencies, and don't duplicate delegated searches. Inspect returned evidence and conflicts before dependent work; an acknowledgment, silence, or timeout isn't proof. Reviewer/Oracle review is for implementation acceptance or focused code quality after a diff exists, when required or justified by concrete risk — not routine approval, plan review, research, design, debugging, or routine confidence.
|
|
26
32
|
|
|
27
33
|
Match local patterns. Avoid speculative abstractions, pass-through wrappers, redundant defensive checks around guaranteed values, restating comments, dead/debug code, and needless copies or repeated work. Split by responsibility, not arbitrary line counts. Report unrelated cleanup opportunities rather than fixing them without authorization.
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
Implement exactly and only what was requested: no bonus features, opportunistic refactors, style embellishments, or speculative cleanup; a fix needs no surrounding cleanup, and a one-shot operation needs no helper, abstraction, flag, shim, or future-proofing. Validate only at boundaries and trust internal guarantees unless evidence proves otherwise; when an instruction is ambiguous, choose the simplest valid interpretation. Never suppress type errors with `as any`, `@ts-ignore`, or `@ts-expect-error`.
|
|
36
|
+
|
|
37
|
+
Use LSP for symbols and dedicated search/read tools for files and text; ast-grep is for exact syntax-tree matching or deterministic codemods simpler tools can't express. Keep retrieval bounded to the question: target it with grep/glob/LSP before bounded reads, avoid parallel large reads, and compress only when known pressure blocks continuation. Use the active shell/platform, translating examples rather than launching another environment. Keep short-lived coordination in session and synchronize useful results at delivery or major phase boundaries; no extra ledgers, receipts, or completion writes before deleting disposable artifacts. Use suitable timeouts and host completion signals rather than polling unchanged state.
|
|
38
|
+
|
|
39
|
+
## Zero-tolerance process suppression
|
|
40
|
+
|
|
41
|
+
The behaviors below are prohibited categories, not discouraged habits. The instant you notice one starting — even mid-tool-call — abort it. Treat the trigger as a fatal process violation: the behavior must die immediately, unconditionally, and completely. Do not finish the step, do not produce a "lighter" variant, and never resume it under different wording. If it already produced artifacts, discard them before continuing. Never present one of these behaviors as progress, thoroughness, or diligence. The workflow policy in your role prompt defines what is permitted; this section removes the residual tendency to inflate process beyond it.
|
|
42
|
+
|
|
43
|
+
- Hash locking. GPT models substitute invented hashes, checksums, fingerprints, revision stamps, or content digests for real references. Use a path, a commit, or the uncommitted working-tree change instead. Hashing is justified only by an explicit external integrity, release, security, or protocol requirement; a hash invented as a receipt is waste, not evidence: delete it and continue.
|
|
44
|
+
- Repeat verification. GPT models re-derive facts already proven by tool results, re-read files unchanged since the last read, re-run checks whose inputs have not changed since the last green result, and ask the user or a subagent to reconfirm known facts. Reuse the existing evidence and move on; run at most one appropriate final pass, and only after relevant inputs actually changed.
|
|
45
|
+
- Ceremony tests. GPT models apply full TDD universally, start with bulk fixtures or test matrices, invent scenario quotas, add string/regex/snapshot locks on documentation, commit messages, package metadata, or non-boundary wording, and add infrastructure/environment freeze tests to prove prompt or document edits. Scale tests to the plausible regression at real deterministic seams. RED/GREEN is evidence at such a seam, never a universal gate. A small edit needs only the tests covering the changed area, and a trivial adjustment verified by re-reading the changed lines needs no test run at all.
|
|
46
|
+
- Gate inflation. GPT models add verification rounds, approval checkpoints, review loops, and sign-off steps no governing contract required. Capability does not add process; doubt is resolved by evidence, not by another gate.
|
|
47
|
+
- Over-asking. GPT models ask for confirmation when repository evidence already settles the question. Decide from context, state the safe assumption, and continue. Ask only when a protected choice, unavailable input, destructive action, or material rework requires it.
|
|
48
|
+
|
|
49
|
+
Correction after a trigger: stop, revert or delete what the behavior produced, state in one sentence that the behavior was suppressed and what was discarded, then continue the authorized work. Suppression never licenses hiding it when it consumed user-visible work; report it honestly in the final report and never repeat it.
|
|
30
50
|
|
|
31
51
|
## Verification and evidence reuse
|
|
32
52
|
|
|
@@ -7,6 +7,8 @@ Apply only to Kimi K2.7 Code, K2.8 Preview, `kimi-for-coding`, and `kimi-for-cod
|
|
|
7
7
|
- Keep execution outcome-first. Once the requested result and its observable completion evidence are clear, move through routine implementation transitions directly instead of repeatedly reopening equivalent approaches.
|
|
8
8
|
- Treat ordinary sequencing as mechanical: use known dependencies and file ownership to choose the next permitted action. Reserve deeper analysis for correctness, dependency boundaries, failure diagnosis, and verification that can change the result.
|
|
9
9
|
- Do not mistake momentum for permission. Preserve the requested scope, stop at security/data/API/irreversible boundaries, and never invent tools, roles, approvals, or delegation authority.
|
|
10
|
+
- Do not invent process either. Kimi K2.7 tends to reopen settled ground and add verification scaffolding: prefer a path, a commit, or the uncommitted working-tree change over an invented hash or revision stamp, don't re-run checks whose inputs haven't changed, and don't re-confirm environment facts the current step doesn't depend on.
|
|
11
|
+
- Scale the pipeline to the request rather than defaulting upward; the governing workflow policy decides what the request needs.
|
|
10
12
|
- A light execution path cannot bypass policy for complex business or behavior changes. Those changes still require the orchestrator-managed `planner → plan-critic → implementation` flow; only genuinely bounded, low-risk work or an explicit permitted exception may use a lighter path.
|
|
11
13
|
- If browser work is necessary, use a temporary blank profile/context owned by the current run. Do not connect to an existing browser or CDP session, log in, import or synchronize settings, extensions, cookies, auth/storage state, or another profile; report authentication-gated coverage as unverified.
|
|
12
14
|
|
|
@@ -35,10 +35,12 @@ Use the native `writing-plans` skill to produce the plan requested by the orches
|
|
|
35
35
|
|
|
36
36
|
## Evidence And QA
|
|
37
37
|
|
|
38
|
-
-
|
|
38
|
+
- Name the evidence that proves the work, sized to the plan's scope: the checks, real-surface observations, or re-read confirmations that would show the result holds.
|
|
39
39
|
- Include QA expectations sized to concrete risk: meaningful regression coverage, real-surface/manual QA, applicable background-work cleanup, and residual risks.
|
|
40
40
|
- Tests protect valid requirements, functionality, and external interfaces, not string, regex, snapshot, or parsed-content locks for documentation, commit messages, package descriptions, or non-boundary error/log wording. Update tests with changed requirements; delete removed components' dedicated tests rather than testing their absence. Preserve valid safety, protocol, and input-handling coverage.
|
|
41
41
|
- Treat success logs and acknowledgments as claims until useful outcome evidence supports the relevant interface.
|
|
42
42
|
- Include relevant verification cases for stale state, dirty worktrees, misleading success output, and prompt injection; report current evidence and gaps, not a trial history.
|
|
43
|
+
- Plan for evidence, not ritual: reference work by path, commit, or uncommitted change rather than by hash or revision stamp, and don't specify verification rounds, approval checkpoints, sign-off steps, or universal RED/GREEN gates the governing contract didn't require. Size regression coverage to concrete risk at real deterministic seams rather than scenario quotas or bulk fixtures.
|
|
44
|
+
- Scale the plan to the request: don't manufacture phases, review rounds, or lock scaffolding the work does not need, and don't plan re-confirmation of environment facts the work does not depend on.
|
|
43
45
|
|
|
44
46
|
</deepwork-mode>
|
|
@@ -7,6 +7,8 @@ Apply only to the SWE-2 model and its effort-suffixed lanes. SWE-2 is not a Kimi
|
|
|
7
7
|
- Drive toward the concrete requested outcome. Once a decisive fact is available—such as the dependency boundary, failing cause, or verification result—stop extending analysis that cannot change the decision and take the next permitted action in the same turn.
|
|
8
8
|
- Do not end a work turn with only “I will” or “next I would” when the stated action is available, safe, in scope, and executable now. Perform it, then report observed evidence.
|
|
9
9
|
- Spend analytical depth where it changes correctness: inspect interfaces before edits, diagnose actual failures, and verify the changed surface. Do not manufacture alternative execution orders after dependencies already settle one.
|
|
10
|
+
- Do not manufacture process either. SWE-2 tends to over-verify after a fact is settled: prefer a path, a commit, or the uncommitted working-tree change over an invented hash or revision stamp, don't re-run checks whose inputs haven't changed, and don't re-confirm environment facts the current step doesn't depend on.
|
|
11
|
+
- Scale the pipeline to the request rather than defaulting upward; the governing workflow policy decides what the request needs.
|
|
10
12
|
- Direct action cannot bypass policy for complex business or behavior changes. Those changes still require the orchestrator-managed `planner → plan-critic → implementation` flow; only genuinely bounded, low-risk work or an explicit permitted exception may use a lighter path.
|
|
11
13
|
- If browser work is necessary, use a temporary blank profile/context owned by the current run. Do not connect to an existing browser or CDP session, log in, import or synchronize settings, extensions, cookies, auth/storage state, or another profile; report authentication-gated coverage as unverified.
|
|
12
14
|
|
|
@@ -1,72 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"rootBaselineCommit": "3b680211feeb93508b3817546f37bee2291c402b",
|
|
6
|
-
"capture": "root-worktree",
|
|
7
|
-
"overlayPaths": [
|
|
8
|
-
"prompts/v1/agents/clarifier.md",
|
|
9
|
-
"prompts/v1/agents/orchestrator.md",
|
|
10
|
-
"prompts/v1/agents/plan-critic.md",
|
|
11
|
-
"prompts/v1/agents/planner.md",
|
|
12
|
-
"prompts/v1/agents/reviewer.md",
|
|
13
|
-
"prompts/v1/category/complex.md",
|
|
14
|
-
"prompts/v1/category/creative.md",
|
|
15
|
-
"prompts/v1/category/cross-cutting.md",
|
|
16
|
-
"prompts/v1/category/deep.md",
|
|
17
|
-
"prompts/v1/category/documenting.md",
|
|
18
|
-
"prompts/v1/category/frontend.md",
|
|
19
|
-
"prompts/v1/category/hard-reasoning.md",
|
|
20
|
-
"prompts/v1/category/research.md",
|
|
21
|
-
"prompts/v1/deepwork/claude-opus-5.md",
|
|
22
|
-
"prompts/v1/deepwork/default.md",
|
|
23
|
-
"prompts/v1/deepwork/gemini.md",
|
|
24
|
-
"prompts/v1/deepwork/glm.md",
|
|
25
|
-
"prompts/v1/deepwork/gpt.md",
|
|
26
|
-
"prompts/v1/deepwork/planner.md",
|
|
27
|
-
"skills/coding-agent-sessions/NOTICE.md",
|
|
28
|
-
"skills/coding-agent-sessions/SKILL.md",
|
|
29
|
-
"skills/coding-agent-sessions/references/all-platforms.md",
|
|
30
|
-
"skills/coding-agent-sessions/references/senpi.md",
|
|
31
|
-
"skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py",
|
|
32
|
-
"skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py",
|
|
33
|
-
"skills/debugging/SKILL.md",
|
|
34
|
-
"skills/debugging/references/methodology/00-setup.md",
|
|
35
|
-
"skills/debugging/references/methodology/02-investigate.md",
|
|
36
|
-
"skills/debugging/references/methodology/03-flaky-triage.md",
|
|
37
|
-
"skills/debugging/references/methodology/04-hard-reasoning-escalation.md",
|
|
38
|
-
"skills/debugging/references/methodology/06-fix.md",
|
|
39
|
-
"skills/debugging/references/methodology/08-qa.md",
|
|
40
|
-
"skills/debugging/references/methodology/09-cleanup.md",
|
|
41
|
-
"skills/debugging/references/methodology/partial-runtime-evidence.md",
|
|
42
|
-
"skills/debugging/references/runtimes/bundled-js-binary.md",
|
|
43
|
-
"skills/debugging/references/runtimes/native-binary.md",
|
|
44
|
-
"skills/debugging/references/runtimes/node.md",
|
|
45
|
-
"skills/debugging/references/runtimes/python.md",
|
|
46
|
-
"skills/debugging/references/runtimes/rust.md",
|
|
47
|
-
"skills/debugging/references/tools/dap.md",
|
|
48
|
-
"skills/debugging/references/tools/ghidra.md",
|
|
49
|
-
"skills/debugging/references/tools/playwright-cli.md",
|
|
50
|
-
"skills/debugging/references/tools/pwntools.md",
|
|
51
|
-
"skills/remove-ai-slops/SKILL.md",
|
|
52
|
-
"skills/v1/brainstorming/SKILL.md",
|
|
53
|
-
"skills/v1/dispatching-parallel-agents/SKILL.md",
|
|
54
|
-
"skills/v1/receiving-code-review/SKILL.md",
|
|
55
|
-
"skills/v1/requesting-code-review/SKILL.md",
|
|
56
|
-
"skills/v1/requesting-code-review/code-reviewer.md",
|
|
57
|
-
"skills/v1/subagent-driven-development/SKILL.md",
|
|
58
|
-
"skills/v1/subagent-driven-development/implementer-prompt.md",
|
|
59
|
-
"skills/v1/subagent-driven-development/spec-reviewer-prompt.md",
|
|
60
|
-
"skills/v1/writing-plans/SKILL.md",
|
|
61
|
-
"skills/v1/writing-plans/plan-document-reviewer-prompt.md",
|
|
62
|
-
"src/data/agents.ts",
|
|
63
|
-
"src/data/categories.ts",
|
|
64
|
-
"src/hooks/config.ts",
|
|
65
|
-
"src/intent/model-family.ts",
|
|
66
|
-
"src/intent/prompt-loader.ts"
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
"host": "DSH 0.2.0-rc.2",
|
|
2
|
+
"sourceRoot": "..",
|
|
3
|
+
"sourceInventory": "scripts/source-inventory.mjs",
|
|
4
|
+
"host": "DSH 0.2.1-rc.2",
|
|
70
5
|
"license": "LicenseRef-AAAPL; full package LICENSE applies to OCMM-derived modifications; original third-party notices retained per skill",
|
|
71
6
|
"attribution": "OCMM Hugefiver; v1 workflow forks retain obra/superpowers lineage; standalone notices/licenses copied recursively",
|
|
72
7
|
"rules": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<dsmm-host-contract>
|
|
2
|
-
Use the current DSH 0.2.
|
|
2
|
+
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not an OCMM compression tool.
|
|
3
3
|
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
4
4
|
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
5
5
|
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
package/skills/ast-grep/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: "Use ast-grep (sg) only when the task explicitly requires exact syn
|
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
7
7
|
|
|
8
|
-
This is a full OCMM source adaptation for DSH 0.2.
|
|
8
|
+
This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
|
|
9
9
|
|
|
10
10
|
- Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
|
|
11
11
|
- External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
|
|
@@ -5,7 +5,7 @@ description: "Use before creative or materially ambiguous work to clarify outcom
|
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
7
7
|
|
|
8
|
-
This is a full OCMM source adaptation for DSH 0.2.
|
|
8
|
+
This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
|
|
9
9
|
|
|
10
10
|
- Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
|
|
11
11
|
- External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
|
|
@@ -5,7 +5,7 @@ description: "MUST USE when asked to find, read, list, search, inspect, fetch, e
|
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
7
7
|
|
|
8
|
-
This is a full OCMM source adaptation for DSH 0.2.
|
|
8
|
+
This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
|
|
9
9
|
|
|
10
10
|
- Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
|
|
11
11
|
- External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
|