AI project: duplicate method body in awm_flow.py, unreachable except blocks, stub LLM implementations #5
Labels
No labels
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
bug
documentation
enhancement
feature-request
in-progress
quickfix
research
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/infrastructure#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
AI project (~/Projects/AI/) has 15+ sub-projects. Critical bugs:
Feature Triage Assessment
Scope: medium
Risk: medium
Spec Alignment: misaligned
Summary: Fix 4 Python code quality and functional bugs in the AI project's crew_awm sub-project — duplicate 30-line method body in awm_flow.py:306-362, dead except block at awm_flow.py:141-146, stub OpenAI/Anthropic LLM clients in llm.py (all raise NotImplementedError), broken from src. import in tool_manager.py, and llm=None crash in interpreter_crew.py's ConversationSummaryMemory.
Recommendation: Close as misaligned — this issue describes application-level bugs in ~/Projects/AI/crew_awm, not infrastructure/system-level concerns defined in the infrastructure repo's README. If the bugs warrant fixing: (1) the duplicated method and dead except in awm_flow.py are trivial to remove, (2) llm.py's stubs comment that callers should use CrewAI directly — consider deleting the abstraction as dead code rather than implementing real clients, (3) tool_manager.py's import assumes PYTHONPATH is set, (4) interpreter_crew.py needs a fallback LLM before ConversationSummaryMemory is constructed. File these in a project-specific tracker, not infrastructure.
Rationale: SCOPE=medium because although only 4 files are touched, implementing real OpenAI/Anthropic LLM clients involves significant new API logic; the other 3 fixes are trivial. RISK=medium because LLM client implementation involves network I/O and credentials. SPEC=misaligned because the infrastructure repo's README explicitly scopes it to 'System-level bugs (Hindsight duplicates, CUDA mismatches, provider rotation)' — not application code bugs in a separate project. The llm.py stubs even tell callers to use CrewAI directly, suggesting the abstraction itself may be unused and could be deleted rather than implemented.
Labeled
blocked:needs-decision— unblock on Forgejo to dispatch to the fixer pipeline.⏸ Needs Decision
What needs to be decided?
blocked:needs-decisionlabel to route back to triage.Blocking factors:
Scope: small Risk: low Spec: partial Type: bug
Summary: Fix 5 bugs in the AI project (~/Projects/AI/): duplicate method body in awm_flow.py, dead except blocks, unimplemented LLM client stubs in llm.py, broken import path in tool_manager.py, and llm=None crash in interpreter_crew.py.
Suggestion: Fix each bug with targeted patches: (1) remove duplicated lines 306-362 in awm_flow.py, (2) remove the second identical except block at lines 133-146, (3) implement OpenAI/Anthropic LLM client methods with actual API calls, (4) fix import path in tool_manager.py from src. to correct project structure, (5) pass a valid llm instance to ConversationSummaryMemory. Could be done as a single commit given small scope.
Rationale: Scope=small because all 5 bugs touch <5 files with trivial-to-modest fixes (mostly deletions and one-liners). Risk=low because all changes are additive/restorative — fixing broken code, not touching working paths. Spec=partial because the bugs are in ~/Projects/AI/ code being tracked through the infrastructure repo, which is a scope stretch from the repo's stated purpose of infrastructure issue tracking. Type=bug throughout.
To unblock: Remove the
blocked:needs-decisionlabel. The triage will apply the appropriate outcome based on your choice above.Overseer recovery — session timed out (10min idle)
Findings from
quickfix-infrastructure-5:**/awm_flow.py,**/llm.py, etc.) against theinfrastructurerepo, getting 0 matches, and idling.awm_flow.py,llm.py,tool_manager.py,interpreter_crew.py) live in~/Projects/AI/crew_awm, not ininfrastructure. The quickfix pipeline checked outMark/infrastructureand expected the model to discover the cross-repo target, which didn't happen.infrastructure/main(0fd316e,1630018— pre-commit hooks) are unrelated; they belong to issue #77, not #5.Recovery actions taken:
tmuxreportedcan't find session).quickfixlabel withtriage-approved+blocked:needs-human(note:blocked:needs-attentiondoes not exist in this repo;blocked:needs-humanis the closest semantic match).~/Projects/AI/crew_awmuntouched (only pre-staged chroma_tools/embeddings deletions from an unrelated cleanup, not part of this issue).Recommended next step: Issue #5 needs to be re-dispatched with
crew_awmas the target repo, or its target-path needs to be clarified in the issue body. It cannot be fixed by a session running ininfrastructure.