Repository navigation
feat(tasks): two questions of the shape only one upstream question has - #9
Merged
Merged
Conversation
`list-unused-security-groups-all-regions` is the most interesting result on the board and rests on a single question. Across every valid run, Pulumi, Terraform and AWS CDK have answered it 0 times out of 66 between them, while an agent holding nothing but the AWS CLI gets it 28% of the time and chant 51%. Every arm that keeps a state file is at zero, and the reason is structural: the answer is a negative about things a state file does not contain. Nothing the tool created references a group attached to nothing, so reading your own state cannot find what nothing points at. One question is an anecdote. These two ask the same shape — subnets nothing occupies (8 of 13 today), VPCs running nothing (2 of 6) — so the finding can be about the shape or shown not to be. Ground truth is computed live per run, like the security-group task, because the estate is redeployed with fresh ids before every run and a written-down count would rot. Verified against the deployed estate: 8 and 2. These are not aws-bench's questions, and the README says so. It also records the conditions, because a question set written by the author of one of the tools is worth nothing without them: written before any arm ran them, five other candidates discarded for having trivial answers on this estate, published whatever chant scores, and kept in their own set rather than folded into the eight-question board, which would silently move every arm's denominator. `run-negatives.sh` scores them against an estate that is already up, so it costs one agent run rather than a deploy. It reads the arm contract from arms.py so the two cannot drift, and runs the estate gate first, since scoring an estate this arm did not deploy would measure nothing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KHf72NPSxiR8wMqGiRkCmf
The first run of this question failed an answer that was exactly right. A trial reported "Total empty subnets: 8 — us-east-1: 2, us-west-1: 3, us-west-2: 3", which is the ground truth to the region, and scored 0. The fault was the reference. It said the empty subnets "include subnets in the account's default VPCs, as well as unused subnets in the deployed VPCs" — and the second half is false. All eight are in default VPCs. The agent said so, the judge saw an answer contradicting the reference on infrastructure state, which its rubric fails on, and marked a correct answer wrong. Both references now assert only what pre_invoke computes and nothing about where the resources live. The VPC one carried the same risk: its claim about default VPCs happens to be true on this estate and would stop being true the moment the estate changed shape. Caught by running the questions before publishing them, which is the whole reason for running them before publishing them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KHf72NPSxiR8wMqGiRkCmf
The no-tool baseline scored 6 of 6. These are not hard questions for an agent that reads the account, and the README said or implied otherwise. They are still worth running, for a narrower reason: every empty subnet on this estate is in a default VPC that no deployment created, so an arm reading only its own state cannot find one. Whether the state-file arms answer 0 here the way they do on security groups is the whole experiment. The difficulty is not comparable — the security-group question needs a cross-reference of every network interface and holds account-reading agents to 28%. Also records the defect the first run caught, since the file documents the conditions and a question that failed a correct answer is one of them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KHf72NPSxiR8wMqGiRkCmf
bare 6/6, Terraform 0/6, chant 0/6. chant reported 5 empty subnets of 15 and no empty VPCs at all, against a live estate with 8 of 13 and 2 of 6. Its snapshot carries 4 VPCs where the account has 6, and the two missing are the two that are empty: a snapshot anchored on things that exist has nothing to record for a VPC containing nothing. Terraform reaches the same blind spot from the other side — it does not record what it did not create — and said so itself, answering about 'every VPC under management in this Terraform configuration'. That makes the premise these were written under wrong as stated. The shape does not beat state-file tools while suiting chant; it beats every model of the estate, snapshots included, and only a live sweep answers it. The README says so because the commitment was to publish chant's score whatever it turned out to be. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KHf72NPSxiR8wMqGiRkCmf
This was referenced Aug 3, 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.
list-unused-security-groups-all-regionsis the most interesting result on the board and rests on a single question. Pulumi, Terraform and AWS CDK have answered it 0 times out of 66 between them, while an agent holding nothing but the AWS CLI gets it 28% and chant 51%.One question is an anecdote. These two ask the same shape — subnets nothing occupies, VPCs running nothing — so the finding can be about the shape, or shown not to be.
Results
terraform.tfstateEstate: 13 subnets (8 empty), 6 VPCs (2 empty). All three runs passed the audit.
Terraform stated the finding itself — "every VPC under management in this Terraform configuration", source
terraform.tfstate. It scoped the question to what it manages and confidently returned zero.chant fails them too, and that is the point of publishing this. It reported 5 empty subnets of 15 and no empty VPCs at all; its snapshot carries 4 VPCs where the account has 6, and the two missing are the two that are empty. A snapshot anchored on things that exist has nothing to record for a VPC containing nothing.
So the premise these were written under is wrong as stated. The shape does not beat state-file tools while suiting chant — it beats every model of the estate, snapshots included, and only a live sweep answers it.
Integrity conditions
These are not aws-bench's questions and the README says so. It also records:
pre_invokecomputes.baregets 6/6; a two-call sweep suffices. The security-group question holds account-reading agents to 28% because it needs a cross-reference of every ENI.Mechanics
Ground truth is computed live per run by each task's
pre_invoke.py, like the upstream security-group task, because the estate is redeployed with fresh ids before every run.run-negatives.shscores an already-deployed estate, so it costs one agent run rather than a deploy. It reads the arm contract fromarms.pyso the two cannot drift, and runs the estate gate first.