Compare commits
2 Commits
85456d2a61
...
792c96f14f
| Author | SHA1 | Date | |
|---|---|---|---|
| 792c96f14f | |||
| f84edf10c7 |
4
TASKS.md
4
TASKS.md
@@ -100,4 +100,8 @@ To ensure smooth execution, execute the tracks in the following order:
|
|||||||
**Context:** In `conductor_tech_lead.py`, the `generate_tickets` function relies on a generic `try...except` block to parse the LLM's JSON ticket array. If the model hallucinates or outputs invalid JSON, it silently returns an empty array `[]`, causing the GUI to fail the track creation process without giving the model a chance to self-correct.
|
**Context:** In `conductor_tech_lead.py`, the `generate_tickets` function relies on a generic `try...except` block to parse the LLM's JSON ticket array. If the model hallucinates or outputs invalid JSON, it silently returns an empty array `[]`, causing the GUI to fail the track creation process without giving the model a chance to self-correct.
|
||||||
**Goal:** Implement a programmatic retry loop that catches `JSONDecodeError` and feeds the error back to the Tier 2 model for self-correction before failing the UI operation.
|
**Goal:** Implement a programmatic retry loop that catches `JSONDecodeError` and feeds the error back to the Tier 2 model for self-correction before failing the UI operation.
|
||||||
|
|
||||||
|
### `strict_static_analysis_and_typing`
|
||||||
|
**Context:** Running `uv run ruff check .` and `uv run mypy --explicit-package-bases .` revealed massive technical debt in type safety (512+ Mypy errors across 64 files, 200+ remaining Ruff violations). The `gui_2.py` and `api_hook_client.py` files specifically have severe "Any" bleeding and incorrect unions.
|
||||||
|
**Goal:** Resolve all static analysis errors. Enforce strict `mypy` compliance, remove implicit `Optional` types, and fix ambiguous variables (`l`). Integrate `ruff` and `mypy` into a CI pre-commit hook so Tier 3 workers are forced to write type-safe code going forward.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ def main():
|
|||||||
time.sleep(2) # Give it time to clear
|
time.sleep(2) # Give it time to clear
|
||||||
# 2. Initial message
|
# 2. Initial message
|
||||||
initial_msg = "Hello! I want to create a simple python script that prints 'Hello World'. Can you help me?"
|
initial_msg = "Hello! I want to create a simple python script that prints 'Hello World'. Can you help me?"
|
||||||
print(f"
|
print(f" [USER]: {initial_msg}")
|
||||||
[USER]: {initial_msg}")
|
|
||||||
client.set_value("ai_input", initial_msg)
|
client.set_value("ai_input", initial_msg)
|
||||||
client.click("btn_gen_send")
|
client.click("btn_gen_send")
|
||||||
# 3. Wait for AI response
|
# 3. Wait for AI response
|
||||||
@@ -37,14 +36,11 @@ def main():
|
|||||||
# Something happened
|
# Something happened
|
||||||
last_entry = entries[-1]
|
last_entry = entries[-1]
|
||||||
if last_entry.get('role') == 'AI' and last_entry.get('content'):
|
if last_entry.get('role') == 'AI' and last_entry.get('content'):
|
||||||
print(f"
|
print(f" [AI]: {last_entry.get('content')[:100]}...")
|
||||||
[AI]: {last_entry.get('content')[:100]}...")
|
print(" Ping-pong successful!")
|
||||||
print("
|
|
||||||
Ping-pong successful!")
|
|
||||||
return
|
return
|
||||||
last_entry_count = len(entries)
|
last_entry_count = len(entries)
|
||||||
print("
|
print(" Timeout waiting for AI response")
|
||||||
Timeout waiting for AI response")
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user