Steps 309-319: Sprint 11 Phases 11d-e — Kotlin/C# languages + workflow annotation foundation

Phase 11d (Steps 309-313): Kotlin + C# parsers and generators
- KotlinParser (regex-based): fun, suspend fun, class, data class, val/var
- KotlinGenerator: idiomatic Kotlin output with type mappings
- CSharpParser (regex-based): methods, async, class, interface
- CSharpGenerator: Allman braces, foreach, Task async, LINQ types
- Pipeline integration for both languages, 10 parsers + 10 generators

Phase 11e (Steps 314-319): Workflow annotation foundation
- AnnotationInference: generalized multi-subject inference engine
- Subject 9 routing annotations: ContextWidth, Review, Ambiguity,
  Automatability, Priority, ImplementationStatus
- SkeletonAST: project specification before code exists
- Architect tooling: createSkeleton, addSkeletonNode, getProjectModel,
  inferAnnotations RPCs + 4 MCP tools (42+ total)
- Inference-to-routing bridge: complexity→ambiguity, getter→deterministic
- TrainingDataExporter + TrainingDataGenerator scaffolding

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bill
2026-02-15 15:50:06 -07:00
parent a2a9fe6f97
commit 0d51a6fe4c
34 changed files with 5801 additions and 4 deletions

View File

@@ -294,6 +294,18 @@ std::string dispatchGenerate(Gen* gen, const ASTNode* node, const std::string& u
} else if (node->conceptType == "DecisionAnnotation") {
return gen->visitDecisionAnnotation(static_cast<const DecisionAnnotation*>(node));
}
// Subject 9: Workflow Routing
else if (node->conceptType == "ContextWidthAnnotation") {
return gen->visitContextWidthAnnotation(static_cast<const ContextWidthAnnotation*>(node));
} else if (node->conceptType == "ReviewAnnotation") {
return gen->visitReviewAnnotation(static_cast<const ReviewAnnotation*>(node));
} else if (node->conceptType == "AutomatabilityAnnotation") {
return gen->visitAutomatabilityAnnotation(static_cast<const AutomatabilityAnnotation*>(node));
} else if (node->conceptType == "PriorityAnnotation") {
return gen->visitPriorityAnnotation(static_cast<const PriorityAnnotation*>(node));
} else if (node->conceptType == "ImplementationStatusAnnotation") {
return gen->visitImplementationStatusAnnotation(static_cast<const ImplementationStatusAnnotation*>(node));
}
// Semantic Core
else if (node->conceptType == "IntentAnnotation") {
return gen->visitIntentAnnotation(static_cast<const IntentAnnotation*>(node));