Skip to content

docs: describe the installed version in the shipped docs, not how it changed - #1504

Merged
xyos merged 15 commits into
mainfrom
docs/present-state
Nov 17, 2026
Merged

xyos merged 15 commits into
mainfrom
docs/present-state

Conversation

@xyos

@xyos xyos commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The block docs ship inside the installed package (@aws-blocks/blocks/docs/, the app AGENTS.md, the template READMEs), so they always describe the version the reader has. Many sentences narrate how things changed instead: "X no longer …", "previously …", "the old mock …", "carried over from AuthOIDC", "Update: superseded by D-FB-18", "(#912)", "an earlier revision of this PR". Relative to the installed version these describe nothing, and they point readers (and coding agents) at removed blocks and behaviour.

Issue #, if available:

Changes

Sentence-level rewrites across 28 shipped markdown docs. Each history sentence is either rewritten as the present fact, kept as a present-tense rule plus the reason when the reason prevents a mistake, or dropped. Every new present-tense sentence was checked against the package source on main. No source file changes.

  • Kept on purpose: migration aids (bb-auth/MIGRATION.md, the one-line "Coming from AuthBasic …?" pointers, the old → new error-name table, hosting's upgrade note for stacks deployed with the derived header value, the session-store and mock-state notes for apps switching from AuthCognito); compatibility guarantees a reader of this version relies on (the user pool, app client and session secret keep AuthCognito's construct ids; cookie and local-state formats, userId and action names match); deprecations of still-exported APIs, in present tense with the replacement.
  • Dropped: PR and issue numbers (two remain: an open issue that gates a test lane, and an open PR that tracks a current limitation), "v1" / "(Implemented)" / "this PR" tags, and accounts of what an earlier block or revision did when no present guarantee depends on it.
  • Design decision logs (bb-file-bucket/DESIGN.md mostly) state today's design in place, keeping the decision numbers and rationale; "Update: superseded by …" notes are folded into the decision they modify.
  • Wrong facts found while rewriting, fixed: core's Hosting takes logging version / partitioning / format through frontDoor.features.logging (the README said only enabled / retentionDays); the Logger README points at Compute's logRetention (it said per-compute retention "arrives later"); the auth-common errorName example uses an AuthErrors name; the FileBucket design cited the removed bb-auth-basic.
  • Heading anchors: bb-auth/DESIGN.md "Password reset ends every session ([bb-auth-basic] Invalidate outstanding sessions on password reset / credential change #912)" loses its "([bb-auth-basic] Invalidate outstanding sessions on password reset / credential change #912)", and bb-realtime's "Why AppSync Had 5×50" becomes "Why there is no per-segment limit". In-file links are updated; nothing else in the repo links to either anchor.
  • Doc comments are unchanged. The contributor guide treats existing docstrings on exported declarations as sacred, so the same history phrasing in public JSDoc stays for now (for example @aws-blocks/auth-common/cookies' module doc, AuthShape's "carried over from AuthCognito", getEngine()'s "no longer calls this eagerly", KnowledgeBase.isSynced()'s "deployments that predate this API", closed-issue numbers in hosting and core props). Maintainers: a follow-up could apply present-tense wording to about 40 doc-comment sites in 21 files; I can open it if you want it.
  • KVStore and the former DistributedTable are not touched. The KVStore consolidation (feat(bb-kv-store): KVStore consolidation #1453) rewrote bb-kv-store's README and DESIGN and removed bb-distributed-table; none of the sentences this PR had rewritten there survive on main.
  • One patch changeset per changed published package (17).

Marker lines in the shipped docs (fenced code skipped), before → after: "previously / formerly / originally" 7 → 0, PR/issue numbers 19 → 2, "no longer" 30 → 18 (the rest are runtime state, such as "a table that no longer exists"), "now …" / "is now" 21 → 11. The edited docs shrink by about 8 KB.

Related PRs

Merged since this PR was opened, and reconciled in the rebase onto main (5dfe7783a):

Open PRs that edit the same files (each PR head merged against this branch with git merge-tree):

Validation

Head a4edab846, rebased cleanly onto main dabb3f22f, which includes the auth-oidc template fix (#1596). None of the files this PR edits changed on main since the previous head 263eea0f5 (base 5dfe7783a), whose bb-auth/DESIGN.md conflict with #1500 was resolved by taking main's paragraph. On a4edab846:

  • The diff against main is markdown and changesets only: git diff --stat origin/main -- '*.ts' '*.json' '*.js' '*.mjs' is empty.
  • All 200 relative links and #anchors in the 28 edited docs resolve (0 broken). On 263eea0f5, npm run sync-docs:check and the packages/blocks link tests (readme-links, docs-pointers, 4/4) passed.

Run on 25bbb3cd7 (base ddae81525/dfc4a306b):

CI on the previous head 263eea0f5: 55 pass, 10 skipped, 3 fail. Both E2E Compute Smoke jobs and E2E Teardown Verify passed. Local Unit Tests (shard 3) failed on the 4 auth-oidc template tests, which main fixed in #1596 after that run. Build, Unit Tests, E2E Local and Build and Test failed only because they roll up that shard.

CI on a4edab846: 57 pass, 8 skipped, 2 cancelled, 1 fail. All three Local Unit Tests shards pass, shard 3 included, and so do Build, Unit Tests, E2E Local and E2E Teardown Verify. The two E2E Compute Smoke jobs were cancelled by the shared concurrency group, which gave priority to another PR's waiting job. Build and Test fails only because it counts those two cancellations. Both Compute Smoke jobs passed on the previous head 263eea0f5, which has the same docs diff.

Checklist

  • PR description included
  • Tests are changed or added (docs only; no behaviour changes)
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@xyos
xyos requested a review from a team as a code owner November 13, 2026 22:31
@changeset-bot

changeset-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a4edab8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@aws-blocks/bb-agent Patch
@aws-blocks/bb-auth Patch
@aws-blocks/auth-common Patch
@aws-blocks/blocks Patch
@aws-blocks/bb-app-setting Patch
@aws-blocks/bb-secret Patch
@aws-blocks/core Patch
@aws-blocks/create-blocks-app Patch
@aws-blocks/bb-data Patch
@aws-blocks/hosting Patch
@aws-blocks/bb-async-job Patch
@aws-blocks/bb-cron-job Patch
@aws-blocks/bb-knowledge-base Patch
@aws-blocks/bb-dashboard Patch
@aws-blocks/bb-logger Patch
@aws-blocks/bb-realtime Patch
@aws-blocks/bb-file-bucket Patch

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

@xyos
xyos enabled auto-merge (squash) November 13, 2026 22:41
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
📖 Glossary & notes — scoring, indicators, per-metric thresholds (click to expand)
  • N = 1 — one rep per cell, so a small delta may be model variance, not a real change; re-run for certainty.
  • Indicators (change vs baseline, per metric): ✨ noticeably improved · ✅ OK / no significant change (within noise band) · ⚠️ slight regression (beyond 1× threshold) · ❌ serious regression (beyond 2× threshold) · 🆕 new — no baseline value yet (current value shown, tagged (new)) · — nothing to show this run · 🗑️ cell gone since the baseline. Each cell shows <indicator> <value> (<Δ vs main>) inline.
  • Columns: Tests (pass/denom) · Judge (overall 0-10 score with signed delta; per-dimension breakdown lives in the judge artifact JSON) · Cost · Turns (agent cycles) · Score · Stop reason.
  • Threshold definitions (per metric, DELTA_THRESHOLDS in overview.mjs):
    • composite/score: ±5 points — a change ≤5 pts is ✅; >5 improving is ✨; >5 worsening is ⚠️; >10 worsening is ❌.
    • judge (overall): ±0.3 — a shift ≤0.3 is ✅; >0.3 improving is ✨; >0.3 worsening is ⚠️; >0.6 worsening is ❌.
    • tests: ±1 pass — a ≤1 pass change is ✅; >1 improving is ✨; >1 worsening is ⚠️; >2 worsening is ❌.
    • cost: ±10% of baseline (floor $0.02) — within 10% is ✅; >10% cheaper is ✨; >10% more expensive is ⚠️; >20% more expensive is ❌.
    • turns: ±3 cycles — a ≤3 turn change is ✅; >3 fewer is ✨; >3 more is ⚠️; >6 more is ❌.
  • Directions: higher is better for tests, judge, and score; lower is better for cost and turns.
  • Composite (0-100) = round(60·test_rate + 4·judge·min(1, 4·test_rate), 1) — 60% objective pass-rate + 40% judge, the judge term gated below a 25% pass-rate.
  • Cost = builder token spend at Bedrock Claude Opus 4.8 rates ($5 in / $25 out per 1M tokens; BUILDER_PRICING in scoring.mjs).
  • SCORE = composite ÷ cost — composite points per dollar (higher = better). Cost, not raw token volume, is the denominator, so tokens can't dominate; a broken (composite 0) cell scores 0 no matter how cheap. Flip SCORE_PER_DOLLAR in scoring.mjs for cost-per-point (lower = better).
  • Baseline = the most recent main-branch bench (bench/runs/latest-main.json), NOT the PR base commit — the PR always diffs against the current state of main.
  • Excluded from the mean: harness_error cells (infra failures) and gradeable cells that ran no tests. agent_fail (agent produced no app in budget) and dead_server (built app never served / crashed) are BOTH included, as composite 0.
  • Run artifacts — per-cell source + full agent traces · 🕒 Last run: 2026-11-17T21:28:43Z · run #44171166931

Results — PR vs main baseline

Each metric shows its current value colored by the change vs the latest main baseline dabb3f2. ✨ improved · ✅ within noise · ⚠️ slight regression · ❌ serious regression · 🆕 no baseline yet (value shown, tagged (new)).

  • Mean composite 80.9/100 across 10 scored cell(s) — ⚠️ -9.0 vs main · judge mean 9.06/10.
  • Verdicts: 8 pass · 1 partial · 1 fail · 0 harness_error.
  • Totals: cost $119.97 · tokens 23.2M in / 159.6K out · 364 turns.
  • Biggest gains: async-word-counter/bare (+2.4), oidc-dsql-notes/react (+1.7), kb-chat-agent/demo (+1.6).
  • Biggest drops: auth-notes/demo (-94.4), collab-presence-board/default (-2.4), email-digest/demo (-0.8).
  • Config: baseline dabb3f2.
  • ✅ Composite band 🟢 across 10 scored cell(s). Threshold 65 — pass.
Task Template Tests Judge Cost Turns Score Stop reason
async-word-counter bare ✅ 13/13 (0) ✨ 9 (+0.6) ✨ $3.37 (-$3.59) ✨ 17 (-14) ✨ 28.5 (+15.1) endTurn
auth-notes demo ❌ 0/11 (-11) ✅ 8.8 (+0.2) ✨ $8.69 (-$6.54) ✨ 31 (-14) ⚠️ 0 (-6.2) endTurn
cognito-profile auth ✅ 10/10 (0) ✅ 8.8 (0) ✅ $18.86 (+$0.12) ✨ 51 (-4) ✅ 5 (-0.1) endTurn
collab-presence-board default ✅ 11/11 (0) ⚠️ 9 (-0.6) ✅ $3.73 (+$0.31) ⚠️ 24 (+5) ✅ 25.8 (-3) endTurn
email-digest demo ✅ 12/12 (0) ✅ 9.2 (-0.2) ✅ $4.91 (-$0.38) ❌ 31 (+9) ✅ 19.7 (+1.2) endTurn
file-gallery bare ✅ 12/12 (0) ✅ 9.2 (0) ✨ $2.54 (-$1.01) ✨ 13 (-4) ✨ 38.1 (+10.9) endTurn
kb-chat-agent demo ✅ 9/9 (0) ✨ 9 (+0.4) ❌ $39.02 (+$10.5) ❌ 70 (+14) ✅ 2.5 (-0.8) endTurn
observability-api backend ✅ 18/18 (0) ✅ 9.6 (+0.2) ✅ $8.25 (-$0.09) ✨ 31 (-6) ✅ 11.9 (+0.2) endTurn
oidc-dsql-notes react ✅ 2/11 (0) ✨ 8.6 (+0.6) ✨ $19.59 (-$8.06) ✨ 56 (-13) ✅ 1.8 (+0.6) endTurn
sql-kb-catalog nextjs ✅ 9/9 (0) ✅ 9.4 (+0.2) ❌ $11 (+$2.74) ❌ 40 (+8) ✅ 8.9 (-2.8) endTurn

Merge verdict

✅ This bench run does not block the PR.

  • ✅ Absolute floor — mean composite 80.9 >= floor 65.
  • ✅ Regression vs main — mean composite delta -9.0 pts vs main is within the 10-pt limit.

The Δ vs base ball above is a fixed ±5-pt display band; the regression gate uses BENCH_MAX_REGRESSION. The ball is cosmetic — the gate threshold is what blocks.

xyos added 15 commits November 17, 2026 20:36
The docs ship inside the installed package, so "formerly", "now" and PR
numbers describe nothing the reader has. State the current behaviour instead,
and correct the logging entry point: frontDoor.features.logging takes
version, partitioning and format on both HostingConstruct and core's Hosting.
State what an unset BLOCKS_LOG_LEVEL prints, and phrase doc comments on the
deprecated mixins, bundling and the sandbox recorder in the present tense.
…ot its history

The docs ship inside the installed package, so "no longer", "previously" and
PR numbers describe nothing the reader has. State the present instead.
…its history

The docs ship inside the installed package, so "no longer", "previously" and
PR numbers describe nothing the reader has. State the present instead.
The docs ship inside the installed package, so "no longer", "previously" and
PR numbers describe nothing the reader has. State the present instead.
…its history

The docs ship inside the installed package, so "no longer", "previously" and
PR numbers describe nothing the reader has. State the present instead.
…s history

The Logger README said per-compute retention "arrives later"; Compute already
has logRetention, so point readers at it.
The docs ship inside the installed package, so "no longer", "previously" and
PR numbers describe nothing the reader has. State the present instead.
The docs ship inside the installed package, so "no longer", "previously" and
PR numbers describe nothing the reader has. State the present instead.
…istory

The docs ship inside the installed package, so "previously", "the old mock",
"carried over from AuthOIDC" and PR numbers describe nothing the reader has.
State how Auth works, and keep the AuthCognito/AuthOIDC references that a
migrating app relies on (ids, cookie and session formats, userId, action and
error names). Drop "(#912)" from a heading and fix its in-file links.
…their history

The interface's doc comment ships in dist/cookies.d.ts through the public
/cookies subpath. Name the three attributes it carries (SameSite, Secure,
Partitioned) rather than saying they once diverged across auth blocks.
The contributor guide treats existing docstrings on exported declarations as
sacred, so this PR limits itself to the markdown docs, the scaffold AGENTS.md
and the template READMEs. The source files return to their main text; the
proposed doc-comment wording is left for maintainer review. The changesets
no longer mention doc comments, and bb-distributed-data, whose only change
was a doc comment, drops out of the release.

The Auth changeset names the construct ids that match AuthCognito's (user
pool, app client, session secret): the session store has its own id.

This branch was previously deployed

2 inactive deployments
agent-bench — a4edab84 Deployed Nov 17, 2026 by xyos via bench / summary #6050
e2e — a4edab84 Deployed Nov 17, 2026 by xyos via E2E Teardown Verify #6942
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.

2 participants