Skip to content

feat(tasks): two questions of the shape only one upstream question has - #9

Merged
lex00 merged 4 commits into
mainfrom
feat/negative-question-set
Aug 3, 2026
Merged

lex00 merged 4 commits into
mainfrom
feat/negative-question-set

Conversation

@lex00

@lex00 lex00 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

list-unused-security-groups-all-regions is 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

arm score account reads how it answered
No tool (AWS CLI) 6/6 16 swept the account
Terraform 0/6 1 read terraform.tfstate
chant 0/6 0 read its recorded snapshot

Estate: 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:

  • Written before any arm ran them. The estate was checked only for whether answers were non-trivial.
  • Five candidates discarded for having trivial answers here: unattached ENIs (0), unassociated route tables (0), groups referenced only by other groups (0), unattached volumes (0), groups with no ingress rules (7 of 8, so no discrimination). Listed because the survivors look cherry-picked without them.
  • A defect caught by running them first. The initial subnet reference claimed the empty subnets included "unused subnets in the deployed VPCs" — false, all eight are in default VPCs. A trial answered exactly right and was failed for contradicting it. Both references now assert only what pre_invoke computes.
  • Not as hard as advertised. bare gets 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.
  • Scored separately from the eight-question board, which would otherwise silently move every arm's denominator.

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.sh scores an already-deployed estate, 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.

lex00 and others added 4 commits August 2, 2026 21:50
`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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant