feat(web): integrate contributor session provenance and trust diagnostics - #442
Merged
Conversation
Integrate testikun's #398 and #392 contributions on the current React baseline. Preserve current-runtime provenance without claiming a global ownership lock, distinguish persisted trust from active Session authority, and align refreshRequired with Pi runtime initialization when resources change. Cover copied Session IDs, authentication, optional controllers, and unknown trust facts. No new UI or authority mutation is introduced. Refs #440, #398, #392 Co-authored-by: testikun <320479488+testikun@users.noreply.github.com>
This was referenced Sep 7, 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.
Problem and result
Integrate the useful read-only Web contributions from #398 and #392 on current main. Session summaries now identify their Web-directory source and whether this runtime controls them. The controller projection matches both Session ID and file, so a copied file retaining the same ID cannot claim current control.
Authenticated
GET /api/trustexposes Pi's saved project decision separately from the active Session's trust. The original refresh calculation missed project-resource removal; it now follows Pi's actual initialization rule and reports when a new Session would have different trust.Boundaries and attribution
320479488+testikun@users.noreply.github.com.Validation
bun run checkpassed.bun run test: 1,449 Node tests passed, 1 skipped; 92 Vitest tests passed.Closes #440. Integrates #398 and #392; source PRs will be closed with the integration link after merge. Related attachment findings remain tracked in #441.