Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
fd99605
chore(pyrefly): restart rollout from master - Phase 0 baseline
tommy-ca Nov 19, 2025
8335f95
docs(pyrefly): update rollout status - Phase 0 baseline complete
tommy-ca Nov 19, 2025
cac89c4
fix(pyrefly): resolve 11 unsupported-operation errors in Phase 0
tommy-ca Nov 19, 2025
3c05f01
docs(pyrefly): update progress - Phase 0.1 unsupported-operation fixe…
tommy-ca Nov 19, 2025
e38ddf8
fix(pyrefly): resolve 10 unbound-name errors in Phase 0.2
tommy-ca Nov 19, 2025
955233a
docs(pyrefly): update progress - Phase 0.2 unbound-name fixes complete
tommy-ca Nov 19, 2025
bd76e99
fix(pyrefly): resolve 6 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
74d006f
docs(pyrefly): update progress - Phase 0.3 started with missing-attri…
tommy-ca Nov 19, 2025
45ae135
fix(pyrefly): resolve 11 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
7e6908f
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes
tommy-ca Nov 19, 2025
a602585
fix(pyrefly): resolve 8 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
f6fe6ab
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
e7c5329
fix(pyrefly): resolve 8 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
77fa62b
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
17e790b
fix(pyrefly): resolve 3 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
44280a1
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
7c55aed
fix(pyrefly): resolve 3 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
ef8621a
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
de71e3f
fix(pyrefly): resolve 5 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
e041ce8
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
5847ca2
fix(pyrefly): resolve 2 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
38efcf5
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
65bd217
fix(pyrefly): resolve 2 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
c8368be
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
1ea89c3
feat(pyrefly): exclude generated Python packages from type checking
tommy-ca Nov 19, 2025
deb7115
fix(pyrefly): resolve 4 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
64d7004
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
24c60d6
fix(pyrefly): resolve 2 missing-attribute errors in Phase 0.3
tommy-ca Nov 19, 2025
772a602
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
4abc50c
fix(pyrefly): resolve 1 missing-attribute error in Phase 0.3
tommy-ca Nov 19, 2025
e4adef4
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
196b10c
fix(pyrefly): add type ignore for ClientConnection.closed attribute
tommy-ca Nov 19, 2025
2562088
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
8c1bcdd
fix(pyrefly): add type ignores for ClientConnection methods
tommy-ca Nov 19, 2025
15f1b85
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
eb5c040
fix(pyrefly): add type ignores for ClientConnection and ClientSession…
tommy-ca Nov 19, 2025
afde57f
docs(pyrefly): update progress - Phase 0.3 missing-attribute fixes co…
tommy-ca Nov 19, 2025
2b01e4f
feat(kiro): create comprehensive spec for pyrefly type error reductio…
tommy-ca Nov 19, 2025
9b2ae66
docs(pyrefly): update status - kiro spec created for rollout tracking
tommy-ca Nov 19, 2025
acb52d2
docs: remove temporary planning docs and intermediate files
tommy-ca Nov 19, 2025
f561050
docs: update references for moved deliverables
tommy-ca Nov 19, 2025
0fd8b67
docs: add deliverables directory index
tommy-ca Nov 19, 2025
870e1ae
docs: reorganize deliverables from root and e2e to docs/deliverables/
tommy-ca Nov 19, 2025
61efbc2
chore: sync kiro steering prompts and shift-left spec
tommy-ca Nov 21, 2025
d5fa712
feat: add normalized v2 protobuf schemas and helpers
tommy-ca Nov 21, 2025
330a103
feat: add schema registry v2 publishing path to Kafka callback
tommy-ca Nov 21, 2025
cb859d9
test: cover kafka schema registry v2 path and update shift-left status
tommy-ca Nov 21, 2025
bfb7168
Fix schema registry fallback and buffer behavior
tommy-ca Nov 24, 2025
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
7 changes: 5 additions & 2 deletions .claude/agents/kiro/spec-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You will receive task prompts containing:
- Auto-approve flag (true/false)
- Mode: generate or merge

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand Down Expand Up @@ -118,6 +118,7 @@ Generate technical design document for feature based on approved requirements.
- **Steering Alignment**: Respect existing architecture patterns from steering context
- **Template Adherence**: Follow specs/design.md template structure and generation instructions strictly
- **Design Focus**: Architecture and interfaces ONLY, no implementation code
- **Requirements Traceability IDs**: Use numeric requirement IDs only (e.g. "1.1", "1.2", "3.1", "3.3") exactly as defined in requirements.md. Do not invent new IDs or use alphabetic labels.

