Skip to content

feat(review-tutor): add secure local core - #60

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/59-review-tutor-core
Aug 20, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
feat/59-review-tutor-core

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

What changed

  • add the private @pickforge/review-tutor workspace package and Pi extension
  • load immutable PR, worktree, staged, commit/range, and pasted-code snapshots
  • run questions in an isolated read-only Pi child with bounded I/O and owned shutdown
  • persist private append-only learning logs and export network-free HTML
  • serve a token-authenticated loopback page with SSE replay and reconnect recovery
  • add protocol, process, server, persistence, export, and extension lifecycle tests
  • split subprocess execution and server session ownership into lint-gated internal modules

This is PR 1 of issue #59. PR 2 adds the guided diff/learning UI; PR 3 proves packaging and installation.

Rebase integration

main added enforced lint, dependency-audit, and secrets gates after this branch was first reviewed. The rebased change therefore also:

  • declares Pi explicitly as Review Tutor's development dependency after pi-kit moved out of this workspace
  • satisfies the new complexity and function-size gates without suppressions
  • pins fixed transitive patches for brace-expansion, nanoid, and postcss; current OSV data flags the versions still present on main

Validation

  • bunx [email protected] install --frozen-lockfile
  • bunx [email protected] run check
    • typecheck and lint passed
    • 348 tests passed, 25 skipped
    • coverage: 78.27% statements overall; 84.63% in review-tutor/src
    • all workspace builds passed
  • focused Review Tutor suite: 57 passed
  • OSV Scanner 2.3.8: no issues after the exact patched overrides
  • Gitleaks 8.30.1: 65 commits scanned, no leaks
  • git diff --check
  • loopback browser smoke: token removal, safe DOM rendering, streaming, log, offline export
  • SSE disconnect/replay/state recovery smoke
  • real subprocess EPIPE containment smoke
  • independent security/correctness review and focused re-review of every accepted finding

Not yet proven

  • real Pi/provider question execution
  • real gh pr diff and GitHub head-race execution
  • Windows-native process termination and browser opening
  • PR 2 desktop/mobile diff experience

Review decisions

Current defaults are intentionally reviewable rather than settled product policy: 1 MiB sources, four queued questions, 32 in-memory snapshots, 100 terminal question views, 256 SSE replay events, six history entries within 32 KiB, and a five-minute child timeout. The package remains private at 0.0.0; versioning and peer-range tightening belong to PR 3.

Local-review risk class: high. No release note was added because this is a private prototype package with no release exposure.

Refs #59

@ElbertePlinio
ElbertePlinio force-pushed the feat/59-review-tutor-core branch from baf5c79 to cb9e8dd Compare August 19, 2026 12:31
@ElbertePlinio ElbertePlinio mentioned this pull request Aug 19, 2026
14 of 15 tasks
@ElbertePlinio
ElbertePlinio merged commit b88a04c into main Aug 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant