Skip to content

test(reporting): integrated accounting, compatibility and resource validation - #277

Merged
toddysm merged 5 commits into
mainfrom
feature/transfer-endpoint-report/validation-496e8a8f
Dec 6, 2026
Merged

toddysm merged 5 commits into
mainfrom
feature/transfer-endpoint-report/validation-496e8a8f

Conversation

@toddysm

@toddysm toddysm commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Strengthen the shared physical-dispatch oracle with exact unique-endpoint equality across existing library pull/push/transport suites.
  • Add authenticated GET/POST-refresh CLI matrix scenarios, permitted multihop storage redirects, secret-before-retention checks, native SQLite lock failure, cancellation after blocked-worker drainage, and real default 256 MiB budget reservation validation.
  • Add a bounded paired metadata/renderer benchmark and retain measured macOS evidence with its exact driver digest.
  • Include integration tests in the existing legacy Requests/urllib3, minimum Click, and native-platform CI selectors; preserve existing tests and approved layout benchmark inputs.

Closes #262

Related tracking issue: #254. Required final feature documentation remains #263.

Validation

  • Local related regression suite: 1,336 passed, 1 skipped on Python 3.12.4/macOS, Requests 2.31.0, urllib3 2.2.2, Click 8.3.1.
  • Scoped benchmark mypy check and Black checks passed; related documentation links and compatibility-selector wiring verified.
  • Three report-off/report-on pairs each at 1,000 and 100,000 metadata events, concurrency four; raw evidence committed in docs/library/request-report-validation-macos.json. Exact benchmark driver SHA-256: 16893b49f72e3b2a348bf89d106126e2d8de177efebc6ba9340047354cffb290.
  • GitHub-hosted continuous integration (CI) and review are authorized. Local results are not hosted CI results.

Resource evidence and acceptance gate

These are metadata-only measurements with zero network dispatches/payload bytes, not registry throughput or transfer-performance certification.

  • 1k: mean elapsed delta 1.912 s, population standard deviation 0.036 s; operation peak resident set size (RSS) delta 3.484-4.172 MiB; all three reports complete.
  • 100k: mean elapsed delta 148.164 s, population standard deviation 0.904 s; operation peak RSS delta 3.969-5.453 MiB. All three samples reached spool_limit at 134,021,120 database bytes, conservatively within the 256 MiB database-plus-rollback-reservation budget.
  • Attempted count remains exactly 100,000; missing records 22,434 / 22,777 / 22,449; unavailable unique counts are null. Partial report rendering is recorded separately. Disabled samples acquired no spool; all samples cleaned their owned storage.

No performance budget has been approved. Owner acceptance of workload-specific elapsed/CPU and peak-memory deltas remains a default-on/release-readiness gate. This PR must not be merged without separate authorization; no merge, release, or branch/worktree deletion is authorized in this session.

toddysm and others added 2 commits December 5, 2026 11:07
…262)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 5, 2026 19:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T03:46:13.222903Z 375c3fd Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@toddysm

toddysm commented Dec 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 3ae8b96131

ℹ️ 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".

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The integration test can leave workload processes running after a timeout, and its self-referential reservation check can miss insufficient rollback space.

2 open issues
What changed in this PR

Strengthens validation of RegShape’s request reporting for #262, covering integrated accounting, compatibility and resource limits. Performance acceptance and final feature documentation remain separate gates.

Changes:

  • Adds authentication, redirect, redaction, cancellation and storage-limit integration tests.
  • Strengthens endpoint accounting and expands existing CI selectors.
  • Adds a paired metadata benchmark with recorded macOS evidence.
File Description
src/​regshape/​tests/​test_request_report_integration.py Adds integrated reporting and resource-limit checks.
src/​regshape/​tests/​test_request_observation.py Checks exact unique endpoint counts.
src/​regshape/​tests/​benchmark_request_report.py Measures report-on/off metadata and rendering costs.
docs/​library/​request-report-validation.md Documents coverage, measurements and acceptance limits.
docs/​library/​request-report-validation-macos.json Records paired macOS benchmark evidence.
.github/​workflows/​tests.yml Extends compatibility and native-platform test selectors.

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@toddysm
toddysm requested a balanced review from Copilot December 5, 2026 19:28
@toddysm

toddysm commented Dec 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 30ea16dea0

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Owner acceptance of runtime and peak-memory overhead, security disposition, and separate merge authorization remain explicit human-review gates that metadata-only evidence cannot satisfy.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Handle driver SIGTERM through subprocess cleanup, retain ownership of sample temporary files, and test worker reaping without success-shaped evidence. Implement the text sink protocol and guard live group/database interfaces.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@toddysm
toddysm requested a balanced review from Copilot December 6, 2026 03:44
@toddysm

toddysm commented Dec 6, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 375c3fd18a

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The recorded 100k workload overflows collection and adds substantial elapsed/CPU cost, while owner acceptance of resource overhead and separate merge authorization remain outstanding.

No open issues 🎉

Review effort: Balanced

@toddysm
toddysm merged commit 91d8463 into main Dec 6, 2026
15 checks passed
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.

Validate complete request accounting, compatibility and report resource limits

3 participants