feat(enterprise): enforce rbac owner guard#68
Closed
Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-api-key-managementfrom
Closed
feat(enterprise): enforce rbac owner guard#68Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-api-key-managementfrom
Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-api-key-managementfrom
Conversation
mr-torto
pushed a commit
to mr-torto/SmartPerfetto
that referenced
this pull request
May 8, 2026
, Gracker#33, Gracker#49, Gracker#68, Gracker#69, Gracker#72, Gracker#78, #132) StartupAnrMethodGraphContract bundles the startup / ANR / method-trace attribution graph. Four facets, all optional: - StartupPhaseRow[] with ART verifier / JIT / class loading / Compose recomposition / Startup library initializers (Spark Gracker#32, Gracker#68, Gracker#69, #132) - AnrAttribution[] joining traces.txt thread samples to method-trace evidence (Spark Gracker#33, Gracker#49) - MethodTraceNode[] for Matrix / BTrace / RheaTrace / KOOM / bytecode imports (Spark Gracker#72, Gracker#78) - Reused JankDecisionNode (Plan 10) for the decision tree shape StartupPhase uses string union so future Perfetto stdlib startup phases do not require an enum bump. Plan: docs/superpowers/spark/plans/17-startup-anr-memory-graphs.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mr-torto
pushed a commit
to mr-torto/SmartPerfetto
that referenced
this pull request
May 8, 2026
buildStartupAnrMethodGraph fuses startup phase rows, ANR attribution and method-trace nodes into one StartupAnrMethodGraphContract. Coverage is computed per spark dimension based on input shape: - Phases with art/JIT/class-loading timings flip Spark #132 - Phases with non-zero recompositionCount flip Spark Gracker#68 - Phases with initializersFired flip Spark Gracker#69 - ANR attribution flips Spark Gracker#33; thread samples flip Spark Gracker#49 - Method-trace nodes with source matrix/btrace/rheatrace/koom flip Spark Gracker#72; bytecode source flips Spark Gracker#78 The pruneMethodTraceChildren helper drops dangling child ids from the node graph so the contract is always renderable even when upstream importers emit incomplete data. Tests: 5 cases covering ART promotion, recomposition promotion, dangling children pruning, source-based promotion, and unsupported. Plan: docs/superpowers/spark/plans/17-startup-anr-memory-graphs.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
Author
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.
Summary
agent:runchecks on RequestContext routesScope note
/api/workspaces/:workspaceId/*wrappers remain §0.2.6.Verification
cd backend && npx jest src/services/__tests__/enterpriseSchema.test.ts src/services/__tests__/enterpriseOidcClient.test.ts src/services/__tests__/rbac.test.ts src/routes/__tests__/enterpriseAuthRoutes.test.ts src/routes/__tests__/enterpriseApiKeyRoutes.test.ts src/routes/__tests__/agentRoutesRbac.test.ts src/middleware/__tests__/auth.test.ts src/routes/__tests__/requestContextRouteCoverage.test.ts src/routes/__tests__/ownerGuardRoutes.test.ts src/services/__tests__/sessionPersistenceService.test.ts --runInBandcd backend && npm run typecheckcd backend && npm run test:scene-trace-regressionnpm run verify:pr