Skip to content

fix(goncho): lock topology design fixtures - #10

Merged
XelHaku merged 1 commit into
mainfrom
autoloop/20260425T024216Z/w3/3-3.f-goncho-topology-design-fixtures
Apr 25, 2026
Merged

fix(goncho): lock topology design fixtures#10
XelHaku merged 1 commit into
mainfrom
autoloop/20260425T024216Z/w3/3-3.f-goncho-topology-design-fixtures

Conversation

@XelHaku

@XelHaku XelHaku commented Apr 25, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@XelHaku
XelHaku merged commit 62d33bc into main Apr 25, 2026
@XelHaku
XelHaku deleted the autoloop/20260425T024216Z/w3/3-3.f-goncho-topology-design-fixtures branch April 25, 2026 07:48
XelHaku added a commit that referenced this pull request Apr 25, 2026
Implements items #6 and #10 from docs/cmd-loops-improvements.md.

#6 — Doctor actually diagnoses drift:
  * planner-loop doctor now also: parses+validates progress.json,
    verifies PLANNER_TRIGGERS_PATH is writable, and emits an advisory
    warning when the latest health_updated event is older than
    2× PLANNER_INTERVAL (planner ledger) or 1h (builder ledger).
  * builder-loop doctor introduced (was absent) with the same
    progress.json + triggers writability + builder-loop drift checks.
  * Drift warnings are advisory (exit 0) so doctor remains
    automation-safe; only hard preconditions (missing progress, parse
    failure, unwritable triggers path) fail the check.

#10 — Table-driven progress write:
  * Replaced the nine near-identical rewriteProgressMarker blocks with
    a []progressMarker table driven by one loop. Adding a new marker
    is now appending one struct entry instead of editing four
    boilerplate lines.

Helper extraction:
  * latestLedgerEventTime + driftWarning + triggerPathWritable are
    duplicated in both binaries for now (no internal/cmdcommon yet).
    Item #11 will collapse them once the cliDeps refactor lands.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
XelHaku added a commit that referenced this pull request Apr 25, 2026
Completes item #10 from docs/cmd-loops-improvements.md. The previous
commit's diff for this file silently dropped because the prepared
old_string referenced the pre-rename autoloopHandoff field name; the
intent was always to refactor here.

Replaced the nine near-identical rewriteProgressMarker blocks with a
[]progressMarker table driven by one loop. Adding a new generated
marker is now appending one struct entry instead of editing four
boilerplate lines.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant