Skip to content

fix(e2e): retain complete pinned Firebase runtime custody - #1126

Merged
777genius merged 1 commit into
mainfrom
fix/e2e-windsurf-firebase-custody-20261127
Nov 27, 2026
Merged

777genius merged 1 commit into
mainfrom
fix/e2e-windsurf-firebase-custody-20261127

Conversation

@777genius

@777genius 777genius commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Problem

The continuing qualification for #1087 and #1125 reached a reproducible custody-reader limit before the pinned Firebase runtime could be audited. An actual script-disabled npm ci --omit=dev --omit=optional --no-audit --no-fund of the source-bound Firebase fixture produced 22,054 owned entries, including 19,465 node_modules entries, 23 npm bin links (two nested), and 242,615,124 regular-file bytes across the owned fixture.

The existing generic 10,000-member reader refused the complete tree. The authenticated runtime also has legitimate nested bin namespaces, and its complete saved authority frame exceeds the generic 4 MiB JSON digest bound. Truncating, dropping runtime-parent custody, or closing captured objects early would invalidate the audit.

Changes

  • Keep the generic aggregate 10,000-member limit and all existing full-byte, metadata, held-descriptor, ownership, source, cleanup, depth, deadline, per-directory, 64 MiB file and 256 MiB aggregate byte controls.
  • Allow one separately counted 24,576-member node_modules subtree only after the existing ownership/source/receipt/marker joins match the independently pinned Firebase source, revision, manifest and exact runtime configuration. Other sources and outside entries retain their existing bounds. Explicitly supplied descriptor quotas are never widened.
  • Verify actual npm bin links against bin declarations from the authenticated source lock. Every target must pass the existing physical single-hop regular-file checks and remain in the same nearest node_modules namespace. No installed-package metadata reader or additional npm resolver is introduced.
  • Hash every canonical byte of that closed saved frame using a bounded 16 MiB stream. The generic digest remains 4 MiB.
  • In the existing Windsurf plugin audit step, derive the required descriptor capacity from the reader (44,769), refuse an insufficient hard limit, and raise only the shell's soft limit within its existing hard limit.
  • Preserve fix(e2e): retain complete npm runtime custody #1124's complete runtime-parent custody and the original retained-source binding checks.

Exact runtime: Firebase Tools 15.35.0, source 777genius/universal-agent-plugins-registry//plugins/firebase@d9c8d778200d51ae941d86bb69af23534cd1c8f7, lock SHA-256 2bcb58637dc986c4caf43571e4e509ab05048d1e5ef994061ec1b1935bc5e41d. The capacity profile also fixes the source tree and manifest digests in code.

Verification on the combined source

Base 5c58ea4c34f91c84e7946619ce6448e789a79f23 includes the accepted #1124, #1093, #1123, #1122 and #1120 changes. This PR changes exactly five audit/workflow files. Local reviewed commit d539738e694f98a701204f901229e1866c8c29ea and published head a9e302f959196c672d7e11a57f8315dd91d06fac have the identical tree 8fa8908214521db665939e5494ddb2a015785a64, verified against the GitHub-created tree.

Check Result
Full Windsurf audit tests 79 passed, no skips
Full shared retention tests 42 passed, no skips
Full Marketing Kit audit tests 83 passed, no skips, including actual pinned Claude 2.1.263 lifecycle
Workflow YAML, Bash syntax and diff whitespace Passed
Inert workflow limit controls Soft-only raise, already-sufficient limit, insufficient hard-limit refusal, and unlimited variants passed
Old-source causal controls Old reader refuses the new legitimate nested-bin and over-10,000-member positives; old generic digest refuses the 5 MiB positive
Actual prepared Firebase source/receipt/marker preflight Exactly one capacity prefix; all 23 installed bin links match the authenticated lock, including both nested links
Independent code review Completed with no blocking findings

The local full-family runs were sequential and the host OOM counter did not increase (98 before/after).

Merge and continuing hosted qualification

Ordinary squash merge completed at 00:12:17 UTC as f60cbdf812b63fa4647728666c547947ec5f1147, with parent 5c58ea4c34f91c84e7946619ce6448e789a79f23. GitHub Git Data confirms that the merge and PR synthetic commit 77e0529213dc4ded9a1a193b60d10940e1b1ac0d share the exact reviewed/tested tree 8fa8908214521db665939e5494ddb2a015785a64. Automatic PR and post-merge checks remain pending.

The actual 22,054-entry full-reader positive and native Windsurf lifecycle remain hosted verification requirements. The local executor's hard descriptor limit is 16,384; it was not raised or bypassed. The prepared runtime measurement and source/link preflight do not constitute canonical UAP delivery or a native E2E pass.

Existing #1087/#1119/#1125 runs continue normally. Queued, cancelled, skipped and old-source results are not reported as this PR passing. A separately observed Windows Authoring concurrency failure on #1125's tree is being investigated independently. No CI runs were cancelled or rerun by this change, and no release is requested.

Windows Authoring concurrency follow-up — 27 November 2026

The observed Windows AMD64 concurrent-absent failure is addressed by #1127, ordinarily merged at 00:47:02 UTC as 472d0b157f21b1b5c2a5b716ccc8f49577e7262f. Head e4847a00434e4fa3d9555e75024bb8c571fc32ba, PR synthetic 63ae91124bffb5fb054201ff8a3a9427ec9b2270, and the merge share the reviewed tree 5c84c8e54871ac41736ef2b4a55d8614817a98f3 and preserve merged #1126.

The correction retains a private Skills-stage guard and reuses checked bounded publication. The strict one-commit assertion, source/byte/identity checks, and foreign-data protection remain. Focused Linux tests, Windows compilation, Linux/Windows size/architecture gates and the unchanged lint-baseline ratchet passed. Local broad linking/lint was terminated by the host, so complete native Authoring and Required remain pending hosted qualification. The original failing artifact did not retain both errors; #1127 records that diagnostic limit and captures them in future failures.

Keep the generic reader limits while granting one independently pinned Firebase node_modules subtree a fixed member envelope. Preserve full descriptor and byte custody, validate nested npm bins against the authenticated source lock, and stream the complete bounded saved frame.

Provision only the audit shell's soft descriptor limit within its existing hard limit. Preserve runtime-parent and retained-source authority from #1124. Final combined source: 79 Windsurf, 42 retention, and 83 Marketing tests passed, including pinned native Claude. Full hosted Firebase qualification remains pending.
@strix-security

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.38%. Comparing base (5c58ea4) to head (a9e302f).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1126      +/-   ##
==========================================
- Coverage   64.38%   64.38%   -0.01%     
==========================================
  Files        2352     2352              
  Lines      143065   143065              
==========================================
- Hits        92108    92106       -2     
- Misses      37893    37894       +1     
- Partials    13064    13065       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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