Repository navigation
test(plugin-security): split the three-officer posture cases one per auditor variant - #35452
Merged
objectstack-fleet[bot] merged 1 commit intoNov 19, 2026
Merged
Conversation
…variant Each of the twelve caller cases did three variants' grant insert, removal by id, bulk removal and position holding, and on loaded Test Core shards reached vitest's 5 s per-test default. One case per posture, caller and variant does a third of that work; every assertion is unchanged. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
Contributor
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb Landing · area data-1 · 2026-11-19T10:20Z
State: draft → ready + auto-merge (merge queue). This closes #35436 via |
objectstack-fleet
Bot
deleted the
claude/issue-35436-posture-test-budget
branch
November 19, 2026 10:46
This was referenced Nov 19, 2026
os-bill
pushed a commit
that referenced
this pull request
Nov 19, 2026
Brings in the posture-test split (#35452) so this PR's Test Core shard can go green. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Fixes #35436
Clause-②: no
Metadata-protocol: none
维护者速读
席位核对
What changes
packages/plugins/plugin-security/src/org-admin-assignment-boundary.posture.test.ts, the three-officer describe. The 12 cases (2 postures × 6 callers) each looped over the 3 auditor variants. They become 36 cases (2 postures × 6 callers × 3 variants). Each case does one variant's grant insert, removal by id, bulk removal and position holding, then removes every row it wrote, with the samefinallyas before. Everyexpectline is unchanged. The only code that moved is thefor (const variant ...)loop, lifted from inside theitto around it.test-budget:header line keeps its number (20) and its class. Its REASON now says 128 cases, thirty-six of them three-officer cases, and why they were split.testTimeoutraise, no per-case timeout, no skip, nothing deleted.Tests
These were run locally on one shared 4-core box under
os-verify-lock.sh. Absolute seconds are shared-box readings; the ratios are the claim. Head3de047739a:a9b36efffa)3de047739a)The slowest three-officer case drops from 611 ms to 223 ms (×0.36). Applied to the worst CI reading on the card (5534 ms on #35386's loaded shard), that is about 2.0 s, which leaves 2.5× headroom under the 5 s default.
vitest verdict lines
Acceptance notes
test-budget: SECONDS — CLASS: REASON, whichscripts/measure-test-shard-timings.mjs(readTestBudget) reads. It governs the timings report's 10 s per-FILE wall line, not vitest's per-case timeout, and this file already carries one (20 s). It cannot hold a single case under 5 s, so splitting is the route.Verification
node scripts/pm/dispatch-gates.mjs --commandsderived 54 commands for this diff. 52 exit 0. 2 exited 3, PREREQUISITE NOT MET (check:i18nandcheck:dual-build-cjs-loadsneed a full workspace build); they are recorded NOT MEASURED and left to CI.--ranreconciliation: 54 accounted, 52 run, 2 NOT-MEASURED, 0 UNRUN.skip-changeset: this is a test-only diff, so nothing is published.Generated by Claude Code