Conversation
…, Electron gate policy docs - Fix lint error in Daydreamer.test.ts (#40) - Add guard:model-derived and guard:hotpath-policy to CI workflow (#40) - Create TransformersJsEmbedding.bench.ts benchmark (#39) - Update BASELINES.md with measured values (#39) - Add architecture diagrams (ingest, query, module dependency) to docs/api.md (#41) - Add Electron runtime gate policy documentation to docs/development.md (#40) - Fix model-derived guard violations in SubgraphImporter.ts Co-authored-by: devlux76 <86517969+devlux76@users.noreply.github.com>
Co-authored-by: devlux76 <86517969+devlux76@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [P3-X] Ensure P3 polish and ship work meets DESIGN
P3 polish: CI guards, missing benchmark, architecture diagrams, Electron gate policy
Mar 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR strengthens project guardrails and documentation while expanding benchmark coverage for embedding throughput and updating baseline measurements.
Changes:
- Add a new Vitest benchmark suite for (proxy) Transformers.js embedding throughput and update benchmark baselines.
- Document Electron runtime gate expectations in the development guide and add architecture diagrams to the API docs.
- Add CI guard steps for
guard:model-derivedandguard:hotpath-policy, plus minor lint/guard annotations and a small test cleanup.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/integration/Daydreamer.test.ts | Minor cleanup to the P2P transport test stub. |
| tests/benchmarks/TransformersJsEmbedding.bench.ts | New embedding throughput benchmark suite (dummy-backend proxy). |
| sharing/SubgraphImporter.ts | Add model-derived-ok suppressions to satisfy guard:model-derived. |
| docs/development.md | Add “Electron Runtime Gate Policy” section and update ToC. |
| docs/api.md | Add architecture/data-flow diagrams and update ToC. |
| benchmarks/BASELINES.md | Record baseline numbers and add a new TransformersJs embedding section. |
| .github/workflows/ci.yml | Add guard steps to CI workflow. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Final pass on P3 polish & ship subtasks (#36–#42). Most were already complete; this closes the remaining gaps.
CI Hardening (#40)
guard:model-derivedandguard:hotpath-policysteps to.github/workflows/ci.yml— these scripts existed but were never wired into the pipelinedocs/development.mdwith GPU requirements table and CI decision matrixmodel-derivedguard violations insharing/SubgraphImporter.ts(sentinel values, not actual model constants)Benchmark Suite (#39)
tests/benchmarks/TransformersJsEmbedding.bench.ts(P3-D1 — was missing)benchmarks/BASELINES.mdwith measured values from CI runner (previously all TBD)Documentation (#41)
docs/api.md: ingest data flow, query data flow, module dependency graph (P3-F3 — was missing)Misc
_handlerparameter intests/integration/Daydreamer.test.tsAlready Complete (verified, no changes needed)
docs/product-surfaces.mdcovers all acceptance criteriaOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.