row-gen

command
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MPL-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

row-gen turns registry evidence into pastable, ratifiable admission rows (issue #44, #40's phase 4, #37's increment 2). For every TF type in live/mapping.json with a cfn_type (via name or alias), it classifies the type from live/registry.json's evidence - primaryIdentifier against the read-only and create-only property sets - into one of four buckets: proposed server-assigned, proposed client-named, needs a hand-chosen composite separator, or evidence-only. For via:fold rows (TF types mapping-gen decided are property-children of a CFN parent) it prints the property-child evidence and, when the parent is itself proposed, a parent-derived admission note.

Every mode but -emit only prints: the maintainer stance from #37 is that a wrong row touches live infrastructure, so a human pastes, edits and ratifies every block this tool proposes. -emit is the exception issue #96 added, and it writes the two generated tables outright - see emit.go for why that is a fixed point over already-ratified rows rather than a fresh derivation.

One consequence of that is worth stating where the modes are listed, since it is not what a generator usually behaves like (issue #263): a row that leaves the table cannot be brought back by re-running -emit, because the table it reads is the table it wrote last time. -emit therefore refuses to write a smaller table unless -allow-retraction says so. retraction.go is the whole of that gate and states the measurement behind it.

go run ./tools/row-gen              # every service batch, full report
go run ./tools/row-gen -service Lambda

-mismatches switches to a second mode entirely: for every type -emit would admit, it diffs a fresh proposal against the ratified entry and writes live/rowgen-mismatches.json - a measurement of this tool's own proposals against ground truth, not a row for live infrastructure. See comparison.go and mismatches.go for the comparison and the artifact.

go run ./tools/row-gen -mismatches

-schema-precedence writes live/schema-precedence.json, issue #387's own measurement over the same ratified rows: does the provider's identity schema reproduce the row? See schemafirst.go.

go run ./tools/row-gen -schema-precedence

-propose switches to a third mode (issue #65's PROPOSE stage): only the proposals whose classification rule has a spotless, large-enough historical record - see propose.go's own doc comment for the exact bar and the report's own printed contract for what a human approving those proposals is and is not trusting. Still prints only; still writes nothing.

go run ./tools/row-gen -propose

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL