ledger: diagnosable executor attribution via TDD_EXECUTOR_MODEL and Executor.reason - #92
Merged
Merged
Conversation
TDD-Run: 15 TDD-Cycle: 1 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 1 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 1 TDD-Phase: refactor
TDD-Run: 15 TDD-Cycle: 2 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 2 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 2 TDD-Phase: refactor
TDD-Run: 15 TDD-Cycle: 3 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 3 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 4 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 4 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 5 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 5 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 6 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 6 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 7 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 7 TDD-Phase: green
TDD-Run: 15 TDD-Cycle: 8 TDD-Phase: red
TDD-Run: 15 TDD-Cycle: 8 TDD-Phase: green
…in §5.1 and harness-integration
Merged
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.
Summary
TDD_EXECUTOR_MODELenv var: harnesses that know the executor set this; recorded withsource: declared, wins over transcript detection. Fixes subagent attribution (subagents inherit the parent'sCLAUDE_CODE_SESSION_IDand would be mis-attributed; the launching harness now has an explicit override channel).Executor.reason: records why detection fell back tounknown(session env not set; no transcript for the session; transcript has no model records) — the failure is diagnosable instead of silent.run startemits anexecutor_unknownintegrity event and setsexecutor_warningin the success envelope when the source isunknown— the gap is visible at the moment it can still be fixed.tdd doctorreports an informationalexecutor identitycheck (alwaysok: true) showing<source>: <model>plus the reason when unknown.Commits
Quality gates
uv run ruff check src tests— passeduv run pytest tests/— 426 passedTest coverage note
All decision-point operators in new code are covered by at least one test (pseudo-mutation analysis passed).
Closes #74