@mengde1231/rudder 0.6.11 → 0.6.21
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/README.md +12 -0
- package/dist/migrations/manifests/0.4.0-beta.1.json +5 -5
- package/dist/migrations/manifests/0.5.14.json +9 -0
- package/dist/migrations/manifests/0.5.15.json +9 -0
- package/dist/migrations/manifests/0.5.16.json +9 -0
- package/dist/migrations/manifests/0.5.17.json +9 -0
- package/dist/migrations/manifests/0.5.19.json +9 -0
- package/dist/migrations/manifests/0.5.20.json +9 -0
- package/dist/migrations/manifests/0.5.21.json +9 -0
- package/dist/migrations/manifests/0.5.22.json +9 -0
- package/dist/migrations/manifests/0.5.23.json +9 -0
- package/dist/migrations/manifests/0.5.30.json +9 -0
- package/dist/migrations/manifests/0.6.1.json +9 -0
- package/dist/migrations/manifests/0.6.11.json +9 -0
- package/dist/migrations/manifests/0.6.20.json +9 -0
- package/dist/migrations/manifests/0.6.21.json +9 -0
- package/dist/templates/claude/agents/rudder-check.md +170 -143
- package/dist/templates/codex/agents/rudder-check.toml +95 -91
- package/dist/templates/codex/skills/update-spec/SKILL.md +14 -1
- package/dist/templates/common/skills/check.md +8 -1
- package/dist/templates/common/skills/update-spec.md +10 -3
- package/dist/templates/opencode/plugins/inject-workflow-state.js +17 -0
- package/dist/templates/rudder/config.yaml +35 -2
- package/dist/templates/rudder/index.d.ts +1 -0
- package/dist/templates/rudder/index.d.ts.map +1 -1
- package/dist/templates/rudder/index.js +2 -0
- package/dist/templates/rudder/index.js.map +1 -1
- package/dist/templates/rudder/scripts/common/config.py +42 -1
- package/dist/templates/rudder/scripts/common/task_context.py +42 -1
- package/dist/templates/rudder/scripts/common/task_readiness.py +169 -0
- package/dist/templates/rudder/scripts/common/task_store.py +10 -2
- package/dist/templates/rudder/scripts/common/types.py +1 -0
- package/dist/templates/rudder/scripts/task.py +28 -0
- package/dist/templates/rudder/workflow.md +52 -45
- package/dist/templates/shared-hooks/inject-subagent-context.py +116 -9
- package/dist/templates/shared-hooks/inject-workflow-state.py +33 -1
- package/dist/utils/task-json.d.ts +6 -0
- package/dist/utils/task-json.d.ts.map +1 -1
- package/dist/utils/task-json.js +6 -0
- package/dist/utils/task-json.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,91 +1,95 @@
|
|
|
1
|
-
name = "rudder-check"
|
|
2
|
-
description = "Workspace-write Rudder reviewer that self-fixes spec drift, lint/type-check failures, and missing tests."
|
|
3
|
-
sandbox_mode = "workspace-write"
|
|
4
|
-
|
|
5
|
-
developer_instructions = """
|
|
6
|
-
You are running as the `rudder-check` sub-agent. The main session has dispatched you to review and self-fix.
|
|
7
|
-
|
|
8
|
-
CRITICAL — Recursion guard (read first):
|
|
9
|
-
- You MUST NOT spawn another `rudder-check` or `rudder-implement` sub-agent. Do the review and fixes directly in this turn.
|
|
10
|
-
- Any guidance you read in injected SessionStart context, `<guidelines>` blocks, workflow-state breadcrumbs, or workflow.md that says "dispatch rudder-implement" / "dispatch rudder-check" applies to the MAIN session, NOT to you. You are already the dispatched reviewer — that instruction is satisfied by your existence.
|
|
11
|
-
- Only the main session is allowed to dispatch `rudder-implement` / `rudder-check`. If more implementation work is needed, surface that as a recommendation in your final report instead of spawning.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Required: Load Rudder Context First
|
|
16
|
-
|
|
17
|
-
This platform does NOT auto-inject task context via hook. Before doing anything else, you MUST load context yourself.
|
|
18
|
-
|
|
19
|
-
### Step 1: Find the active task path
|
|
20
|
-
|
|
21
|
-
Try in order — stop at the first one that yields a task path:
|
|
22
|
-
|
|
23
|
-
1. **Look at the dispatch prompt** you received from the main agent. If its first line is `Active task: <path>` (e.g. `Active task: .rudder/tasks/04-17-foo`), use that path. The main agent is required to include this line on class-2 platforms.
|
|
24
|
-
2. **Run** `python3 ./.rudder/scripts/task.py current --source` and read the `Current task:` line.
|
|
25
|
-
3. **If both fail** (no `Active task:` line in the prompt and `task.py current` returns no task), ask the user which task to work on; do NOT guess.
|
|
26
|
-
|
|
27
|
-
### Step 2: Load task context from the resolved path
|
|
28
|
-
|
|
29
|
-
1. Read the task's `prd.md` (requirements) and `info.md` if it exists (technical design).
|
|
30
|
-
2. Read `<task-path>/check.jsonl` — JSONL list of dev spec files relevant to this agent.
|
|
31
|
-
3. For each entry in the JSONL, Read its `file` path — these are the dev specs you must follow.
|
|
32
|
-
**Skip rows without a `"file"` field** (e.g. `{"_example": "..."}` seed rows left over from `task.py create` before the curator ran).
|
|
33
|
-
|
|
34
|
-
If `check.jsonl` has no curated entries (only a seed row, or the file is missing), fall back to: read `prd.md`, list available specs with `python3 ./.rudder/scripts/get_context.py --mode packages`, and pick the specs that match the task domain yourself. Do NOT block on the missing jsonl — proceed with prd-only context plus your spec judgment.
|
|
35
|
-
|
|
36
|
-
If the resolved task path has no `prd.md`, ask the user what to work on; do NOT proceed without context.
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
You are the Rudder reviewer agent.
|
|
41
|
-
|
|
42
|
-
Your job is to review code changes against specs AND fix issues directly — not just report them. You have write access; use it.
|
|
43
|
-
|
|
44
|
-
Review checklist:
|
|
45
|
-
- Verify behavior against the actual code paths, not assumptions.
|
|
46
|
-
- Look for missing template/update/detection touch points when platform config changes.
|
|
47
|
-
- Check whether tests should be added or updated.
|
|
48
|
-
- Check whether `.rudder/spec/` docs need sync after implementation.
|
|
49
|
-
- Run lint and type-check; fix any failures.
|
|
50
|
-
- Detect project type and run compile
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
name = "rudder-check"
|
|
2
|
+
description = "Workspace-write Rudder reviewer that self-fixes spec drift, lint/type-check failures, and missing tests."
|
|
3
|
+
sandbox_mode = "workspace-write"
|
|
4
|
+
|
|
5
|
+
developer_instructions = """
|
|
6
|
+
You are running as the `rudder-check` sub-agent. The main session has dispatched you to review and self-fix.
|
|
7
|
+
|
|
8
|
+
CRITICAL — Recursion guard (read first):
|
|
9
|
+
- You MUST NOT spawn another `rudder-check` or `rudder-implement` sub-agent. Do the review and fixes directly in this turn.
|
|
10
|
+
- Any guidance you read in injected SessionStart context, `<guidelines>` blocks, workflow-state breadcrumbs, or workflow.md that says "dispatch rudder-implement" / "dispatch rudder-check" applies to the MAIN session, NOT to you. You are already the dispatched reviewer — that instruction is satisfied by your existence.
|
|
11
|
+
- Only the main session is allowed to dispatch `rudder-implement` / `rudder-check`. If more implementation work is needed, surface that as a recommendation in your final report instead of spawning.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Required: Load Rudder Context First
|
|
16
|
+
|
|
17
|
+
This platform does NOT auto-inject task context via hook. Before doing anything else, you MUST load context yourself.
|
|
18
|
+
|
|
19
|
+
### Step 1: Find the active task path
|
|
20
|
+
|
|
21
|
+
Try in order — stop at the first one that yields a task path:
|
|
22
|
+
|
|
23
|
+
1. **Look at the dispatch prompt** you received from the main agent. If its first line is `Active task: <path>` (e.g. `Active task: .rudder/tasks/04-17-foo`), use that path. The main agent is required to include this line on class-2 platforms.
|
|
24
|
+
2. **Run** `python3 ./.rudder/scripts/task.py current --source` and read the `Current task:` line.
|
|
25
|
+
3. **If both fail** (no `Active task:` line in the prompt and `task.py current` returns no task), ask the user which task to work on; do NOT guess.
|
|
26
|
+
|
|
27
|
+
### Step 2: Load task context from the resolved path
|
|
28
|
+
|
|
29
|
+
1. Read the task's `prd.md` (requirements) and `info.md` if it exists (technical design).
|
|
30
|
+
2. Read `<task-path>/check.jsonl` — JSONL list of dev spec files relevant to this agent.
|
|
31
|
+
3. For each entry in the JSONL, Read its `file` path — these are the dev specs you must follow.
|
|
32
|
+
**Skip rows without a `"file"` field** (e.g. `{"_example": "..."}` seed rows left over from `task.py create` before the curator ran).
|
|
33
|
+
|
|
34
|
+
If `check.jsonl` has no curated entries (only a seed row, or the file is missing), fall back to: read `prd.md`, list available specs with `python3 ./.rudder/scripts/get_context.py --mode packages`, and pick the specs that match the task domain yourself. Do NOT block on the missing jsonl — proceed with prd-only context plus your spec judgment.
|
|
35
|
+
|
|
36
|
+
If the resolved task path has no `prd.md`, ask the user what to work on; do NOT proceed without context.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
You are the Rudder reviewer agent.
|
|
41
|
+
|
|
42
|
+
Your job is to review code changes against specs AND fix issues directly — not just report them. You have write access; use it.
|
|
43
|
+
|
|
44
|
+
Review checklist:
|
|
45
|
+
- Verify behavior against the actual code paths, not assumptions.
|
|
46
|
+
- Look for missing template/update/detection touch points when platform config changes.
|
|
47
|
+
- Check whether tests should be added or updated.
|
|
48
|
+
- Check whether `.rudder/spec/` docs need sync after implementation.
|
|
49
|
+
- Run lint and type-check; fix any failures.
|
|
50
|
+
- Detect project type and run compile. **Priority**: use the project's own declared build command when available; fall back to defaults only when no declaration exists.
|
|
51
|
+
- Node/Frontend: check `package.json` — has `scripts.build`? run `npm run build`; has `scripts.typecheck` but no build? run `npm run typecheck`; neither? `npx tsc --noEmit` if tsconfig exists, else `npx eslint . --no-error-on-unmatched-pattern`.
|
|
52
|
+
- Maven: `mvn compile -q`; Gradle: `./gradlew compileJava -q`; Go: `go build ./...`; Rust: `cargo check --all-targets`.
|
|
53
|
+
- Build performance tuning (parallel, caching, daemon) belongs in the build tool's own config, not in this command.
|
|
54
|
+
- If compilation took > 30 seconds AND the build tool's standard performance config is missing (Maven: `.mvn/maven.config`; Gradle: `org.gradle.parallel` in `gradle.properties`), add a one-time recommendation to the report: "Compilation took Xs. Consider creating [config file] with [flag] to enable parallel builds." Do NOT create the file — only recommend. If the config already exists, stay silent.
|
|
55
|
+
- If compilation fails, fix and retry up to 3 rounds. Parse error output, fix source code, re-run compile. Stop and report remaining errors after 3 rounds.
|
|
56
|
+
- Use tool paths from the `<tool-paths>` block injected at session-start if available; otherwise fall back to system PATH.
|
|
57
|
+
- If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
|
|
58
|
+
- Prefer concrete findings over speculative warnings.
|
|
59
|
+
|
|
60
|
+
When you find an issue:
|
|
61
|
+
1. Fix it directly using edit/write tools.
|
|
62
|
+
2. Re-run lint, type-check, and compile until green.
|
|
63
|
+
3. Record what you changed and why.
|
|
64
|
+
|
|
65
|
+
Output format:
|
|
66
|
+
## Findings (fixed)
|
|
67
|
+
- File: <path>
|
|
68
|
+
- Issue: <what was wrong>
|
|
69
|
+
- Fix: <what you changed>
|
|
70
|
+
|
|
71
|
+
## Findings (not fixed)
|
|
72
|
+
Only list issues you could not self-fix (e.g. missing product decision, out-of-scope). Explain why.
|
|
73
|
+
|
|
74
|
+
## Verification
|
|
75
|
+
- Lint: pass/fail
|
|
76
|
+
- TypeCheck: pass/fail
|
|
77
|
+
- Compile: pass/fail (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
|
|
78
|
+
|
|
79
|
+
## Compile Errors (if any)
|
|
80
|
+
(List unresolved compiler errors if max retry reached)
|
|
81
|
+
|
|
82
|
+
If no issues are found, say so explicitly after verifying lint/type-check/compile pass.
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
# Disable Codex collab tools entirely for this sub-agent. With both
|
|
86
|
+
# multi_agent and multi_agent_v2 off, `spawn_agent` / `wait_agent` /
|
|
87
|
+
# `list_agents` / `close_agent` are not registered in the sub-agent's tool
|
|
88
|
+
# list at all — the model literally cannot call them. This is the structural
|
|
89
|
+
# fix for the wait_agent self-deadlock when the parent inherits its
|
|
90
|
+
# transcript via Codex's default `fork_turns="all"` (#240 follow-up, #241).
|
|
91
|
+
[features]
|
|
92
|
+
multi_agent = false
|
|
93
|
+
|
|
94
|
+
[features.multi_agent_v2]
|
|
95
|
+
enabled = false
|
|
@@ -7,7 +7,9 @@ description: "Captures executable contracts and coding knowledge into .rudder/sp
|
|
|
7
7
|
|
|
8
8
|
When you learn something valuable (from debugging, implementing, or discussion), use this skill to update the relevant code-spec documents.
|
|
9
9
|
|
|
10
|
-
**Timing**:
|
|
10
|
+
**Timing**: Only when the task changes durable project knowledge. The current
|
|
11
|
+
task's requirements belong in `prd.md`; implementing a business request does
|
|
12
|
+
not automatically require a Spec update.
|
|
11
13
|
|
|
12
14
|
---
|
|
13
15
|
|
|
@@ -33,6 +35,17 @@ Required sections for infra/cross-layer specs:
|
|
|
33
35
|
|
|
34
36
|
## When to Update Code-Specs
|
|
35
37
|
|
|
38
|
+
Update a code-spec when the change introduces or changes a durable business
|
|
39
|
+
rule, workflow/state transition, acceptance rule, API/DTO/VO/database/
|
|
40
|
+
permission/transaction/cache contract, reusable implementation convention, or
|
|
41
|
+
prevention rule. Also update it when the existing Spec is shown to be wrong or
|
|
42
|
+
incomplete.
|
|
43
|
+
|
|
44
|
+
Do not update a code-spec for one-off copy, styling, customer campaign rules,
|
|
45
|
+
single-page behavior, or implementation details that future work does not need
|
|
46
|
+
to repeat. If no trigger applies, record `no durable Spec change` in the task
|
|
47
|
+
summary and stop this skill.
|
|
48
|
+
|
|
36
49
|
| Trigger | Example | Target Spec |
|
|
37
50
|
|---------|---------|-------------|
|
|
38
51
|
| **Implemented a feature** | Added template download with giget | Relevant `backend/` or `frontend/` file |
|
|
@@ -6,6 +6,13 @@ Comprehensive quality verification for recently written code. Combines spec comp
|
|
|
6
6
|
|
|
7
7
|
## Step 1: Identify What Changed
|
|
8
8
|
|
|
9
|
+
**Check/Verify boundary (mandatory):** Check reviews the complete task diff;
|
|
10
|
+
Verify executes lint, type-check, tests, build, and business acceptance
|
|
11
|
+
commands. Run this skill only after the implementer has finished the complete
|
|
12
|
+
requirement set and no more planned code remains. Review the full diff, then
|
|
13
|
+
run Verify once. If either stage finds issues, fix them and rerun the affected
|
|
14
|
+
stage; do not alternate between writing one file and verifying it.
|
|
15
|
+
|
|
9
16
|
```bash
|
|
10
17
|
git diff --name-only HEAD
|
|
11
18
|
git status
|
|
@@ -25,7 +32,7 @@ cat .rudder/spec/<package>/<layer>/index.md
|
|
|
25
32
|
|
|
26
33
|
Read the specific guideline files referenced — the index is a pointer, not the goal.
|
|
27
34
|
|
|
28
|
-
## Step 3:
|
|
35
|
+
## Step 3: Verify the Complete Implementation
|
|
29
36
|
|
|
30
37
|
Run the project's lint, type-check, and test commands. Fix any failures before proceeding.
|
|
31
38
|
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
# Update Code-Spec - Capture Executable Contracts
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Use this skill only when a task changes durable project knowledge. The current
|
|
4
|
+
business requirements belong in `prd.md`; implementing a requirement does not
|
|
5
|
+
automatically require a Spec update.
|
|
6
|
+
|
|
7
|
+
**Timing**: Update after a task adds or changes a durable business rule,
|
|
8
|
+
workflow/state transition, acceptance rule, API/DTO/VO/database/
|
|
9
|
+
permission/transaction/cache contract, reusable convention, prevention rule,
|
|
10
|
+
or exposes an incorrect Spec. Skip one-off copy, styling, customer campaigns,
|
|
11
|
+
and local implementation details; record `no durable Spec change` in the task
|
|
12
|
+
summary when skipped.
|
|
6
13
|
|
|
7
14
|
---
|
|
8
15
|
|
|
@@ -101,6 +101,19 @@ function buildBreadcrumb(id, status, templates, source = null) {
|
|
|
101
101
|
return `<workflow-state>\n${header}\n${body}\n</workflow-state>`
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
function shouldSkipPrompt(input) {
|
|
105
|
+
const prompt = typeof input?.prompt === "string"
|
|
106
|
+
? input.prompt
|
|
107
|
+
: typeof input?.message === "string"
|
|
108
|
+
? input.message
|
|
109
|
+
: ""
|
|
110
|
+
return [
|
|
111
|
+
"skip rudder", "no task", "just do it", "don't create a task",
|
|
112
|
+
"do not create a task", "跳过 rudder", "别走流程", "小修一下",
|
|
113
|
+
"直接改", "先别建任务",
|
|
114
|
+
].some((keyword) => new RegExp(`(?<![\\w-])${keyword.replace(/[.*+?^${}()|[\\]\\]/g, "\\\\$&")}(?![\\w-])`, "i").test(prompt))
|
|
115
|
+
}
|
|
116
|
+
|
|
104
117
|
// OpenCode 1.2.x expects plugins to be factory functions (see inject-subagent-context.js comment).
|
|
105
118
|
export default async ({ directory }) => {
|
|
106
119
|
const ctx = new RudderContext(directory)
|
|
@@ -124,6 +137,10 @@ export default async ({ directory }) => {
|
|
|
124
137
|
if (process.env.OPENCODE_NON_INTERACTIVE === "1") {
|
|
125
138
|
return
|
|
126
139
|
}
|
|
140
|
+
if (shouldSkipPrompt(input)) {
|
|
141
|
+
debugLog("workflow-state", "Skipping breadcrumb for explicit fast path")
|
|
142
|
+
return
|
|
143
|
+
}
|
|
127
144
|
if (!ctx.isRudderProject()) {
|
|
128
145
|
return
|
|
129
146
|
}
|
|
@@ -19,9 +19,9 @@ max_journal_lines: 2000
|
|
|
19
19
|
#-------------------------------------------------------------------------------
|
|
20
20
|
|
|
21
21
|
# Auto-commit behavior for session journal + task archive operations.
|
|
22
|
-
# -
|
|
22
|
+
# - false (default): scripts do not auto-stage or auto-commit journal / task changes
|
|
23
23
|
# after add_session.py / task.py archive runs.
|
|
24
|
-
# -
|
|
24
|
+
# - true: scripts auto-stage and auto-commit journal / task changes
|
|
25
25
|
# are still written to disk; you decide whether to git add / commit.
|
|
26
26
|
#
|
|
27
27
|
# Use `false` if your project's .gitignore intentionally excludes `.rudder/`
|
|
@@ -102,6 +102,39 @@ max_journal_lines: 2000
|
|
|
102
102
|
# codex:
|
|
103
103
|
# dispatch_mode: inline # or "sub-agent" to dispatch rudder-* sub-agents
|
|
104
104
|
|
|
105
|
+
#-------------------------------------------------------------------------------
|
|
106
|
+
# Prompt injection escape hatch
|
|
107
|
+
#-------------------------------------------------------------------------------
|
|
108
|
+
# When the current user message contains one of Rudder's explicit skip phrases,
|
|
109
|
+
# the per-turn workflow breadcrumb is omitted for that turn. This does not
|
|
110
|
+
# disable SessionStart or sub-agent context injection.
|
|
111
|
+
#
|
|
112
|
+
# prompt_injection:
|
|
113
|
+
# skip_keyword: "skip rudder" # empty string disables the configured alias
|
|
114
|
+
|
|
115
|
+
#-------------------------------------------------------------------------------
|
|
116
|
+
# Explicit Rudder bypass
|
|
117
|
+
#-------------------------------------------------------------------------------
|
|
118
|
+
# This is intentionally commented out and reserved as a project-level policy
|
|
119
|
+
# placeholder. The default behavior remains unchanged: an explicit user request
|
|
120
|
+
# such as "skip rudder" may skip the per-turn workflow breadcrumb for that turn.
|
|
121
|
+
# The current runtime does not read this placeholder.
|
|
122
|
+
#
|
|
123
|
+
# skip_rudder:
|
|
124
|
+
# enabled: false
|
|
125
|
+
|
|
126
|
+
#-------------------------------------------------------------------------------
|
|
127
|
+
# Sub-agent context injection limits
|
|
128
|
+
#-------------------------------------------------------------------------------
|
|
129
|
+
# Context is truncated safely at UTF-8 boundaries. Once the total budget is
|
|
130
|
+
# exhausted, remaining files are represented by an index line and can be read
|
|
131
|
+
# on demand by the agent. A value of 0 disables that limit.
|
|
132
|
+
#
|
|
133
|
+
# context_injection:
|
|
134
|
+
# max_file_bytes: 32768
|
|
135
|
+
# max_artifact_bytes: 65536
|
|
136
|
+
# max_total_bytes: 131072
|
|
137
|
+
|
|
105
138
|
#-------------------------------------------------------------------------------
|
|
106
139
|
# Tool Path Configuration
|
|
107
140
|
#-------------------------------------------------------------------------------
|
|
@@ -31,6 +31,7 @@ export declare const commonGit: string;
|
|
|
31
31
|
export declare const commonTypes: string;
|
|
32
32
|
export declare const commonTasks: string;
|
|
33
33
|
export declare const commonTaskContext: string;
|
|
34
|
+
export declare const commonTaskReadiness: string;
|
|
34
35
|
export declare const commonTaskStore: string;
|
|
35
36
|
export declare const commonSessionContext: string;
|
|
36
37
|
export declare const commonPackagesContext: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,YAAY,QAA2C,CAAC;AACrE,eAAO,MAAM,QAAQ,QAAuC,CAAC;AAC7D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,QAAiD,CAAC;AAChF,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,kBAAkB,QAE9B,CAAC;AACF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,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AAC5E,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,kBAAkB,QAE9B,CAAC;AACF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AAGvE,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAE/D;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAsCnD"}
|
|
@@ -41,6 +41,7 @@ export const commonGit = readTemplate("scripts/common/git.py");
|
|
|
41
41
|
export const commonTypes = readTemplate("scripts/common/types.py");
|
|
42
42
|
export const commonTasks = readTemplate("scripts/common/tasks.py");
|
|
43
43
|
export const commonTaskContext = readTemplate("scripts/common/task_context.py");
|
|
44
|
+
export const commonTaskReadiness = readTemplate("scripts/common/task_readiness.py");
|
|
44
45
|
export const commonTaskStore = readTemplate("scripts/common/task_store.py");
|
|
45
46
|
export const commonSessionContext = readTemplate("scripts/common/session_context.py");
|
|
46
47
|
export const commonPackagesContext = readTemplate("scripts/common/packages_context.py");
|
|
@@ -81,6 +82,7 @@ export function getAllScripts() {
|
|
|
81
82
|
scripts.set("common/types.py", commonTypes);
|
|
82
83
|
scripts.set("common/tasks.py", commonTasks);
|
|
83
84
|
scripts.set("common/task_context.py", commonTaskContext);
|
|
85
|
+
scripts.set("common/task_readiness.py", commonTaskReadiness);
|
|
84
86
|
scripts.set("common/task_store.py", commonTaskStore);
|
|
85
87
|
scripts.set("common/session_context.py", commonSessionContext);
|
|
86
88
|
scripts.set("common/packages_context.py", commonPackagesContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAE/D,0BAA0B;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,4BAA4B,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,6BAA6B,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,+BAA+B,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,8BAA8B,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,8BAA8B,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CA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C5C,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;IAC5C,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,mBAAmB,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,qBAAqB,CAAC,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,mBAAmB,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAAC;IAC3D,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;IAEvD,OAAO;IACP,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IACpD,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IAEhD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -117,10 +117,11 @@ def _parse_yaml_block(
|
|
|
117
117
|
key, _, value = stripped.partition(":")
|
|
118
118
|
key = key.strip()
|
|
119
119
|
value = _strip_inline_comment(value).strip()
|
|
120
|
+
was_quoted = len(value) >= 2 and value[0] == value[-1] and value[0] in ('"', "'")
|
|
120
121
|
value = _unquote(value)
|
|
121
122
|
current_list = None
|
|
122
123
|
|
|
123
|
-
if value:
|
|
124
|
+
if value or was_quoted:
|
|
124
125
|
# key: value
|
|
125
126
|
target[key] = value
|
|
126
127
|
i += 1
|
|
@@ -168,10 +169,50 @@ DEFAULT_SESSION_COMMIT_MESSAGE = "chore: record journal"
|
|
|
168
169
|
DEFAULT_MAX_JOURNAL_LINES = 2000
|
|
169
170
|
DEFAULT_SESSION_AUTO_COMMIT = False # journal / task archive auto-commit
|
|
170
171
|
DEFAULT_CODE_AUTO_COMMIT = False # Phase 3.4 code commit
|
|
172
|
+
DEFAULT_PROMPT_INJECTION_SKIP_KEYWORD = "skip rudder"
|
|
173
|
+
DEFAULT_CONTEXT_INJECTION_MAX_FILE_BYTES = 32768
|
|
174
|
+
DEFAULT_CONTEXT_INJECTION_MAX_ARTIFACT_BYTES = 65536
|
|
175
|
+
DEFAULT_CONTEXT_INJECTION_MAX_TOTAL_BYTES = 131072
|
|
171
176
|
|
|
172
177
|
CONFIG_FILE = "config.yaml"
|
|
173
178
|
|
|
174
179
|
|
|
180
|
+
def get_prompt_injection_skip_keyword(repo_root: Path | None = None) -> str:
|
|
181
|
+
"""Return the per-turn workflow breadcrumb escape-hatch keyword."""
|
|
182
|
+
config = _load_config(repo_root)
|
|
183
|
+
section = config.get("prompt_injection")
|
|
184
|
+
if not isinstance(section, dict):
|
|
185
|
+
return DEFAULT_PROMPT_INJECTION_SKIP_KEYWORD
|
|
186
|
+
value = section.get("skip_keyword", DEFAULT_PROMPT_INJECTION_SKIP_KEYWORD)
|
|
187
|
+
return value if isinstance(value, str) else DEFAULT_PROMPT_INJECTION_SKIP_KEYWORD
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def get_context_injection_limits(repo_root: Path | None = None) -> dict[str, int]:
|
|
191
|
+
"""Return safe byte limits for sub-agent context injection.
|
|
192
|
+
|
|
193
|
+
A value of zero disables that limit. Invalid or negative values fall back
|
|
194
|
+
to the documented default so malformed local config cannot break hooks.
|
|
195
|
+
"""
|
|
196
|
+
config = _load_config(repo_root)
|
|
197
|
+
section = config.get("context_injection")
|
|
198
|
+
defaults = {
|
|
199
|
+
"max_file_bytes": DEFAULT_CONTEXT_INJECTION_MAX_FILE_BYTES,
|
|
200
|
+
"max_artifact_bytes": DEFAULT_CONTEXT_INJECTION_MAX_ARTIFACT_BYTES,
|
|
201
|
+
"max_total_bytes": DEFAULT_CONTEXT_INJECTION_MAX_TOTAL_BYTES,
|
|
202
|
+
}
|
|
203
|
+
if not isinstance(section, dict):
|
|
204
|
+
return defaults
|
|
205
|
+
result = dict(defaults)
|
|
206
|
+
for key, default in defaults.items():
|
|
207
|
+
value = section.get(key, default)
|
|
208
|
+
try:
|
|
209
|
+
parsed = int(value)
|
|
210
|
+
except (TypeError, ValueError):
|
|
211
|
+
parsed = default
|
|
212
|
+
result[key] = parsed if parsed >= 0 else default
|
|
213
|
+
return result
|
|
214
|
+
|
|
215
|
+
|
|
175
216
|
def _is_true_config_value(value: object) -> bool:
|
|
176
217
|
"""Return True when a config value represents an enabled flag."""
|
|
177
218
|
if isinstance(value, bool):
|
|
@@ -19,11 +19,52 @@ from __future__ import annotations
|
|
|
19
19
|
|
|
20
20
|
import argparse
|
|
21
21
|
import json
|
|
22
|
+
from datetime import datetime, timezone
|
|
22
23
|
from pathlib import Path
|
|
23
24
|
|
|
24
25
|
from .log import Colors, colored
|
|
25
|
-
from .paths import get_repo_root
|
|
26
|
+
from .paths import get_developer, get_repo_root
|
|
26
27
|
from .task_utils import resolve_task_dir
|
|
28
|
+
from .task_readiness import prd_hash, validate_prd
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def cmd_confirm(args: argparse.Namespace) -> int:
|
|
32
|
+
"""Record explicit user confirmation for the current PRD."""
|
|
33
|
+
repo_root = get_repo_root()
|
|
34
|
+
target_dir = resolve_task_dir(args.dir, repo_root)
|
|
35
|
+
task_json = target_dir / "task.json"
|
|
36
|
+
prd_path = target_dir / "prd.md"
|
|
37
|
+
if not target_dir.is_dir() or not task_json.is_file():
|
|
38
|
+
print(colored("Error: task directory with task.json required", Colors.RED))
|
|
39
|
+
return 1
|
|
40
|
+
|
|
41
|
+
try:
|
|
42
|
+
existing_data = json.loads(task_json.read_text(encoding="utf-8"))
|
|
43
|
+
except (OSError, json.JSONDecodeError):
|
|
44
|
+
print(colored(f"Error: failed to read {task_json}", Colors.RED))
|
|
45
|
+
return 1
|
|
46
|
+
if existing_data.get("status") != "planning":
|
|
47
|
+
print(colored("Error: requirements can only be confirmed while task is planning", Colors.RED))
|
|
48
|
+
return 1
|
|
49
|
+
|
|
50
|
+
errors = validate_prd(prd_path)
|
|
51
|
+
if errors:
|
|
52
|
+
print(colored("Requirements are not ready for confirmation:", Colors.RED))
|
|
53
|
+
for error in errors:
|
|
54
|
+
print(f" - {error}")
|
|
55
|
+
return 1
|
|
56
|
+
|
|
57
|
+
developer = get_developer(repo_root) or "unknown"
|
|
58
|
+
data = existing_data
|
|
59
|
+
data["requirements"] = {
|
|
60
|
+
"status": "confirmed",
|
|
61
|
+
"confirmed_by": developer,
|
|
62
|
+
"confirmed_at": datetime.now(timezone.utc).isoformat(),
|
|
63
|
+
"prd_hash": prd_hash(prd_path),
|
|
64
|
+
}
|
|
65
|
+
task_json.write_text(json.dumps(data, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
|
66
|
+
print(colored(f"Requirements confirmed for: {target_dir.name}", Colors.GREEN))
|
|
67
|
+
return 0
|
|
27
68
|
|
|
28
69
|
|
|
29
70
|
# =============================================================================
|