## Tool Guidance
- **Read first**: Load all context before taking action (specs, steering, templates, rules)
Expand Down Expand Up @@ -166,6 +167,8 @@ Provide brief summary in the language specified in spec.json:
**Discovery Complexity Unclear**:
- **Default**: Use full discovery process (`.kiro/settings/rules/design-discovery-full.md`)
- **Rationale**: Better to over-research than miss critical context
- **Invalid Requirement IDs**:
- **Stop Execution**: If requirements.md is missing numeric IDs or uses non-numeric headings (for example, "Requirement A"), stop and instruct the user to fix requirements.md before continuing.

**Note**: You execute tasks autonomously. Return final report only when complete.
think
think
2 changes: 1 addition & 1 deletion .claude/agents/kiro/spec-impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You will receive task prompts containing:
- Target tasks: task numbers or "all pending"
- TDD Mode: strict (test-first)

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand Down
11 changes: 6 additions & 5 deletions .claude/agents/kiro/spec-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You are a specialized agent for generating comprehensive, testable requirements
- **Mission**: Generate comprehensive, testable requirements in EARS format based on the project description from spec initialization
- **Success Criteria**:
- Create complete requirements document aligned with steering context
- Use proper EARS syntax for all acceptance criteria
- Follow the project's EARS patterns and constraints for all acceptance criteria
- Focus on core functionality without implementation details
- Update metadata to track generation status

Expand All @@ -26,7 +26,7 @@ You will receive task prompts containing:
- File path patterns (NOT expanded file lists)
- Mode: generate

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand Down Expand Up @@ -65,10 +65,10 @@ Generate complete requirements for the feature based on the project description

## Important Constraints
- Focus on WHAT, not HOW (no implementation details)
- All acceptance criteria MUST use proper EARS syntax
- Requirements must be testable and verifiable
- Choose appropriate subject for EARS statements (system/service name for software)
- Generate initial version first, then iterate with user feedback (no sequential questions upfront)
- Requirement headings in requirements.md MUST include a leading numeric ID only (for example: "Requirement 1", "1.", "2 Feature ..."); do not use alphabetic IDs like "Requirement A".

## Tool Guidance
- **Read first**: Load all context (spec, steering, rules, templates) before generation
Expand All @@ -93,9 +93,10 @@ Provide output in the language specified in spec.json with:
- **Missing Project Description**: If requirements.md lacks project description, ask user for feature details
- **Ambiguous Requirements**: Propose initial version and iterate with user rather than asking many upfront questions
- **Template Missing**: If template files don't exist, use inline fallback structure with warning
- **Language Undefined**: Default to Japanese if spec.json doesn't specify language
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language
- **Incomplete Requirements**: After generation, explicitly ask user if requirements cover all expected functionality
- **Steering Directory Empty**: Warn user that project context is missing and may affect requirement quality
- **Non-numeric Requirement Headings**: If existing headings do not include a leading numeric ID (for example, they use "Requirement A"), normalize them to numeric IDs and keep that mapping consistent (never mix numeric and alphabetic labels).

