Repository navigation
feat(attest): add --control to attest override and show overrides in get trail - #1435
Merged
Merged
Conversation
An override of a decision belongs to the control the decision was for. When the decision was reported the server takes the control from it, but a decision that was never reported has none to take, so its override appeared on no control's page and satisfied no policy rule written for a control. The flag lets the caller name the control. The server refuses a control for any other attestation type, so the CLI says so before sending anything. See kosli-dev/server#6645 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The tests of attest override checked its flags and that the server answered, never that anything changed. A failed attestation is now reported, overridden, and the trail read back before and after: the slot goes from non-compliant to compliant and becomes the override, naming the attestation it overrides. See kosli-dev/server#6645 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
get trail gave no sign of an override. A slot whose newest attestation is an override looked like any reported attestation, and an override event was printed as its raw type, attestation_overridden, with no compliance and no hint of what was overridden or why. The markdown attestation table now marks such a slot "(override)", and both outputs describe an override event with the type and name of what it overrode, the reason, and the compliance it gave; the markdown links it to the override. The fixture still carried overridden_attestation_id, which the server no longer returns; it has the fields that replaced it. See kosli-dev/server#6645 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Running the whole suite, rather than the override suite alone, showed two things the new flag needed. The audit of flags given an empty value did not know about it, so it is added to the audit's coverage file; an empty --control is refused like any other. And the new test created a control with the identifier the decision suite also creates, which the server refuses the second time, so it has one of its own. See kosli-dev/server#6645 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each run resets the test database, which recreates every collection and index. The mongo container ran at docker's default limit of open files, and as the server gained collections the second reset after a start began to pass it: mongo aborted with "Too many open files" and every later run failed at setup until the server was restarted. The limit is now the one the server repo gives its own test mongo. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ToreMerkely
enabled auto-merge (squash)
December 2, 2026 12:32
Contributor
|
Claude finished @ToreMerkely's task in 53s —— View job Follow-up review completeReviewed Status of previous findings:
New issues in the diff: none — the change is a documentation string only, no logic touched. No new inline comments posted. |
--control is only allowed with --original-attestation-type system:decision, but the help for that flag listed the builtin types and "custom" and never the decision type, so nothing told a user how to spell the one value --control needs. A flow template spells it "decision", which the server refuses on an override. The example for a custom type is now custom:<name>, as the server refuses a bare "custom" too. See kosli-dev/server#6645 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
jumboduck
approved these changes
Dec 2, 2026
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.
Prepares
kosli attest overridefor release, ahead of #1403 which unhides it.attest overridegains--control: an override of a decision that was never reported has no control to inherit, so it appeared on no control's page and satisfied no policy rule written for a control.get trailmarks a slot whose newest attestation is an override, and describes an override event with what it overrode, the reason and the compliance it gave.See kosli-dev/server#6645
Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR🤖 Generated with Claude Code