feat(assurance): consolidate performance hardening and test coverage - #605
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
This PR contains solid refactoring improvements focused on code quality and maintainability. The changes include better async/await usage, improved constant extraction for reusability, and added test coverage. All modifications appear to preserve existing functionality while improving code organization.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5626b638e0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Consolidates verified optimizations and tests across: - matrix capability lookup with WeakMap cache - set-based header and status lookups - async config loading for publication updates - scheduling freeze helper refactor and cli tests - unit tests for session store, draft URL, ProseMirror schema, and boundaries
07d7eca to
79077ba
Compare
Summary
Consolidates and validates 10 verified performance optimizations, refactorings, and unit test suites:
lookupCapability) inmatrix.ts(⚡ Caching capability lookups using WeakMap #590).evidence-capture.tsandschedule-reconcile.ts(⚡ Optimize array includes calls in hot loops #585).Array.includeswithDIAGNOSTIC_STATUSES.hasindrift.ts(⚡ Optimize endpoint capture diagnostics status check #575).readFileSynctonode:fs/promisesreadFileinapiPublication set(⚡ [performance] Switch from sync to async file reads #567).loadFreezePolicyhelper inscheduling-freeze.ts(🧹 Extract file loading/parsing from evaluateSchedulingFreezePolicy #573) and added CLI scheduling tests incli-scheduling.test.ts(🧪 Add test for missing schedule At in enforceSchedulingFreezePolicy #586).loadSessioninsession-store.test.ts(🧪 test(auth): add error handling tests for loadSession #579).resolveDraftEditorUrlcovering draft ID lookup and fallback handling indraft-url.test.ts(🧪 Add tests for draft URL resolution #572).parser/schema.test.ts(🧪 [testing improvement] Add tests for ProseMirror schema validation #571).security/boundaries.test.ts(🧪 Update boundaries.test.ts to improve coverage #569).Resolves #590, #586, #585, #579, #575, #573, #572, #571, #569, #567.
Verification
biome ci .: 265 files checked, 0 errorstsc -p tsconfig.strictest.json: 0 errorsnpm run build: incremental build succeedsknip: cleanscripts/validate-testing-taxonomy.mjs: passed (17 modalities)npm run scan:secrets&npm audit --omit=dev: 0 vulnerabilitiesscripts/github-programme.mjs check: exited 0 (274 evidenced items)