**Note**: You execute tasks autonomously. Return final report only when complete.
think deeply
think deeply
19 changes: 14 additions & 5 deletions .claude/agents/kiro/spec-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ You will receive task prompts containing:
- Feature name and spec directory path
- File path patterns (NOT expanded file lists)
- Auto-approve flag (true/false)
- Sequential mode flag (true/false; default false → parallel allowed)
- Mode: generate or merge

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand All @@ -48,21 +49,27 @@ Generate implementation tasks for the feature based on approved requirements and
- `.kiro/specs/{feature}/tasks.md` (if exists, for merge mode)
- **Entire `.kiro/steering/` directory** for complete project memory

- Determine execution mode:
- `sequential = (sequential flag is true)`

**Validate approvals**:
- If auto-approve flag is true: Auto-approve requirements and design in spec.json
- Otherwise: Verify both approved (stop if not, see Safety & Fallback)

### Step 2: Generate Implementation Tasks

**Load generation rules and template**:
- Read `.kiro/settings/rules/tasks-generation.md` for principles
- Read `.kiro/settings/templates/specs/tasks.md` for format
- Read `.kiro/settings/rules/tasks-parallel-analysis.md` for parallel judgement criteria
- Read `.kiro/settings/templates/specs/tasks.md` for format (supports `(P)` markers)

**Generate task list following all rules**:
- Use language specified in spec.json
- Map all requirements to tasks
- Map all requirements to tasks and list numeric requirement IDs only (comma-separated) without descriptive suffixes, parentheses, translations, or free-form labels
- Ensure all design components included
- Verify task progression is logical and incremental
- Apply `(P)` markers to tasks that satisfy parallel criteria when `!sequential`
- Explicitly note dependencies preventing `(P)` when tasks appear parallel but are not safe
- If sequential mode is true, omit `(P)` entirely
- If existing tasks.md found, merge with new content

### Step 3: Finalize
Expand Down Expand Up @@ -127,6 +134,8 @@ Provide brief summary in the language specified in spec.json:
- **User Message**: "Template or rules files missing in `.kiro/settings/`"
- **Fallback**: Use inline basic structure with warning
- **Suggested Action**: "Check repository setup or restore template files"
- **Missing Numeric Requirement IDs**:
- **Stop Execution**: All requirements in requirements.md MUST have numeric IDs. If any requirement lacks a numeric ID, stop and request that requirements.md be fixed before generating tasks.

