autoloop/20260425T054152Z/w7/4 4.b contextengine interface status tool contract - #30
Closed
XelHaku wants to merge 14 commits into
Closed
Conversation
XelHaku
commented
Apr 25, 2026
Collaborator
- test(autoloop): cover health flush failure path
- feat(autoloop): selection honors row health
- test(autoloop): cover penalty population and selection-reason annotation
- feat(autoloop): report repair pass salvages noisy worker output
- feat(planner): consume row health and preserve across regen
- test(autoloop): end-to-end reactive lifecycle
- fix(goncho): guard streaming chat persistence
- fix(goncho): report honcho queue status
- fix(autoloop): commit run health after promotion
- docs(progress): refresh completed Goncho queue slices
- Add Goncho file import ingestion
- autoloop: record run health
- docs(progress): refresh Goncho file import status
- Add context engine status contract
Adds TestRunOnce_HealthUpdateFailedEventOnFlushError to verify that a failed run-end Flush both emits the health_update_failed ledger event and propagates the error back to the caller. The failure is induced by chmod'ing the progress.json parent directory to read-only inside the runner callback, so atomicWrite fails after the initial Load. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds TryRepairReport infrastructure that reconstructs a FinalReport from secondary evidence (git commit + non-empty diff + PASS token + acceptance match) when ParseFinalReport fails on a worker's stdout. Also adds the RepairContext / RepairNote types and a writeRepairArtifact helper for forensic logging. Repair is conservative: it never accepts work without (1) a new commit on the worker branch vs base, (2) a non-empty diff, (3) a PASS token in stdout, and (4) every acceptance line present in stdout (or, if no acceptance set, PASS evidence alone is sufficient). Synthesized Acceptance strings satisfy the existing acceptanceEvidence() contract (RED with exit 1, GREEN with exit 0) so downstream gates see a valid shape. Scope adjustment vs the plan: the plan's Step 6.5 calls for wiring TryRepairReport into the production promotion flow as a fallback for ParseFinalReport. That call site does not exist in the current Go autoloop -- ParseFinalReport is only referenced from report.go and report_test.go. The promotion path in run.go promotes any worker that produces a commit without parsing the report; the report_validation_failed ledger events seen in production come from the legacy shell orchestrator, not the Go autoloop. So this commit ships the repair infrastructure with full unit-test coverage but does not touch run.go or promote.go and does not emit a report_repaired ledger event. The infrastructure is ready for whoever wires ParseFinalReport into production in a future task. Tests: 6 TryRepairReport scenarios (no commit, no PASS, missing acceptance line, empty acceptance accepts on PASS, all acceptance lines present accepts, empty diff fails) + 1 writeRepairArtifact JSON shape test. Existing strict ParseFinalReport tests untouched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Closed as superseded by rescue PR #42. Useful work was rescued into main; remaining differences are patch-id drift or unrelated branch-base noise. |
XelHaku
deleted the
autoloop/20260425T054152Z/w7/4-4.b-contextengine-interface-status-tool-contract
branch
April 25, 2026 08:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.