feat(uko): add analyzer plugin framework and initial domain analyzers #597
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/m6-uko-analyzers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the UKO analyzer plugin framework and two initial domain analyzers per issue #551.
Changes
New Files (9 created, 1 modified)
Core framework (
src/cleveragents/domain/models/acms/):analyzers.py(219 lines) —UKOTriple(frozen Pydantic v2 model),AnalyzerProtocol(@runtime_checkableProtocol),AnalyzerRegistry(extension-to-analyzer mapping with register/lookup/list)python_analyzer.py(365 lines) — AST-based Python source analyzer extracting modules, classes, functions, methods, imports, docstrings, base-class inheritance into UKO triplesmarkdown_analyzer.py(275 lines) — Line-by-line regex parser extracting document declarations, sections (heading hierarchy), fenced code blocks (with language), and links into UKO triples__init__.py— Updated with new exportsTests:
features/uko_analyzers.feature(193 lines) — 39 Behave scenarios covering UKOTriple model, AnalyzerRegistry, PythonAnalyzer, MarkdownAnalyzerfeatures/steps/uko_analyzers_steps.py(468 lines) — Step definitionsrobot/uko_analyzers.robot(65 lines) — 7 Robot Framework integration testsrobot/helper_uko_analyzers.py(241 lines) — Robot helper scriptBenchmarks:
benchmarks/uko_analyzers_bench.py(157 lines) — ASV benchmarks for triple construction, registry ops, analyzer performanceVerification
nox -s lint— All checks passednox -s format— 1076 files unchangednox -s typecheck— 0 errors, 0 warnings (Pyright strict mode)nox -s unit_tests -- features/uko_analyzers.feature— 1 feature, 39 scenarios, 103 steps passedDesign Decisions
supported_extensionsanddomainare@propertyonAnalyzerProtocol, matching the project's protocol patternsAnalyzerRegistrykeeps the first analyzer registered for each extension rather than overwritingPythonAnalyzerreturns empty list onSyntaxErrorinstead of raisingMarkdownAnalyzeruses line-by-line regex (no markdown library),PythonAnalyzeruses stdlibastuko://hierarchy —uko://code/module/,uko://code/class/,uko://docs/document/,uko://docs/section/ISSUES CLOSED: #551
4039162cac7f02e571d47f02e571d439aa737a8239aa737a82d990fc1b41