**Note**: You execute tasks autonomously. Return final report only when complete.
think deeply
think deeply
4 changes: 3 additions & 1 deletion .claude/agents/kiro/steering-custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You will receive task prompts containing:
- Domain/topic (e.g., "API standards", "testing approach")
- File path patterns (NOT expanded file lists)

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/settings/templates/steering-custom/*.md`) to find available templates
Expand Down Expand Up @@ -140,6 +140,8 @@ Review and customize as needed.
- Follow same granularity principles as core steering
- All steering files loaded as project memory
- Custom files equally important as core files
- Avoid documenting agent-specific tooling directories (e.g. `.cursor/`, `.gemini/`, `.claude/`)
- Light references to `.kiro/specs/` and `.kiro/steering/` are acceptable; avoid other `.kiro/` directories

**Note**: You execute tasks autonomously. Return final report only when complete.
think deeply
2 changes: 1 addition & 1 deletion .claude/agents/kiro/steering.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You will receive task prompts containing:
- Mode: bootstrap or sync (detected by Slash Command)
- File path patterns (NOT expanded file lists)

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- For Bootstrap mode: Read templates from `.kiro/settings/templates/steering/`
Expand Down
6 changes: 3 additions & 3 deletions .claude/agents/kiro/validate-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ You will receive task prompts containing:
- Feature name and spec directory path
- File path patterns (NOT expanded file lists)

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand Down Expand Up @@ -92,7 +92,7 @@ Provide output in the language specified in spec.json with:
- **Missing Design**: If design.md doesn't exist, stop with message: "Run `/kiro:spec-design {feature}` first to generate design document"
- **Design Not Generated**: If design phase not marked as generated in spec.json, warn but proceed with review
- **Empty Steering Directory**: Warn user that project context is missing and may affect review quality
- **Language Undefined**: Default to Japanese if spec.json doesn't specify language
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language

**Note**: You execute tasks autonomously. Return final report only when complete.
think hard
think hard
6 changes: 3 additions & 3 deletions .claude/agents/kiro/validate-gap.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ You will receive task prompts containing:
- Feature name and spec directory path
- File path patterns (NOT expanded file lists)

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand Down Expand Up @@ -93,7 +93,7 @@ Provide output in the language specified in spec.json with:
- **Requirements Not Approved**: If requirements not approved, warn user but proceed (gap analysis can inform requirement revisions)
- **Empty Steering Directory**: Warn user that project context is missing and may affect analysis quality
- **Complex Integration Unclear**: Flag for comprehensive research in design phase rather than blocking
- **Language Undefined**: Default to Japanese if spec.json doesn't specify language
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language

**Note**: You execute tasks autonomously. Return final report only when complete.
think hard
think hard
6 changes: 3 additions & 3 deletions .claude/agents/kiro/validate-impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You will receive task prompts containing:
- File path patterns (NOT expanded file lists)
- Target tasks: task numbers or auto-detect from conversation/checkboxes

### Step 0: Expand File Patterns (SubAgent-specific)
### Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:
- Glob(`.kiro/steering/*.md`) to get all steering files
Expand Down Expand Up @@ -140,7 +140,7 @@ Provide output in the language specified in spec.json with:
- **No Implementation Found**: If no `/kiro:spec-impl` in history and no `[x]` tasks, report "No implementations detected"
- **Test Command Unknown**: If test framework unclear, warn and skip test validation (manual verification required)
- **Missing Spec Files**: If spec.json/requirements.md/design.md missing, stop with error
- **Language Undefined**: Default to Japanese if spec.json doesn't specify language
- **Language Undefined**: Default to English (`en`) if spec.json doesn't specify language

**Note**: You execute tasks autonomously. Return final report only when complete.
think hard
think hard
10 changes: 6 additions & 4 deletions .claude/commands/kiro/spec-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ Check that requirements have been completed:

If validation fails, inform user to complete requirements phase first.

## Invoke SubAgent
## Invoke Subagent

Delegate design generation to spec-design-agent:

Use the Task tool to invoke the SubAgent with file path patterns:
Use the Task tool to invoke the Subagent with file path patterns:

```
Task(
subagent_type="spec-design-agent",
description="Generate technical design",
description="Generate technical design and update research log",
prompt="""
Feature: $1
Spec directory: .kiro/specs/$1/
Expand All @@ -37,16 +37,18 @@ File patterns to read:
- .kiro/steering/*.md
- .kiro/settings/rules/design-*.md
- .kiro/settings/templates/specs/design.md
- .kiro/settings/templates/specs/research.md

Discovery: auto-detect based on requirements
Mode: {generate or merge based on design.md existence}
Language: respect spec.json language for design.md/research.md outputs
"""
)
```

## Display Result

Show SubAgent summary to user, then provide next step guidance:
Show Subagent summary to user, then provide next step guidance:

### Next Phase: Task Generation

Expand Down
8 changes: 4 additions & 4 deletions .claude/commands/kiro/spec-impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ If validation fails, inform user to complete tasks generation first.

## Task Selection Logic

**Parse task numbers from `$2`** (perform this in Slash Command before invoking SubAgent):
**Parse task numbers from `$2`** (perform this in Slash Command before invoking Subagent):
- If `$2` provided: Parse task numbers (e.g., "1.1", "1,2,3")
- Otherwise: Read `.kiro/specs/$1/tasks.md` and find all unchecked tasks (`- [ ]`)

## Invoke SubAgent
## Invoke Subagent

Delegate TDD implementation to spec-tdd-impl-agent:

Use the Task tool to invoke the SubAgent with file path patterns:
Use the Task tool to invoke the Subagent with file path patterns:

```
Task(
Expand All @@ -51,7 +51,7 @@ TDD Mode: strict (test-first)

## Display Result

Show SubAgent summary to user, then provide next step guidance:
Show Subagent summary to user, then provide next step guidance:

### Task Execution

Expand Down
4 changes: 2 additions & 2 deletions .claude/commands/kiro/spec-quick.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Execute these 4 phases in order:
/kiro:spec-requirements {feature-name}
```

Wait for completion. SubAgent will return with "次のステップ" message.
Wait for completion. Subagent will return with "次のステップ" message.

**IMPORTANT**: In Automatic Mode, IGNORE the "次のステップ" message. It is for standalone usage.

Expand Down Expand Up @@ -163,7 +163,7 @@ Wait for completion. SubAgent will return with "次のステップ" message.

Note: `-y` flag auto-approves requirements.

Wait for completion. SubAgent will return with "次のステップ" message.
Wait for completion. Subagent will return with "次のステップ" message.

**IMPORTANT**: In Automatic Mode, IGNORE the "次のステップ" message.

Expand Down
6 changes: 3 additions & 3 deletions .claude/commands/kiro/spec-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Check that spec has been initialized:

If validation fails, inform user to run `/kiro:spec-init` first.

## Invoke SubAgent
## Invoke Subagent

Delegate requirements generation to spec-requirements-agent:

Use the Task tool to invoke the SubAgent with file path patterns:
Use the Task tool to invoke the Subagent with file path patterns:

```
Task(
Expand All @@ -44,7 +44,7 @@ Mode: generate

## Display Result

Show SubAgent summary to user, then provide next step guidance:
Show Subagent summary to user, then provide next step guidance:

### Next Phase: Design Generation

Expand Down
17 changes: 13 additions & 4 deletions .claude/commands/kiro/spec-tasks.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
---
description: Generate implementation tasks for a specification
allowed-tools: Read, Task
argument-hint: <feature-name> [-y]
argument-hint: <feature-name> [-y] [--sequential]
---

# Implementation Tasks Generator

## Parse Arguments
- Feature name: `$1`
- Auto-approve flag: `$2` (optional, "-y")
- Sequential mode flag: `$3` (optional, "--sequential")

## Validate
Check that design has been completed:
- Verify `.kiro/specs/$1/` exists
- Verify `.kiro/specs/$1/design.md` exists
- Determine `sequential = ($3 == "--sequential")`

If validation fails, inform user to complete design phase first.

## Invoke SubAgent
## Invoke Subagent

Delegate task generation to spec-tasks-agent:

Use the Task tool to invoke the SubAgent with file path patterns:
Use the Task tool to invoke the Subagent with file path patterns:

```
Task(
Expand All @@ -31,21 +33,28 @@ Task(
Feature: $1
Spec directory: .kiro/specs/$1/
Auto-approve: {true if $2 == "-y", else false}
Sequential mode: {true if sequential else false}

File patterns to read:
- .kiro/specs/$1/*.{json,md}
- .kiro/steering/*.md
- .kiro/settings/rules/tasks-generation.md
- .kiro/settings/rules/tasks-parallel-analysis.md (include only when sequential mode is false)
- .kiro/settings/templates/specs/tasks.md

Mode: {generate or merge based on tasks.md existence}
Instruction highlights:
- Map all requirements to tasks and list requirement IDs only (comma-separated) without extra narration
- Promote single actionable sub-tasks to major tasks and keep container summaries concise
- Apply `(P)` markers only when parallel criteria met (omit in sequential mode)
- Mark optional acceptance-criteria-focused test coverage subtasks with `- [ ]*` only when deferrable post-MVP
"""
)
```

## Display Result

Show SubAgent summary to user, then provide next step guidance:
Show Subagent summary to user, then provide next step guidance:

### Next Phase: Implementation

Expand Down
Loading
Loading