Skip to content

feat(web): integrate contributor session provenance and trust diagnostics - #442

Merged
tt-a1i merged 1 commit into
mainfrom
codex/web-contribution-followup
Sep 7, 2026
Merged

feat(web): integrate contributor session provenance and trust diagnostics#442
tt-a1i merged 1 commit into
mainfrom
codex/web-contribution-followup

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

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/trust exposes 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

  • These are API capabilities; there is no new UI entry, polling, trust write, tool/context change, or authority expansion.
  • Trust diagnostics are requested on demand, never added to snapshot/stream hydration.
  • Missing optional controller capability returns501; unbound or unreadable runtime facts returnunknown without private errors.
  • Provenance is a current-runtime projection, not a global ownership lock or immutable creation history. Existing operation admission rules remain authoritative.
  • README and commit co-authorship credit testikun using the verified original identity 320479488+testikun@users.noreply.github.com.

Validation

  • Fixed base: 41c59d4.
  • bun run check passed.
  • bun run test: 1,449 Node tests passed, 1 skipped; 92 Vitest tests passed.
  • Focused adapter, host and trust tests:47 passed, including copied IDs, trust drift, authentication/origin/method guards and501 compatibility.
  • Two independent design and final reviews: no unresolved blocking findings.
  • No installed runtime or live provider acceptance claimed.

Closes #440. Integrates #398 and #392; source PRs will be closed with the integration link after merge. Related attachment findings remain tracked in #441.

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>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 7, 2026
@tt-a1i
tt-a1i merged commit 561fd45 into main Sep 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate Web Session provenance and correct trust diagnostics with contributor credit

1 participant