Skip to content

fix(showcase): persist complete canonical fleet results - #7335

Merged
jpr5 merged 1 commit into
mainfrom
fix/showcase-result-capacity
Sep 21, 2026
Merged

jpr5 merged 1 commit into
mainfrom
fix/showcase-result-capacity

Conversation

@jpr5

@jpr5 jpr5 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Problem and change

Full canonical Showcase results exceeded PocketBase's 65,536-byte probe_jobs.result limit. Workers completed their jobs, but their result writes were rejected; the dashboard could not receive the cell verdicts.

Add one migration increasing only that JSON field to a finite 2,000,000-byte limit, matching the existing status/history signal ceiling. The captured full 42-cell result measured 106,702 UTF-8 bytes (18.7× headroom, not a guaranteed maximum for every future result). All verdicts and proof fields remain intact. Preserve other field options and existing larger limits; fail if the expected JSON field is absent. Rollback intentionally retains capacity so stored larger results remain compatible.

Real local RED → GREEN

Actual canonical full D5 capture through the local public shell and LangGraph Python backend; immutable payload SHA256 586b59996a2b616b2e2dc1c70c6fc3bd4b92ef745b1ef88c70dd238aea20da0c.

RED — private PocketBase 0.22.21, actual probe_jobs row 3bnwfpghn5wzh89:
HTTP 400
result.code: validation_json_size_limit
result.message: The maximum allowed JSON size is 65536 bytes.
payload bytes: 106702

Applied 1779990600_probe_jobs_result_capacity.js

GREEN — SAME row and SAME complete payload:
HTTP 200
readbackEqual: true
actual result consumer first pass: processed 1, failures 0
actual result consumer second pass: processed 0, failures 0
result_processed: true
42 cell outcomes retained; 43 history rows, 38 live status rows, one run

The local result contains failing demos; this change delivers their results rather than changing demo behavior. No framework-cell repair claim.

Validation

  • Official PocketBase Dockerfile built locally on linux/arm64 after the final source correction.
  • Syntax, scoped oxlint, scoped oxfmt, and diff checks pass.
  • Same-payload real database and actual consumer/aggregator/status/run writer verification above.
  • Finite-cap, idempotency and unchanged schema/data checks are recorded with the final gate receipts.

Proof artifacts: result-capacity-local/private-probe-jobs-red.json, migration-up.log, private-probe-jobs-green.json, consumer-green.json, implementation-gates.json, and docker-build.log.

Staging deployment must retain :latest, apply the additive migration on its existing volume, verify actual field capacity, and rerun the fresh matrix. No aimock release or image pin.

Final source: 4523f65a36c103cd7bd0bb672a9521141728b6f4. Seven independent review roles report zero mandatory findings. pre-push-quality.json records CLEAN_NO_PUSH; commit-concerns.json confirms the unchanged single purpose commit. Remote CI and deployment remain pending.

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (4)
  • fix(showcase)
  • feat(showcase)
  • chore(release)
  • chore: release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 5d454274-2785-4ea7-9867-69938cf8ca2b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 42 services digest-pinned.

Run 2026-09-21 15:02:50 PDT — 0 finding(s).

@jpr5
jpr5 merged commit 8069069 into main Sep 21, 2026
27 checks passed
@jpr5
jpr5 deleted the fix/showcase-result-capacity branch September 21, 2026 22:11
contextablemark added a commit that referenced this pull request Oct 1, 2026
Complete fleet results can exceed the existing 65,536-byte
probe_jobs.result limit and fail persistence. This restores the additive
migration from #7335 byte-for-byte, raising the finite limit to
2,000,000 bytes while preserving existing larger limits and other schema
options. Missing or incorrectly typed fields fail with a specific
migration error. The down callback remains a no-op.

The focused integration driver uses official PocketBase images and
disposable local databases. It checks baseline rejection, full payload
equality after upgrading the same row, finite overflow rejection, fresh
installs, preserved larger limits, malformed schema guards, exact
migration re-execution, and application-image rollback and re-upgrade.
No down migration is run. Its synthetic fixture verifies storage
capacity; it is not evidence that demo features pass.

Removed the Docker lifecycle fault suite, custom-input test, legacy
failure mode, evidence writer, artifact retention options, and duplicate
payload hashes. Direct database assertions and owned-resource cleanup
remain. Production migration behavior is unchanged.

Validation: the retained real PocketBase suite passed on official
images, including baseline rejection, upgrade/fresh writes, guards,
finite overflow, idempotence, and application-image rollback/re-upgrade.
Scoped Nx format/lint and JavaScript syntax checks passed; the full
official Docker image built successfully. Test containers and volumes
were removed.

Deploy separately after the endpoint prerequisite, retaining schema/data
and observing a complete staging D5/D6 cycle before the next change. No
rollout is included.

Restart references: #7335, #7340. This does not reverse the broader
showcase rollback or merge the archive.
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.

1 participant