feat: prove the lessons, check overlays in evaluation, and settle the cost steps
Some checks failed
validation / verify (push) Failing after 13s
Some checks failed
validation / verify (push) Failing after 13s
- Schema review: a dotted path is judged only when it starts at a name the resource type has, so a database flag or a service name is no longer read as a missing setting. Lesson L-04, which worked around that, is retired. - Skill routing: in a Change request the question says what changed. - Evaluation: a case may list code_standards the infrastructure code must meet; case 06 checks its overlay's regions, naming and labels. - Model tiers (iteration 5 step 6): a lighter model for a role's first attempt, named in the provider bundle. Measured on case 03 and left off: Flash saved five cents on the IaC author and took twice the requests. - Steps 7 and 9 decided against on the numbers, recorded in the plans. - Plans: the runs of cases 05 and 06, and the first proof of the lessons on case 03 (no Revision, 22 minutes against 28, quality held). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -240,6 +240,23 @@ async def test_a_setting_found_anywhere_in_the_resource_type_is_accepted():
|
||||
assert await SchemaReview(Runner())(K.TARGET_ARCHITECTURE, design, None) == ()
|
||||
|
||||
|
||||
async def test_a_value_written_with_dots_is_not_read_as_a_setting():
|
||||
"""A database flag or a service name is a value. A path is a setting only when
|
||||
it starts at a name the resource type has."""
|
||||
design = graph(
|
||||
[
|
||||
("E-1", "the flag cloudsql.iam_authentication is on"),
|
||||
("E-1", "audit logs are on for run.googleapis.com"),
|
||||
("E-1", "template.scaling.made_up_count is at least 2"),
|
||||
("E-2", "the name is set"),
|
||||
]
|
||||
)
|
||||
|
||||
raised = await SchemaReview(Runner())(K.TARGET_ARCHITECTURE, design, None)
|
||||
|
||||
assert len(raised) == 1 and "template.scaling.made_up_count" in raised[0]
|
||||
|
||||
|
||||
async def test_a_resource_type_the_provider_lacks_is_raised_with_close_matches():
|
||||
design = graph(
|
||||
[("E-1", "the name is set"), ("E-2", "the name is set")],
|
||||
|
||||
Reference in New Issue
Block a user