[PR #77] Read the Real CI Log First When an Automatic Check Fails
- What changed: When an automatic check fails, the work procedure now says to read the failure digest first, before asking what went wrong.
- Decision: The existing decision that the party running the procedure does not get an access token stays as it is.
- Still unknown: I have not yet confirmed that the digest is actually written automatically on the next failure.
What and why
When a piece of work failed an automatic check (CI), the side running the procedure could only see that it had failed. It did not know the cause. It kept asking the worker questions and stalled for more than an hour. The procedure had a step saying “send the end of the log,” but that side had no permission to read the log, so the instruction could not be followed.
Claude changed the check side to read the log of the failed run and save a digest: the names of the failed tests, the first line of the error, and the end of the failing step. Secrets are masked. The procedure now says to read this digest before asking.
Chosen approach and rejected alternatives
- Chosen: Prepare the digest ahead of time, and have the procedure read it. Permissions stay as they are.
- Rejected: Give the procedure side permission to read logs. That would let it do things it is supposed to block, so this was dropped.
- Rejected: Send the full digest to every worker. Too much information would go to external models, so only the needed file is passed on.
How it was checked
- Claude produced a digest for a real failed run. The first error line and the three failed tests matched the cause.
- The paths and field names were checked against the check side’s documentation and scripts.
What I learned
- A test built with a fake tool can miss differences in the real environment. This time, it was found only after installing and running for real.
- When the party that reports a failure and the party that knows the cause are different, the cause must be passed along in a digest first.
- Changing a procedure does not change permission decisions. Write the procedure so it does not reach past its permissions.