Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.1.110"
version = "0.1.111"
edition = "2024"
rust-version = "1.85"
license = "Apache-2.0"
Expand Down
11 changes: 11 additions & 0 deletions patterns/mktd/PATTERN.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ Session: ${STEP_0_OUTPUT}
Tier: tier-1-quick

Analyze codebase structure relevant to ${FEATURE}.

CONSTRAINT ANCHOR: The user prompt above may specify target crates, key files, integration points, or architectural approach. If so, these are HARD CONSTRAINTS — start exploration from the specified files/modules and expand outward only as needed. Do NOT explore unrelated crates as primary targets. If the user specified key files, those MUST appear in your report.

Report: relevant files (path + purpose, max 20), key types, module dependencies, entry points.
Working directory: ${CWD}

Expand All @@ -130,6 +133,9 @@ Session: ${STEP_0_OUTPUT}
Tier: tier-1-quick

Find existing patterns or similar features to ${FEATURE} in this codebase.

CONSTRAINT ANCHOR: If the user prompt specifies an architectural approach or target crate, pattern discovery MUST be scoped to that context first. Do NOT let codebase pattern matching override the user's explicit requirements. Report patterns that SUPPORT the user's specified approach, not patterns that suggest a different approach.

Report: file paths with approach, reusable components, conventions to follow.
Working directory: ${CWD}

Expand All @@ -140,6 +146,9 @@ Session: ${STEP_0_OUTPUT}
Tier: tier-1-quick

Identify constraints and risks for implementing ${FEATURE}.

CONSTRAINT ANCHOR: If the user prompt specifies scope boundaries (target crate, specific modules), evaluate constraints WITHIN that scope. Flag risks that affect the user's specified approach, not risks that argue for a different approach.

Report: potential breaking changes, security considerations, performance, compatibility.
Working directory: ${CWD}

Expand Down Expand Up @@ -190,6 +199,8 @@ ${STEP_4_OUTPUT}

### Instructions

CONSTRAINT VERIFICATION: Before drafting, check that RECON findings align with the user's original feature request (${FEATURE}). If the user specified a target crate, architecture, or key files, the plan MUST target those — not alternatives suggested by codebase pattern matching. If RECON findings contradict user constraints, note the conflict and follow the user's intent.

#### TODO Structure Requirements

The TODO plan MUST include the following sections for context recovery:
Expand Down
11 changes: 11 additions & 0 deletions patterns/mktd/workflow.toml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ title = "Phase 1 — RECON Dimension 1 (Structure)"
tool = "csa"
prompt = """
Analyze codebase structure relevant to ${FEATURE}.

CONSTRAINT ANCHOR: The user prompt above may specify target crates, key files, integration points, or architectural approach. If so, these are HARD CONSTRAINTS — start exploration from the specified files/modules and expand outward only as needed. Do NOT explore unrelated crates as primary targets. If the user specified key files, those MUST appear in your report.

Report: relevant files (path + purpose, max 20), key types, module dependencies, entry points.
Working directory: ${CWD}"""
tier = "tier-1-quick"
Expand All @@ -216,6 +219,9 @@ title = "Phase 1 — RECON Dimension 2 (Patterns)"
tool = "csa"
prompt = """
Find existing patterns or similar features to ${FEATURE} in this codebase.

CONSTRAINT ANCHOR: If the user prompt specifies an architectural approach or target crate, pattern discovery MUST be scoped to that context first. Do NOT let codebase pattern matching override the user's explicit requirements. Report patterns that SUPPORT the user's specified approach, not patterns that suggest a different approach.

Report: file paths with approach, reusable components, conventions to follow.
Working directory: ${CWD}"""
tier = "tier-1-quick"
Expand All @@ -228,6 +234,9 @@ title = "Phase 1 — RECON Dimension 3 (Constraints)"
tool = "csa"
prompt = """
Identify constraints and risks for implementing ${FEATURE}.

CONSTRAINT ANCHOR: If the user prompt specifies scope boundaries (target crate, specific modules), evaluate constraints WITHIN that scope. Flag risks that affect the user's specified approach, not risks that argue for a different approach.

Report: potential breaking changes, security considerations, performance, compatibility.
Working directory: ${CWD}"""
tier = "tier-1-quick"
Expand All @@ -253,6 +262,8 @@ ${STEP_4_OUTPUT}

### Instructions

CONSTRAINT VERIFICATION: Before drafting, check that RECON findings align with the user's original feature request (${FEATURE}). If the user specified a target crate, architecture, or key files, the plan MUST target those — not alternatives suggested by codebase pattern matching. If RECON findings contradict user constraints, note the conflict and follow the user's intent.

Each item is a [ ] checkbox with executor tag.
Write all TODO descriptions, section headers, and task names in `${STEP_1_OUTPUT}`.
Technical terms, code snippets, commit scope strings, and executor tags remain in English.
Expand Down
4 changes: 2 additions & 2 deletions weave.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
csa = "0.1.107"
weave = "0.1.107"
csa = "0.1.110"
weave = "0.1.110"
last_migrated_at = "2026-03-08T12:08:01.820964091Z"

[migrations]
Expand Down
Loading