Repository navigation
Improve ten weather and archive workflows for v0.5.0 - #12
Merged
lennrt merged 11 commits intoNov 1, 2026
Merged
Conversation
Apply the existing UTF-8 limit after a bounded projection of one materialized value. Regression tests reproduce UTF-16 boundary errors and repeated view evaluation; focused race tests and make verify pass.
Preserve saved identity for UTF-16 archives and case-insensitive legacy metadata tables. The new selector regressions fail on the previous implementation and pass with the shared reader.
Use rain sample counts instead of observation counts to distinguish absent rain from measured zero. The actual renderer regression covers missing, zero, and partial readings; ordinary and race checks pass.
Add reproducible synthetic screenshots, clarify saved device and rain-gap behavior, and strengthen zero-value and long-cell browser boundary assertions. All 63 browser tests, screenshot capture, and documentation checks pass.
lennrt
approved these changes
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ten new improvements to weather analysis, archive collection, and interactive exploration, based on current
mainafter merged PR #9. This is one consolidated follow-up PR.TestComfortRequiresPairedInputs, outliers, zero, quarter-hour means, and inclusive threshold checks.TestHistoricalRainCoverage,TestHistoricalRainNormalsDenominator, actual MCP nullable schemas, terminal partial markers, and browser history tests.collect --device-id 0fails before configuration or external work instead of silently choosing another device.These ideas came from investigation under the autonomous improvement request, extending the earlier user priorities around rainfall and multi-station workflows. Existing dependency PRs #2, #10, and #11 are not duplicated. Documentation highlights these workflows; version metadata advances to 0.5.0-dev. Documentation and version work are not counted as extra improvements.
Adversarial review follow-up
Four reproduced defects are repaired in this same PR:
TestMetadataReadBoundsAcrossDatabaseEncodingscovers both readers, UTF-8/UTF-16le/UTF-16be, Unicode boundaries, NULL, NUL, and non-TEXT values.TestMetadataViewEvaluatesValueOnceuses an isolated deterministic test driver to alternate short and oversized values.METAtables and rejected long valid UTF-16 device IDs.TestCollectionDeviceMetadataUsesSharedReaderprotects saved identity in all three cases.TestDayRainSparklinePreservesMissingAndReportedReadingsexercises the actual renderer.Each bug regression failed against the prior implementation and passed with the fix. No additional production UI defect was reproduced. Existing browser tests now also check all-zero daily forecasts and text ending exactly at the 65,536-character search boundary. Independent analytics probes covered UTC, the Los Angeles fall-back day, and Kathmandu.
The README and command guides clarify saved device identity in empty archives and rain-chart gaps. The deterministic documentation capture now includes daily forecast cards and the searchable Devices table. Both new images were inspected independently and use synthetic data.
Follow-up verification at
100f84f: fullmake verifyon Go 1.27.3, all 63 browser tests, bundle build/check, four screenshot captures, 19 strict specification checks, 131 Markdown files, and post-commit secret scanning passed. All 11 hosted checks passed on this head: CI, CodeQL and its result check, and dependency review. The earlier run below records initial qualification.Examples: daily forecast, searchable station devices.
Compatibility
DayStat.RainIn,PeriodStat.RainIn,YearDay.RainIn,MonthNormal.AvgRainIn, andMonthNormal.AvgRainyDaysbecome pointers. Consumers must handle nil. Historical structs add reading/contributing-year counts; unkeyed literals need adjustment.rain_readings/rain_years. Rainy-day counts remain counts of observed rainy days. Partial months can contribute to normals; neither counts nor totals establish continuous coverage.ErrInvalidArchive; ordinary malformed completion markers retainErrInvalidCheckpoint.Verification
Full
make verifypassed on Go 1.27.3: modules, formatting/imports, documentation, vet, ordinary/race tests, four fuzz targets, lint, workflow validation, generated API evidence, vulnerabilities, licenses, SBOM, secrets, pure-Go host/Linux ARM64 builds, and the synthetic MCP demo. A task-specific temporary directory avoided unrelated lint lock contention; no checks were weakened.npm run app:build,npm run app:check, and all 63 browser tests passed.npm run app:screenshotspassed; desktop and 390-pixel views were inspected.Focused ordinary/race tests and independent reproductions passed. New regressions failed against the original behavior before implementation. Live ordering is defensive contract hardening, not a claimed production outage.
Independent reviewers inspected the actual diff and requirements. Both supported findings were reproduced and repaired: partial this-day rain display and unbounded metadata reads. The 16 MiB metadata experiment fell from about 16 MiB to about 7 KiB of Go allocation while preserving error classification.
Bounded
ub-modetool audit ran in a separate scratch copy. Status mutation tests killed 25/28 variants; three survivors are equivalent under coverage-extrema validity and RFC3339 subsecond formatting. Three useful text-output assertions were added from the first run. Status functions scored below CRAP 10 with measured coverage. This is not a whole-project mutation score; the tool does not separately classify compilation failures or timeouts.All 11 hosted checks passed for head
807fc71: CI (Go 1.27.3 verification, browser tests, macOS, Windows, lint, OpenSpec, vulnerabilities/licenses/SBOM, and history secret scanning), CodeQL and its result check, and dependency review.Security and privacy
Documentation
Review team and limits
The initial implementation run used ten real model instances: this coordinator and nine separately routed
gpt-6.1-solcontributors, scheduled in batches because only three contributors can run concurrently. The coordinator's underlying model identity was not independently exposed by the harness. Research, implementation, and review had separate contexts. The adversarial follow-up used three freshgpt-6.1-solreviewers, each explicitly routed atultrareasoning. They independently reviewed analytics, archive behavior, and the app, then cross-reviewed fixes. Team agreement is not proof of correctness.Tests use synthetic data and a local MCP Apps host. No live WeatherFlow credentials or third-party client certification were used. Comfort remains a quarter-hour estimate; rain normals can include partial months. Status gaps exclude intervals before and after the archive. SQL inspection/search covers returned rows and the disclosed per-cell limit. Further release qualification remains a maintainer decision.