Skip to content

Commit 993438d

Browse files
committed
fix: complete Emasoft→AI Maestro prefix cleanup across entire repo
Full repo scan via grep found and fixed ALL remaining wrong prefixes: - EPA→AMPA in decision-trees-core.md (6), template-bug-report.md (2), template-pull-request.md (3) - ecos_session→amcos_session in amoa_confirm_replacement.py (3) - ecos_notified→amcos_notified in amoa_confirm_replacement.py (7) - ecos_notification→amcos_notification in amoa_confirm_replacement.py (1) - Fixed ruff E741 (ambiguous var 'l'→'lbl') in kanban_manager + sync - Fixed mypy list-item type error in amoa_aimaestro_sync.py Verified: zero e-prefix occurrences remain (EAMA/ECOS/EOA/EIA/EPA/EAA/emasoft-*) CPV validation: 0 CRITICAL, 0 MAJOR, 0 MINOR, 0 NIT, 0 WARNING
1 parent 71f554a commit 993438d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/amoa_aimaestro_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def sync_task(
141141
returncode, _, stderr = _run_task_command([
142142
"upsert",
143143
"--team", team_id,
144-
"--external-ref", task_data["externalRef"],
144+
"--external-ref", str(task_data["externalRef"]),
145145
"--data", json.dumps(task_data),
146146
])
147147

@@ -240,7 +240,7 @@ def bulk_sync(team_id: str) -> dict[str, int]:
240240
for issue in github_issues:
241241
issue_number = issue["number"]
242242
labels = issue.get("labels", [])
243-
label_names = [l.get("name", "") for l in labels]
243+
label_names = [lbl.get("name", "") for lbl in labels]
244244

245245
# Skip issues without task labels
246246
if not any(name.startswith("status:") for name in label_names):

scripts/amoa_kanban_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ def assign_task_to_agent(issue_number: int, agent_name: str) -> bool:
316316
title = data.get("title", f"Issue #{issue_number}")
317317
labels = data.get("labels", [])
318318
status = "backlog"
319-
for l in labels:
320-
if l.get("name", "").startswith("status:"):
321-
status = l["name"].removeprefix("status:")
319+
for lbl in labels:
320+
if lbl.get("name", "").startswith("status:"):
321+
status = lbl["name"].removeprefix("status:")
322322
sync_task(team_id=TEAM_ID, issue_number=issue_number, issue_title=title, status=status, agent_id=agent_name)
323323

324324
return True

0 commit comments

Comments
 (0)