Repository navigation
docs(create-blocks-app): state storage block choice in scaffolded AGENTS.md - #1011
Conversation
…NTS.md The storage bullet listed KVStore and DistributedTable without saying which fits ordinary app records, so agents picked inconsistently. Follow the blocks guide's DistributedTable default for collections of records and the KVStore README's key-lookup guidance.
🦋 Changeset detectedLatest commit: 8faf175 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Harbor agent check — advisory20 todo-app trajectories per arm. Pass rates carry Wilson 95% intervals; metric differences are candidate − baseline medians over passed phases with a seeded bootstrap 95% interval, shown only when both arms have at least 3 passes. The primary metric is cache-neutral cost; the storage section compares arms within one storage block. Local mock mode only; nothing is deployed.
Packed packages differ between arms. Trials
Pass rate
Passed-phase medians (IQR)
† Descriptive, not comparable across arms: new input (uncached input + cache writes) and cache read depend on prompt-cache warm-up order, so no difference is reported for them. Candidate − baseline
Δ is the difference of medians (percent of the baseline median) [bootstrap 95% interval]. A phase passes when it and every earlier phase passed with complete accounting in one session. Trials without a result or with an infrastructure error are excluded from rates. Cache-neutral cost is the primary metric: each phase at the pinned model’s list prices as if its own session wrote every context token to the prompt cache once (context growth at the cache-write rate, the rest of the input processed at the cache-read rate, output at the output rate), so it does not depend on which concurrent session warmed the cache. Input processed = uncached input + cache writes + cache reads. List-price cost is Claude Code’s estimate, not AWS billing, and is secondary: it moves with cache hits from other sessions. Failed or incomplete work is excluded from metrics: less usage there is not an efficiency win. Storage block
The storage block the create phase constructed, read from its snapshot. It moves cost by itself, so a different storage mix between arms shifts the pooled medians above. Costs here are whole-run medians over trials that passed every phase; a difference is shown only when both arms have at least 3 such passes in that storage. |
Problem
The scaffolded AGENTS.md listed
KVStoreandDistributedTablewithout saying which to use for ordinary app records, so agents picked inconsistently for the same list-of-records task.Changes
DistributedTablefor app records you list or query as a collection (todos, notes, orders); useKVStorefor values you read and write by one key, structured or not (settings, flags, caches, sessions, per-user preferences). This follows the AWS Blocks guide'sDistributedTabledefault for most data and the KVStore README's key-lookup guidance.@aws-blocks/create-blocks-apppatch.Validation
npx tsx scripts/changeset-guard.ts verify-coverage: passes.Root
npm run build, thennpm test -w @aws-blocks/create-blocks-app: 207/207 pass.Docs-only change.
Changeset added
Docs only, no code changes