Skip to content

feat(runtime): add bounded parent-only runtime snapshot (#651) - #666

Merged
tt-a1i merged 12 commits into
mainfrom
pi/finish-651-direct-1-9106c5
Oct 4, 2026
Merged

tt-a1i merged 12 commits into
mainfrom
pi/finish-651-direct-1-9106c5

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Related to #651. The parent model lacks one bounded, read-only view separating configured defaults, current Session selections, checkout facts, trust/tool boundaries, and owner-reported resources. Inferring these facts from UI labels or configuration alone can misrepresent the active runtime.

Value

Expose verifiable runtime observations without a new authority store, private paths/model identifiers, automatic installation, or hidden lifecycle actions.

Approach

  • Add progressively activated, parent-only runtime_snapshot, with a 16 KiB serialized output cap and bounded inventories.
  • Sample existing Pi settings/context, package configuration inspection, tool source metadata, and registered resource-owner projections independently; unavailable sources remain unavailable.
  • Redact identities and paths; mark active tools as an allowlisted projection with unknown completeness, and preserve lower-bound omission uncertainty from upstream truncation.
  • Query Git read-only with explicit cwd and a copied subprocess environment that removes repository-selection overrides and all inherited GIT_TRACE* output variables. Preserve gitlink dirty signals while excluding nested submodule content changes.
  • Record provenance, uncertainty, non-atomic sampling, and disclosure boundaries in docs/architecture/RUNTIME_SNAPSHOT.md.

Validation

Current head: aa09aebe79aa2051ea2646d9cd130d7e3caadb2a.

Impact

  • User-visible: no automatic action or configuration change; capability available on demand.
  • Model-visible: new bounded parent-only snapshot, progressively disclosed, with explicit unavailable/unknown/redacted states.
  • Runtime/lifecycle: read-only independent sampling; no manager acquisition, resource mutation, model call, cleanup, or installation.
  • Persisted config/data: none; no new store or preference.
  • Compatibility/risk: not an atomic snapshot, upstream routing and single-source installation certainty are not inferred, owner inventories can be incomplete, and concurrent host load can affect real-process test deadlines.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 4, 2026
@tt-a1i

tt-a1i commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator Author

Independent post-publication review

Verified exact HEAD c0e69f36affac466525671450543a25a39bec461, base 94f6dfb29343a699010440f37734ac14582c84af. Published 13-file diff (+1650/-7) matches the reviewed local candidate; tree matches the remote branch.

Correctness / read-only boundary

  • [Fixed/re-reviewed] Git sampling honors explicit cwd, strips inherited trace-output variables in a copied environment, and leaves parent environment and trace targets unchanged. Earlier redaction, allowlisted scope/unknown completeness, bounded samples, and lower-bound omission contracts remain intact.
  • [Information] No new findings or misrepresentation in exact-HEAD/post-publication review.

Validation

  • [Information] PR correctly distinguishes final 88/88 focused and scoped format/lint results from earlier typecheck/check/full-suite revisions. Failed full-suite results, unclassified cancellation, and 90 s UI timeout remain disclosed; no final full-suite green claim.
  • [Information] Single post-publication CI snapshot was still in progress for runtime, Web E2E, Windows and UI. Area labels succeeded; notification skipped. No polling or rerun.

Draft, review-required and blocked at observed snapshot. This is not approval or merge readiness; no merge, release or live installation performed.

@tt-a1i
tt-a1i marked this pull request as ready for review October 4, 2026 06:33
@tt-a1i
tt-a1i merged commit b0096cc into main Oct 4, 2026
18 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.

1 participant