Skip to content

Commit 5f9e306

Browse files
seanmarciaclaude
andcommitted
Fill in the change log hash for the audit gem-path fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fecc4a7 commit 5f9e306

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/changelog.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ zero across these commits; several were pre-existing bugs the old markup had bee
371371
| `70986b9ca` | **Stage 1 is verified.** Built from `design` onto `origin/main` as `36e927c76`, 69 files: **2,962 examples, 0 failures**, 1 pending; rubocop 647 files 0 offenses; erb_lint 442 files no errors; **brakeman 0 errors, 0 security warnings**; `factory_bot:lint` clean; every relative markdown link resolves inside the stage; no later-stage markers; Rails 8.1.3.1 matching `main`. **The seed is deliberate** — 8576 is the one that produced two date-range-picker failures on the earlier build, and produces none on this one, which settles those as flaky rather than leaving it to a shrug. Neither stage branch has been pushed and the remote has none; `build-stage.rb` rebuilds them on demand, which is the point, because an unpushed branch does not survive a tree that has been rolled back nine times. **One environment fact came out of it and is now in onboarding**: on a case-insensitive mount `bin/rails` cannot run *any* rake task. Rake tries `rakefile` before `Rakefile`, `File.exist?` answers true for the wrong case, and it then fails to load what it just found — `db:test:prepare` and `tailwindcss:build` both hit it, and `bundle exec rake -f Rakefile` is the way through. Five corrections to the assembly method got here; stages 2–5 should be expected to need their own. |
372372
| `32b1a50b4` | **Merged 56 commits of `main` into the design branch: 13 conflicts, and the by-county report rebuilt a second time.** `main` had moved 56 commits (9 dependency bumps) across 289 files, 232 of them user guide pages and screenshots; 30 files had changed on both sides. The rule held: **design owns the markup, main owns the behaviour.** **Estimated distributions by county** was the substantial one: `main` rebuilt it to count what is inside a distributed kit, moved it onto a `View::DistributionsByCounty` object, and added **Item** and **reporting category** filters, all in Bootstrap markup. Taken here as design's page with main's data source (`@dbc_info`), both filters as `filter_select` cells on the filter bar (the category labelled *NDBN reporting category*, as on the three item pages), and main's kit and rounding caveat moved into the page header subtitle. main's new system spec drove a `click_on "Filter"` button and a Litepicker panel that do not exist here; it was ported to `select_date_range_preset`, `open_filters` and `wait_for_filters`, with every assertion kept. **Domain-agnostic URLs** (`24dd7a2f0`) conflicted in eight files because design had rewritten the copy around each hard-coded `humanessentials.app` link; design's wording is kept and main's helpers (`root_url`, `new_user_session_path`, `production_url`, `production_host`) applied to it. The staging banner needed the same change by hand: design moved it from `_devise_shared` (which main edited and design had deleted) into `layouts/essentials_auth`, so git had nowhere to put main's edit. `_devise_shared` stays deleted. main's select2 width fix (`a37aa2ed3`) is already the default in design's `select2_controller.js`; its new spec measured `.li-name`, a class design's row no longer has, and now measures the item cell. **Gemfile.lock** was taken from design and then `bundle lock --update` run on main's nine bumped gems, so Rails is 8.1.4, the `aarch64-linux` platforms are kept, and `bootstrap`, `sassc`, `autoprefixer` and `sprockets` stay out. `schema.rb` left alone, as at the last two merges. **Verified**: 3,457 examples, **2 failures, both also failing on the pre-merge commit `83dc7b6dd`** in a separate worktree (`children_system_spec.rb:32`, `barcode_item_system_spec.rb:201`), so not the merge. Also: brakeman 0 warnings; `factory_bot:lint` clean; route-sweep 144 screens, no findings; axe 158 pages, 0 violations; table, wayfinding, page, copy, shell-first, seam, template-compile, dead-routes, route-shadow and undefined-classes all clean. `/account_requests/new` returns 500 locally only because this machine has no reCAPTCHA key. Two traps, both in the tooling rather than the app: **`wcag-audit.js` reported "no violations" while skipping every page**, because axe-core was not at its hard-coded `/tmp/axe` path, so it printed a pass it had not earned; and **`bin/workspace-check` called the uncommitted merge a rollback** (exit 2, 289 files) and suggested `workspace-restore --yes`, which would have discarded it. It does not look for `MERGE_HEAD`. |
373373
| `e600cfabf` | **What the merge brought in, held to `design.md`, and four rules it broke that no audit could see.** Every audit passed after the merge. Reading the by-county report against the spec section by section found four faults anyway. **The empty state could not be reached**: the view tested `breakdown.blank?`, but the query always `UNION`s in a zero "Unspecified" row, so a filter matching nothing drew a one-row table of zeros instead of an empty state. This predates the merge, but `main`'s new category filter makes it easy to hit. `View::DistributionsByCounty#distributions?` decides it now, and the query keeps the row, because a spec relies on it. **The loose-items rule moved into a `hint:`** on the Item filter (*Counted whether it went out on its own or inside a kit.*), as [Filters](../design.md#filters) asks. **The rounding caveat moved under the figures**, into the card's footer, because it qualifies the numbers rather than saying what the page is; it does not render with the empty state. **The filter bar posted to `/distributions_by_county/report.1`**: the helper was passed `current_organization`, and with no route segment for it, Rails used it as the format. Both branches had this. Elsewhere from the merge: the distribution change email's three headings are sentence case now (`main` had added *Items Added* in the Title Case of the other two). **`copy-audit.rb` never read an empty-state body**: `COPY_KEYS` had `empty_body` but not `body`, so a planted *"Please try the button below"* gave 0 findings. With `body` added it gives 2, and the app as a whole still gives 0. Three new request specs, **all three watched failing against the previous view**. Verified: request, mailer and by-county system specs green; route-sweep 144 screens with no findings; axe 0 violations; page, copy and shell-first audits clean; erb_lint and rubocop clean. Reasoning in `design-decisions.md`, 2026-10-05. |
374-
| `TBD` | **`audit-selftest` was failing on the state table, and both drifted numbers depended on where gems are installed rather than on the app.** The step *Current state table is up to date* compares a freshly generated table with the one committed here, and two rows differed. **Undefined legacy classes, 0 committed against 2 in CI**: `undefined-classes.py` decided whether a class is a gem's own hook by grepping `/usr/local/bundle/gems`, the path inside the Docker image the table was generated in. Anywhere else, on a laptop or in CI (which installs into `vendor/bundle`), the grep found nothing, so `filterrific-periodically-observed` and `form-inputs`, both listed in `migration-map.md` as gem hooks, were reported as dead classes. It asks `bundle list --paths` now, and exits rather than guessing if that fails, because a silent fallback would report every gem hook as dead. **Dead code, 147 committed against 149 in CI**: `dead-code.rb` counted a controller as the app's own if its source was under `Rails.root`. CI's `vendor/bundle` is under the root, so `Devise::UnlocksController` and `Devise::ConfirmationsController` were reported there and nowhere else. It checks `app/` now. **Control, both ways**: in a clean worktree with the bundle installed into `vendor/bundle`, the way CI does it, the old scripts give **2 and 149**, exactly CI's numbers, and the fixed ones give **0 and 147**, exactly the committed table. Locally they give 0 and 147, and `state.rb --check` passes without regenerating the table. Neither fault came from the merge: the table was right in the container where it was generated and could not be reproduced anywhere else. |
374+
| `fecc4a71f` | **`audit-selftest` was failing on the state table, and both drifted numbers depended on where gems are installed rather than on the app.** The step *Current state table is up to date* compares a freshly generated table with the one committed here, and two rows differed. **Undefined legacy classes, 0 committed against 2 in CI**: `undefined-classes.py` decided whether a class is a gem's own hook by grepping `/usr/local/bundle/gems`, the path inside the Docker image the table was generated in. Anywhere else, on a laptop or in CI (which installs into `vendor/bundle`), the grep found nothing, so `filterrific-periodically-observed` and `form-inputs`, both listed in `migration-map.md` as gem hooks, were reported as dead classes. It asks `bundle list --paths` now, and exits rather than guessing if that fails, because a silent fallback would report every gem hook as dead. **Dead code, 147 committed against 149 in CI**: `dead-code.rb` counted a controller as the app's own if its source was under `Rails.root`. CI's `vendor/bundle` is under the root, so `Devise::UnlocksController` and `Devise::ConfirmationsController` were reported there and nowhere else. It checks `app/` now. **Control, both ways**: in a clean worktree with the bundle installed into `vendor/bundle`, the way CI does it, the old scripts give **2 and 149**, exactly CI's numbers, and the fixed ones give **0 and 147**, exactly the committed table. Locally they give 0 and 147, and `state.rb --check` passes without regenerating the table. Neither fault came from the merge: the table was right in the container where it was generated and could not be reproduced anywhere else. |
375375

376376

377377

0 commit comments

Comments
 (0)