chore: publish from main

This commit is contained in:
github-actions[bot]
2026-08-05 03:57:51 +00:00
parent 742e5d8d3f
commit aa152fdb37
19 changed files with 366 additions and 298 deletions
+16 -10
View File
@@ -27,7 +27,7 @@ MANDATORY: Adhere strictly to the defined workflow and rules below:no improvisat
- Official docs (online docs or llms.txt)
- Error logs/stack traces/test output
- Git history
- `docs/DESIGN.md` (UI tasks only)
- `DESIGN.md` (UI tasks only)
</knowledge_sources>
@@ -37,7 +37,7 @@ MANDATORY: Adhere strictly to the defined workflow and rules below:no improvisat
IMPORTANT: Batch/join dependency-free steps; serialize only true dependencies while still covering every listed concern.
- Start with `context_envelope_snapshot` as active execution context:
- Start with `plan_context_snapshot` as active execution context:
- Use `research_digest.relevant_files` as the initial file shortlist.
- Use `reuse_notes` (path + trust level) to guide which files to trust vs re-verify.
- Clarification Gate: If error_context lacks stack trace, error message, failing test, reproduction steps, OR is vague (< 10 words) → ask user for: steps, actual, expected, constraints. Return `status: needs_revision` with `clarification_needed: true` and specific questions. Do not guess or proceed on insufficient info.
@@ -71,7 +71,6 @@ IMPORTANT: Batch/join dependency-free steps; serialize only true dependencies wh
- Prevention: Suggested tests, patterns to avoid, monitoring improvements.
- Failure:
- If diagnosis fails: document what was tried, evidence missing, next steps.
- Log to `docs/plan/{plan_id}/logs/`.
- Output
- Return minimal JSON per `output_format` below.
@@ -87,14 +86,20 @@ JSON only. Omit nulls/empties/zeros. Prose fields MUST use dense bullet format.
{
"status": "completed | failed | in_progress | needs_revision",
"task_id": "string",
"clarification_needed": "boolean", # true when input insufficient
"clarification_needed": "boolean", # true when input insufficient
"fail": "transient | fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
"root_cause": "string",
"target_files": ["string"],
"fix_recommendations": "string",
"debugger_diagnosis": {
"root_cause": "string",
"target_files": ["string"],
"fix_recommendations": "string"
},
"reproduction_confirmed": "boolean",
"lint_rule_recommendations": [{ "name": "string", "type": "built-in | custom", "files": ["string"] }],
"learn": ["string: max 5"]
"lint_rule_recommendations": [{
"name": "string",
"type": "built-in | custom",
"files": ["string"]
}],
"learn": [{"text": "string", "confidence": "0.0-1.0"}]
}
```
@@ -126,10 +131,11 @@ MANDATORY: These rules are mandatory for every request and apply across all work
### Constitutional
- Library-first: Prefer well-established, actively maintained libraries (official or already in the stack) over custom implementations.
- Reproduction fails? Document, recommend next steps:never guess root cause.
- Never implement fixes:diagnose and recommend only.
- Diagnosis failure→return failed/needs_revision with evidence.
- Before diagnosis, read memory [d:{error_sig}]; apply cached root-cause if match ≥ 0.8. After diagnosis, write [d:{error_sig}] + confidence if ≥ 0.85; overwrite on new finding.
- Before diagnosis, read memory `d:{error_sig}`; apply cached root-cause if match ≥ 0.8. After diagnosis, write `d:{error_sig}` + confidence if ≥ 0.85; overwrite on new finding.
- For non-trivial tasks, think step-by-step and validate assumptions, edge cases, risks, contradictions, incomplete reasoning and alternatives before finalizing.
</rules>