From 9c343bd637578d9639c38dc0ce6bc6c640a83a9b Mon Sep 17 00:00:00 2001 From: M Waleed Kadous Date: Sat, 25 Jul 2026 05:49:13 -0700 Subject: [PATCH 1/4] chore(porch): bugfix-1077 init bugfix --- .../status.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml diff --git a/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml b/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml new file mode 100644 index 000000000..7afc919c6 --- /dev/null +++ b/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml @@ -0,0 +1,14 @@ +id: bugfix-1077 +title: consult-pre-flight-auth-state- +protocol: bugfix +phase: investigate +plan_phases: [] +current_plan_phase: null +gates: + pr: + status: pending +iteration: 1 +build_complete: false +history: [] +started_at: '2026-07-25T12:49:13.351Z' +updated_at: '2026-07-25T12:49:13.351Z' From 8945f3d43dae522fa9bacbc7e0398e9eb78400c9 Mon Sep 17 00:00:00 2001 From: M Waleed Kadous Date: Sat, 25 Jul 2026 05:54:44 -0700 Subject: [PATCH 2/4] chore(porch): bugfix-1077 fix phase-transition --- .../bugfix-1077-consult-pre-flight-auth-state-/status.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml b/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml index 7afc919c6..182e54a3e 100644 --- a/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml +++ b/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml @@ -1,7 +1,7 @@ id: bugfix-1077 title: consult-pre-flight-auth-state- protocol: bugfix -phase: investigate +phase: fix plan_phases: [] current_plan_phase: null gates: @@ -11,4 +11,4 @@ iteration: 1 build_complete: false history: [] started_at: '2026-07-25T12:49:13.351Z' -updated_at: '2026-07-25T12:49:13.351Z' +updated_at: '2026-07-25T12:54:44.131Z' From fb09840d4f435b67d7e9f8702755e638c2b2ca69 Mon Sep 17 00:00:00 2001 From: M Waleed Kadous Date: Sat, 25 Jul 2026 05:55:03 -0700 Subject: [PATCH 3/4] [Bugfix] Fix TS2300 duplicate formatBytes import in doctor.ts Alias session-log-sweep's formatBytes as formatLogBytes and update its call site; migration-backup-audit's formatBytes stays unaliased. Fixes the broken build on main introduced by PR #1243. --- codev/state/task-08Gm_thread.md | 9 +++++++++ packages/codev/src/commands/doctor.ts | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 codev/state/task-08Gm_thread.md diff --git a/codev/state/task-08Gm_thread.md b/codev/state/task-08Gm_thread.md new file mode 100644 index 000000000..af9dcc174 --- /dev/null +++ b/codev/state/task-08Gm_thread.md @@ -0,0 +1,9 @@ +# Builder task-08Gm — thread + +## Task +Fix broken build on main: `packages/codev/src/commands/doctor.ts` imported `formatBytes` twice (from `../lib/migration-backup-audit.js` and `../agent-farm/servers/session-log-sweep.js`), causing TS2300 duplicate identifier. Landed via PR #1243. + +## Work log +- Confirmed both imports and both call sites: line 111 (session-log summary, uses `measureSessionLogs` data) and line 847 (migration-backup reclaimable bytes). +- Aliased the session-log-sweep import as `formatBytes as formatLogBytes` and updated line 111 to `formatLogBytes(bytes)`. The migration-backup import and its call site (line 847) are unchanged. +- Verifying with `npx tsc --noEmit` in `packages/codev` before creating the PR. diff --git a/packages/codev/src/commands/doctor.ts b/packages/codev/src/commands/doctor.ts index 1bab37d30..c7c961153 100644 --- a/packages/codev/src/commands/doctor.ts +++ b/packages/codev/src/commands/doctor.ts @@ -33,7 +33,7 @@ import { AGENT_FARM_DIR } from '@cluesmith/codev-core/constants'; import { measureSessionLogs, resolveLogRetentionDays, - formatBytes, + formatBytes as formatLogBytes, } from '../agent-farm/servers/session-log-sweep.js'; const __filename = fileURLToPath(import.meta.url); @@ -108,7 +108,7 @@ export function checkSessionLogs( }; } - const summary = `${files} file(s), ${formatBytes(bytes)}`; + const summary = `${files} file(s), ${formatLogBytes(bytes)}`; if (bytes < SESSION_LOG_WARN_BYTES) { return { status: 'ok', files, bytes, retentionDays, summary, retentionNote }; } From be9cb83a33598af5e07b0b0bbd140287e3e479cf Mon Sep 17 00:00:00 2001 From: M Waleed Kadous Date: Sat, 25 Jul 2026 05:55:34 -0700 Subject: [PATCH 4/4] [Bugfix] Update builder thread: PR #1249 created --- codev/state/task-08Gm_thread.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codev/state/task-08Gm_thread.md b/codev/state/task-08Gm_thread.md index af9dcc174..834c357f6 100644 --- a/codev/state/task-08Gm_thread.md +++ b/codev/state/task-08Gm_thread.md @@ -7,3 +7,7 @@ Fix broken build on main: `packages/codev/src/commands/doctor.ts` imported `form - Confirmed both imports and both call sites: line 111 (session-log summary, uses `measureSessionLogs` data) and line 847 (migration-backup reclaimable bytes). - Aliased the session-log-sweep import as `formatBytes as formatLogBytes` and updated line 111 to `formatLogBytes(bytes)`. The migration-backup import and its call site (line 847) are unchanged. - Verifying with `npx tsc --noEmit` in `packages/codev` before creating the PR. + +## PR +- PR #1249 created: https://github.com/cluesmith/codev/pull/1249 — verified with `pnpm exec tsc --noEmit` (clean after building codev-core). +- `afx send architect` failed with NOT_FOUND (workspace not active in Tower from this nested worktree); architect notification could not be delivered via afx.