Commit Graph
100 Commits
Author SHA1 Message Date
bewest 58ad1d7b69 Update project documentation to reflect recent changes
Update replit.md to document new stress test scripts and reorganize test descriptions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: dfcb132d-cfe2-469f-8659-b15111592030
Replit-Helium-Checkpoint-Created: true
2026-01-20 02:14:59 +00:00
bewest 6e4ff939f8 Add optional concurrent write stress tests to CI workflow
Updates package.json to include `test:stress` scripts and adds an optional `stress-tests` job to the GitHub Actions CI workflow for concurrent write tests.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: fde695de-720c-4bfb-b5f1-ea6710172a09
Replit-Helium-Checkpoint-Created: true
2026-01-20 02:14:20 +00:00
bewest ba95c1e054 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 052f1302-557b-4bfe-a808-973d737e88b1
Replit-Helium-Checkpoint-Created: true
2026-01-20 02:12:03 +00:00
bewest 17d3a74f91 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b141af6b-dc36-41d1-9b8c-70b60b2798e6
Replit-Helium-Checkpoint-Created: true
2026-01-20 02:05:46 +00:00
bewest 82708a5025 Make report tests less brittle by checking for colors instead of exact coordinates
Update tests in `tests/reports.test.js` to assert the presence of specific fill colors for chart elements rather than exact positional coordinates, improving test robustness against minor rendering variations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 293138b2-b045-4ead-a559-d330e00bdd95
Replit-Helium-Checkpoint-Created: true
2026-01-20 02:05:33 +00:00
bewest 6d34a11686 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 82b98339-21a6-4b84-abd0-071cc5861ef7
Replit-Helium-Checkpoint-Created: true
2026-01-20 02:02:16 +00:00
bewest 27b7f68ba6 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f9cead8e-29fd-4580-8c21-fa2939d21355
Replit-Helium-Checkpoint-Created: true
2026-01-20 01:49:07 +00:00
bewest a55df96d80 Improve security test performance by fixing authorization delay calculation
Fix logic in delay list initialization to correctly handle zero-value settings for authorization failure delays, and update test configurations to leverage this fix.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ee25d747-8c3a-444e-8dbf-e0229eee7d31
Replit-Helium-Checkpoint-Created: true
2026-01-20 01:48:56 +00:00
bewest d878f2938f Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 1d9cf633-408c-4a69-afac-a7479a7b88ef
Replit-Helium-Checkpoint-Created: true
2026-01-20 01:46:33 +00:00
bewest a12f7296ee Organize tests for efficient execution and update CI configurations
Adds new npm scripts for unit and integration tests with CI-specific environment configurations, updates the GitHub Actions workflow to use these scripts, and documents the new test organization and environment file usage in replit.md.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 21cb119b-47e0-4582-a80d-cddb4a3bfea7
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b072dbe3-29e5-41cf-86a1-00bea798d0e3
Replit-Helium-Checkpoint-Created: true
2026-01-20 01:03:40 +00:00
bewest 71c89f40d3 Organize tests for better execution and resource management
Refactors test scripts in package.json to separate unit and integration tests, updates CI environment variables for MongoDB, and modifies GitHub Actions workflow to run unit and integration tests in parallel and serially, respectively, optimizing test execution and resource utilization.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 21cb119b-47e0-4582-a80d-cddb4a3bfea7
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 8ffc8696-fdef-4ddf-960a-54d03ad00107
Replit-Helium-Checkpoint-Created: true
2026-01-20 01:01:01 +00:00
bewest e07ae6a1b3 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 21cb119b-47e0-4582-a80d-cddb4a3bfea7
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: d840a812-e929-414f-855e-cdada4a576e7
Replit-Helium-Checkpoint-Created: true
2026-01-20 00:48:38 +00:00
bewest 875d8542c1 Improve test stability by increasing MongoDB connection pool size
Update `replit.md` to document the increase of `MONGO_POOL_SIZE` from 2 to 5 in the test environment configuration to enhance stability during parallel test execution.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 271f3cac-bab1-4e81-9982-f31b3b030aab
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 260ef33f-bb92-40d0-82ef-652c94ce7f29
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/271f3cac-bab1-4e81-9982-f31b3b030aab/69H2O1r
Replit-Helium-Checkpoint-Created: true
2026-01-19 23:02:42 +00:00
bewest 65170b6b48 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 271f3cac-bab1-4e81-9982-f31b3b030aab
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: e9c0db36-08f4-4782-ab0d-e99bf0fb88ee
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/271f3cac-bab1-4e81-9982-f31b3b030aab/69H2O1r
Replit-Helium-Checkpoint-Created: true
2026-01-19 22:50:08 +00:00
bewest 6017a858f0 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 271f3cac-bab1-4e81-9982-f31b3b030aab
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 7d929407-4305-4d19-9d53-83f9e6bda8ce
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/271f3cac-bab1-4e81-9982-f31b3b030aab/69H2O1r
Replit-Helium-Checkpoint-Created: true
2026-01-19 22:47:40 +00:00
bewest cface54888 Optimize test suite by converting beforeEach to before and adding parallel testing scripts
Updated test execution scripts in package.json to include parallel and fast test options. Converted several `beforeEach` hooks to `before` in test files for more efficient application setup. Added documentation for test optimizations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 271f3cac-bab1-4e81-9982-f31b3b030aab
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ac6eb857-be5a-454b-96cf-b9c4c57f058b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/271f3cac-bab1-4e81-9982-f31b3b030aab/69H2O1r
Replit-Helium-Checkpoint-Created: true
2026-01-19 22:47:02 +00:00
bewest 97a720f166 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 271f3cac-bab1-4e81-9982-f31b3b030aab
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 2a71f849-1004-47bf-93fd-6f098d1b2123
Replit-Helium-Checkpoint-Created: true
2026-01-19 22:38:15 +00:00
bewestandBen West 2478c9057d Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e27dc73c-5668-4ca3-89c0-23127c7a1ac7
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5c6de3e3-d89b-48fa-8cda-b18aae52c4ec
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West f0b8520744 Clarify response format requirements and optional middleware
Update implementation plan and test cases to reflect that `ok` and `n` fields are optional in the response, aligning with Loop client behavior and clarifying middleware's legacy status.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e27dc73c-5668-4ca3-89c0-23127c7a1ac7
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: b6ab13d1-cae7-4d9d-9b92-bf3b582272ad
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 238684c4b4 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e27dc73c-5668-4ca3-89c0-23127c7a1ac7
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 492e4fdb-6693-46d2-9ae4-9c27f74b467e
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 3dca05d69d Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 81a6141f-c27c-4178-8cf3-6474e7b82918
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: af5b8c3c-94ec-4b5b-8195-b85e49f1eec6
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 7ffc4da46e Allow disabling prediction array truncation by setting the maximum size to zero
Update env.js to correctly parse PREDICTIONS_MAX_SIZE, allowing a value of 0 to disable truncation. Modify tests and documentation to reflect this change.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 81a6141f-c27c-4178-8cf3-6474e7b82918
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 92d3ef13-9728-43c6-8e8b-d435184fec07
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West c4529ac222 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 81a6141f-c27c-4178-8cf3-6474e7b82918
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 72c66b6d-24ed-4e3c-a659-4f8c47436ccb
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 5e896faaac Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9d8f1c8c-dc6e-4e36-8757-3a13be266d60
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 85d25b70-8f1b-4e88-8621-6b7bdd20a891
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 6d98d25158 Add controllable flaky tests for validating detection tools
Add a new test file `tests/flakiness-control.test.js` that allows configuring flakiness percentage via an environment variable `FLAKINESS_LEVEL`, supporting seeded randomness, logging, and timeout configurations for reproducible testing and validation of flakiness detection tools.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9d8f1c8c-dc6e-4e36-8757-3a13be266d60
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: c03b84ea-7ae9-4081-b484-6f10b690796e
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 5a12b7e6f9 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9d8f1c8c-dc6e-4e36-8757-3a13be266d60
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 4a6144fa-1d45-430b-a847-b512434b0714
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West cab5a01bae Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6fc17817-630e-4969-90c0-6256457d8ebc
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/cf276ff5-4001-4b44-93fe-7c9786ee4327/MVHBPJ5
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 46bd7c559b Optimize test environment to use a smaller MongoDB connection pool size
Update test environment to use MONGO_POOL_SIZE=2 in my.test.env. This is the minimum pool size that handles concurrent operations without timeouts, improving test determinism. Production default remains 5.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ccad3408-03dd-4bf8-9acb-b1d67ab9adcc
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/cf276ff5-4001-4b44-93fe-7c9786ee4327/MVHBPJ5
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 295e1c2c5d Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 76d7689b-8457-4df6-ba0c-1e1c23a4f238
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/cf276ff5-4001-4b44-93fe-7c9786ee4327/MVHBPJ5
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 9a54c62265 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b7fe7ccf-12bf-4c0d-827b-7095d82780ce
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/cf276ff5-4001-4b44-93fe-7c9786ee4327/MVHBPJ5
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West d4d2574307 Improve database connection management and add configurability
Introduce new environment variables for MongoDB connection pool configuration (pool size, min pool size, max idle time) and add related tests and documentation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 6d2a0738-a5a9-4167-a04b-df474a95be16
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/cf276ff5-4001-4b44-93fe-7c9786ee4327/MVHBPJ5
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 59df68c9f5 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 422c7bc0-11d8-410a-8551-ce894be78bb4
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 289649b52f Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 00590cbc-ad71-4414-a44b-31e663f3e5e7
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 7fe2775f61 Update documentation with recent test stability improvements
Add details about a floating-point precision fix for boluswizardpreview.test.js and note an infrastructure issue with test process hangs during server teardown in replit.md.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 0e1264f9-9ae7-4b11-a0e7-658fe3d1f1ac
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 916ceb73d5 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 8334ceda-ba2b-4e75-8fde-5a6c9dbaf5b6
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West b922920fd7 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3079f21e-7c8b-4b7e-8631-aec7d582e63f
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 64e3463ffb Improve insulin rounding precision by adding epsilon
Update rounding logic in `lib/sandbox.js` to incorporate an epsilon value for enhanced precision, addressing potential floating-point errors in insulin calculations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: f10d2278-3392-4fd0-ad73-36beee7aadb9
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West 73e750fc0a Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cf276ff5-4001-4b44-93fe-7c9786ee4327
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ba55f410-3af7-4449-ba42-90a2a68ea6b0
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:15:09 -08:00
bewestandBen West aba367dbe7 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dd54303b-52a7-4c5b-9110-6cd8643ee3bb
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: d30d6d59-1cbf-403d-9aba-9c60211f4698
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West c3c893334d Improve test performance by optimizing server boot handling
Refactor tests/api.shape-handling.test.js to use `before()` for server boot instead of `beforeEach()`, reducing boot overhead and improving test stability. Update docs/test-specs/flaky-tests.md and replit.md to reflect the fix and progress tracker.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dd54303b-52a7-4c5b-9110-6cd8643ee3bb
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: fa6ecd04-4886-43f8-b6ed-5ca9e21eb746
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West a2c4e529ea Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dd54303b-52a7-4c5b-9110-6cd8643ee3bb
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f02f5406-d2a2-4fb9-9c3c-e017803488c0
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 0db39ab5c7 Update documentation to reflect stable test suite status
Update docs/test-specs/flaky-tests.md and replit.md to accurately reflect the results of recent stress tests, noting that all completed runs passed and identifying a single slow test file that requires a longer timeout.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 400e0b24-3794-40cb-83de-0cc142f986c0
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: bfab6092-be80-4119-abc6-2df7a36dde30
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 8d7c983bfc Update test documentation to reflect recent stability improvements
Update `docs/test-specs/flaky-tests.md` and `replit.md` to reflect that previously identified flaky tests are now stable, including details on the fix for `api.deduplication.test.js`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 400e0b24-3794-40cb-83de-0cc142f986c0
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 276f2ddc-a331-49cf-9da3-c3c6c3035794
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West edde169cf2 Improve test speed by optimizing data cleanup and increasing timeouts
Increase test timeout to 30 seconds and optimize database cleanup by using deleteMany for entries and adding devicestatus cleanup in `api.deduplication.test.js`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 400e0b24-3794-40cb-83de-0cc142f986c0
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 48378c97-a2ef-4f9f-8070-728091da5f11
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West d9f402f395 Add optional truncation for large prediction arrays in devicestatus
Introduces optional prediction array truncation for devicestatus documents via the PREDICTIONS_MAX_SIZE environment variable to manage MongoDB document size.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daa945f9-0872-4250-9868-a1245067293b
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3ecd5495-11e3-48af-b400-591200c40473
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 6b68f920ac Add ability to truncate large prediction arrays in device status data
Introduce logic to truncate prediction arrays (IOB, COB, UAM, ZT) in devicestatus documents when they exceed a configured maximum size, preventing potential issues with large document handling in MongoDB. This includes updates to bootevent, devicestatus module, environment configuration, and new tests to verify truncation behavior.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daa945f9-0872-4250-9868-a1245067293b
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: baff25d9-e915-44d9-87f0-f7583f443a30
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West ffc345715f Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: daa945f9-0872-4250-9868-a1245067293b
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ae9eb2fd-56ea-466b-9d3d-65b4d00cdc01
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West c7cf91ae55 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0af6cbd9-213b-4067-92c7-061364010187
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 9f9db72e-6510-493d-8aa8-4d7f0c6a0a5e
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/0af6cbd9-213b-4067-92c7-061364010187/qSUheNX
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 4f445b87af Update documentation with observed test failures and analysis
Update the replit.md file to document observed test failures, including test file names, test names, and notes on potential causes, and to clarify the distinction between observed and consistent failures.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0af6cbd9-213b-4067-92c7-061364010187
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ad1d0f93-886b-404d-b868-e8a34324f278
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West f7607fe6e0 Update documentation with test findings and new testing commands
Add new sections to replit.md detailing known test issues, slow tests, and available test helpers, along with commands for isolation and timing-aware testing.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0af6cbd9-213b-4067-92c7-061364010187
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: e31b94b0-d6a9-46b6-b500-c1d9ff5f43ae
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 8c6e622f60 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0af6cbd9-213b-4067-92c7-061364010187
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5ea0c93f-5c37-4b88-9296-b03ad7683146
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 24f804d9bf Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a10b5171-2266-431b-a8b1-bbc77898c289
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 617617f1-abe0-4a41-9677-9637914c3c9e
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/a10b5171-2266-431b-a8b1-bbc77898c289/owvpZvB
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 851d46b99f Add test instrumentation to detect and warn about flaky tests
Introduce timing instrumentation to identify slow tests and setTimeout anti-patterns, refactor helper functions into a shared module, and update documentation and npm scripts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a10b5171-2266-431b-a8b1-bbc77898c289
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: fdf582ee-3e62-4543-a850-a72060814d7d
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 988ab23b4a Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a10b5171-2266-431b-a8b1-bbc77898c289
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 891f468a-a384-40a8-8f46-9cced7fd4e9b
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West f185eeaa37 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dd62849e-ed2a-4205-bffd-e69e5468d135
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 90318641-8057-408b-b60c-77123da60d74
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 21b8781ee3 Introduce warning timeouts to improve WebSocket test reliability
Refactors WebSocket tests in `tests/websocket.shape-handling.test.js` to replace arbitrary `setTimeout` delays with a `waitForConditionWithWarning` helper. This helper polls for conditions, logs warnings for slow operations, and includes a hard timeout to prevent test hangs. The documentation in `docs/test-specs/flaky-tests.md` is updated to explain this new pattern.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dd62849e-ed2a-4205-bffd-e69e5468d135
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 69062e84-cc51-4fa6-8684-754e19948222
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West c91e5ad18c Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dd62849e-ed2a-4205-bffd-e69e5468d135
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a59bc82e-3fa6-4d87-b15f-c5fb4428e74d
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 4c16dc76b7 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 3be0ef95-aa69-441e-a33e-a8bd64e908de
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ddab0842-4e07-47eb-966f-07c5bcfcec56
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/3be0ef95-aa69-441e-a33e-a8bd64e908de/gFx70KI
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 4feeb015fe Update documentation and tooling for identifying and running flaky tests
Updates flaky test documentation with observed flakiness rates and corrects npm script syntax for isolating tests. Introduces a generic isolate runner and clarifies harness behavior regarding database state, removing the claim of automatic resets and noting reliance on Mocha hooks for cleanup.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 3be0ef95-aa69-441e-a33e-a8bd64e908de
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: b7dbc77f-8b96-4ac3-8453-8976ddb7ee24
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West b77fb38452 Add documentation and harnesses for identifying flaky tests
Add new npm scripts and update documentation to isolate and identify flaky tests, specifically addressing issues in api.entries.test.js, api3.socket.test.js, and api.partial-failures.test.js.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 3be0ef95-aa69-441e-a33e-a8bd64e908de
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 77966b3b-e3ca-4c97-bfee-13046aeae8fc
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:46 -08:00
bewestandBen West 67428a92fe Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 3be0ef95-aa69-441e-a33e-a8bd64e908de
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 43ef0a8e-0bc0-429b-bb28-607e292af049
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West bcc194ba01 Add a tool to detect and report on unreliable tests
Add a flaky test detection system that repeatedly runs tests, captures results, and generates reports to identify inconsistent test behavior.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9bea85b0-6b8f-4d55-b964-1080f91ee9a0
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 9dc019dc-2bb9-416a-80ad-527c2c506698
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West b68e538d2c Add script to run tests repeatedly to find flaky tests
Introduces a new script `scripts/flaky-test-runner.js` to execute Mocha tests multiple times, capturing JSON output to identify and analyze flaky test behavior. New npm scripts (`test:flaky`, `test:flaky:quick`, `test:flaky:thorough`) are added to package.json for easy execution. The script includes robust JSON parsing with error handling for potentially malformed output.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9bea85b0-6b8f-4d55-b964-1080f91ee9a0
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ffee9763-d3c3-40a4-a414-ca0b03d54310
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 7e7390affe Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9bea85b0-6b8f-4d55-b964-1080f91ee9a0
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 37f1d398-2e01-4f9e-896f-f8d54e8edfaf
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 1aa4203c4b Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a0a576b2-b0c8-4957-a050-9455d8333c63
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 8fa315c5-8c1d-49e6-a929-dcae56041c2b
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West db32bdc6dd Standardize documentation headers for proposals and data schemas
Update metadata headers across various Markdown documentation files, including proposals and data schemas, to ensure consistent formatting and version information.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a0a576b2-b0c8-4957-a050-9455d8333c63
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 1f77cc9d-a44f-4ea4-b13b-fb1b8af6fac5
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 794a0ba703 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a0a576b2-b0c8-4957-a050-9455d8333c63
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 4f82bd21-aa4c-42a1-86ff-4c03852cf7b6
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West d79bd216c1 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4dee684a-a4b9-4c32-a818-3a27dae1b027
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 69dbeff6-212a-4bc0-93a3-804c80295098
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 14f92611dd Update documentation links and project references
Adjusted internal documentation links and updated references within various Markdown files to reflect a new directory structure for audit and meta documents.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4dee684a-a4b9-4c32-a818-3a27dae1b027
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 971b8c75-c322-4ede-98ea-eb5ae31d4e5c
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 913a638a26 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4dee684a-a4b9-4c32-a818-3a27dae1b027
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5105ebfe-83e8-4406-b58d-65aaf959975d
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West ab752586d5 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4dee684a-a4b9-4c32-a818-3a27dae1b027
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b39e06e8-bb7f-43ec-a64d-00e3db392246
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West e774f766f9 Update documentation to reflect current project specifications and tests
Consolidate and update documentation references across various markdown files, renaming specifications and test files for clarity.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4dee684a-a4b9-4c32-a818-3a27dae1b027
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 7cf50ce8-84d4-46a0-b9e6-9bbc663da8b8
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 389d5e4a12 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4dee684a-a4b9-4c32-a818-3a27dae1b027
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f8d8c7a9-14cb-4895-b016-db6717b52984
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 91674c673e Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 67c42e43-1630-438c-8341-81ea0fdac4c8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 565ff6d1-b63c-46e8-bc2a-59f5978ed67e
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West ab8bb36eff Enhance deduplication tests with stricter timestamp and data matching
Improve assertions in `tests/api3.aaps-patterns.test.js` and update documentation in `replit.md` to reflect stricter checks for srvModified timestamps and exact data matching in deduplication tests.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 67c42e43-1630-438c-8341-81ea0fdac4c8
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: bad34835-bb02-4e4b-974b-a862572ac51b
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West f885d7dae5 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 67c42e43-1630-438c-8341-81ea0fdac4c8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 7f634978-6c47-43df-9b32-804a6691dd90
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 7b45f1a59f Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 303c05fa-25bc-4a16-92df-3013bc831b33
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/Bc7Z6xs
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West cfe7ab2900 Update meal and SGV tests to use full fixture payloads and verify persisted fields
Refactors tests/api3.aaps-patterns.test.js to use fixture data for meal and SGV treatments, enhancing test accuracy and verifying persisted fields.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 17e3b479-9e0a-49c2-94d4-9e7ff75edd3d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/Bc7Z6xs
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 852aae5efc Add comprehensive tests for real-world AndroidAPS data handling scenarios
Introduce new test suite `tests/api3.aaps-patterns.test.js` and update `tests/concurrent-writes.test.js` to simulate AAPS sync catch-up with rapid sequential SMB and SGV POST requests, ensuring correct deduplication and data persistence for various AndroidAPS usage patterns.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 804cc747-c899-430f-9181-96a22d4301a1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/Bc7Z6xs
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 61435557cf Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 11f5b4f2-e359-4a9e-a951-2eece87941e5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/Bc7Z6xs
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 664056c82a Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: edc09ae9-7926-4e94-ac3d-3f0e30c5ef8a
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/Bc7Z6xs
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 7a78966bc5 Add comprehensive tests for API input handling and concurrent writes
Add tests for API v1/v3 and WebSocket input handling, and improve concurrent write test coverage.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: a5480f95-14f0-4de9-84d1-41c5d1a69aed
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/rAsiAu1
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 3f39476931 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3eec9f11-43fd-4054-a37a-fd3046f2be65
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/rAsiAu1
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 1f1d0f001a Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 01aaaecf-070d-42a3-9aea-07f21b529cd7
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/rAsiAu1
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West e2771d4df8 Add Buffer and VM fallbacks to Webpack configuration
Update webpack.config.js to include 'buffer' and 'vm' in resolve.fallback and correctly configure ProvidePlugin for Buffer, resolving the "Buffer is not defined" error and a related 'vm' warning.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 970a879c-45e0-48b9-bed1-d9e23d410f4a
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/2501b04e-77c8-4f06-a13c-75c232bafd47/rAsiAu1
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 4a52653fd0 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2501b04e-77c8-4f06-a13c-75c232bafd47
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 7d0f3f4c-283d-4307-9d38-9c9bd06405d4
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 3062266ef4 Add comprehensive OIDC actor identity proposal and update documentation
Add a new OIDC Actor Identity proposal document and update architecture overview, authorization security spec, and replit.md to reference and prioritize OIDC integration.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 71600fc9-5175-4929-b903-5174a32258d2
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 4ccfdfed-74a5-4a42-97f1-13cf3f8352fe
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West b048372ee0 Add detailed proposal for verified user identities
Create a new proposal document detailing the integration of OpenID Connect and OAuth 2.0 for verified actor identities.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 71600fc9-5175-4929-b903-5174a32258d2
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 33e79977-76a3-48a2-b0cd-aa045b8c86f0
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 512ee7cb13 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 71600fc9-5175-4929-b903-5174a32258d2
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5872a231-7e1b-4678-bb01-e9e5a77ef14e
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West feb6c9ea2e Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef8efcf8-f9e9-49f9-9441-59adbee38ad3
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6c7c86c3-ffdc-49c1-9642-1da82a1b60d0
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 5a9ffb123a Remove debounce delay for near real-time data updates
Removes the 15-second debounce from `lib/server/bootevent.js`, allowing `data-received` and `tick` events to trigger immediate data updates by calling `ctx.dataloader.update()` directly.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef8efcf8-f9e9-49f9-9441-59adbee38ad3
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 67966157-9e23-4065-b9a1-0ca67482bafc
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West bcc419bc23 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef8efcf8-f9e9-49f9-9441-59adbee38ad3
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6959d3b1-3681-49c0-8391-dddaff27bb0e
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 42f64fba75 Add comprehensive documentation for data schemas
Update replit.md to include new schema documentation for treatments and profiles, detailing field inventories, event types, timestamp semantics, client compatibility notes, and known bugs.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f35580f1-0466-46a6-b245-5665d8e1c559
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 06320ff8-cffb-4a84-b19c-9263c5d08aa4
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 0f18300f2d Add detailed documentation for therapy profile data structures
Create new documentation files for the `treatments` and `profiles` schemas, detailing their structure, fields, and observed variations across different controller applications.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f35580f1-0466-46a6-b245-5665d8e1c559
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 94c8fcd7-5002-4547-98e7-481a72a86ca0
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 01f3db79d4 Document the structure of treatment records used for diabetes management
Create a Markdown file detailing the fields, types, and constraints for the `treatments` collection, including glucose, nutrition, insulin, basal, temporary target, and profile switch data.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f35580f1-0466-46a6-b245-5665d8e1c559
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 5b10d686-67df-4c29-8eb6-638e9534fa18
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West b7c5564ec7 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f35580f1-0466-46a6-b245-5665d8e1c559
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 617ab7e4-e175-416b-97d1-17882f62dd24
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 06beef94ba Add project documentation progress tracker and update README
Create `docs/DOCUMENTATION-PROGRESS.md` to track requirements and test specification efforts, including progress, priorities, lessons learned, and guidance for collaborators. Update `replit.md` to reference this new progress tracker.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 055897c4-83a5-4136-93d8-ff61ec1a77a8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5af50b7b-7741-43cb-9f57-56a3635f46b7
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 12961ed0a2 Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 055897c4-83a5-4136-93d8-ff61ec1a77a8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 7dffa88d-4e9f-4089-bdee-2cd9096d6eff
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West f329ec084c Add comprehensive authorization and security documentation and test specifications
Introduces `authorization-security-spec.md` and `authorization-test-spec.md` to document API authentication requirements (API_SECRET, JWT, Shiro permissions, brute-force protection) and their corresponding test cases, including identification of coverage gaps.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 055897c4-83a5-4136-93d8-ff61ec1a77a8
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 48221946-c783-44b0-a3b8-0be79161ef82
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00
bewestandBen West 22fefd5456 Transitioned from Plan to Build mode
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 055897c4-83a5-4136-93d8-ff61ec1a77a8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a5c3b605-8974-4d61-b7ed-ce8c854cbd38
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:14:21 -08:00