Skip to content

Adding electron sample#13

Merged
nmetulev merged 3 commits into
mainfrom
nmetulev/electron-sample
Oct 13, 2025
Merged

Adding electron sample#13
nmetulev merged 3 commits into
mainfrom
nmetulev/electron-sample

Conversation

@nmetulev

Copy link
Copy Markdown
Member

No description provided.

@nmetulev nmetulev enabled auto-merge October 13, 2025 05:52
@nmetulev nmetulev merged commit 64f6365 into main Oct 13, 2025
8 checks passed
@azchohfi azchohfi deleted the nmetulev/electron-sample branch October 13, 2025 17:06
nmetulev added a commit that referenced this pull request Jul 12, 2026
…iewer round 2)

Address the 12 remaining reviewer round-2 findings on top of cc727d8. All are
inside W2 scope (schema, conformance gate, docs, golden traces, scan/CI). No
runtime work built; deferred-runtime areas (W1 transport / W8 security) are
softened in docs with explicit "deferred" notes rather than implemented.

Tooling / gate depth:
- #2  Deepen golden validation: ConformTrace now requires jsonrpc "2.0" on every
      message, rejects result+error together, correlates error ids (not just
      results) to a prior request, and validates payloads RECURSIVELY against the
      contract via ValidateObject/ValidateValue/ValidateScalar — nested $ref
      objects, enum value sets, and array element types, not just top-level names.
- #4  Assert golden trace count > 0 (an empty golden dir no longer passes vacuously).
- #5  gen Validator.CheckType now runs CheckField over each object type's
      properties, so a dangling $ref inside an object type is flagged (was silent).
- #8  New golden traces 04-07 (HotReload lifecycle, Resource+Diagnostics, Selection
      +Security, describe/set/cancel lifecycle). New golden-coverage check requires
      every command+event to be exercised by at least one trace (all 40 covered).
- #10 wdxp.schema.json root closed (additionalProperties:false) + $schema property;
      new protocol/scripts/validate-schema.py (draft 2020-12 guard) wired into CI.
- #11 check-public-appropriateness.ps1 broadened to also scan specs/winapp-devtools-*.md
      and AGENTS.md (excludes the csproj agent's file by design).
- #15 Extract shared Wdxp.Gen.SchemaPaths.FindUp; gen + conformance both call it.

Schema / contract consistency:
- #7  Outcome invariant narrowed to transactional apply/commit; ephemeral
      Property.set/setPreview return the resulting PropertyValue (schema + envelope §6 + README).
- #12 Security.authenticate now returns token (+optional expiresAt) so the reconnect
      token param has a source; envelope §7 softened to "host-defined, finalized in W8".
- #13 envelope §3/§7 document the pre-auth trust boundary (CurrentUserOnly pipe ACL)
      and what target binding grants before authenticate.
- #14 ids pinned to string protocol-wide (envelope §2, enforced in ConformTrace);
      NodeHandle.handle integer -> string (decimal-encoded uint64, no >2^53 precision
      loss); goldens 02/03 handles updated to strings.
- #6  envelope §1/§3 clarify per-target pipe vs pre-bind discovery; cross-target
      discovery marked W1/phase-3 deferred.
- README: de-hardcode the check count, Applied->applied casing, schema-guard note.

Verified: Release build 0 warnings; conformance PASS (10/10) with recursive
validation + full coverage; negative tests prove teeth (missing jsonrpc, numeric id,
result+error, unknown/enum field, dangling $ref, closed-root schema guard); python
schema guard PASS (+rejects stray key); license headers + broadened scrub scan green.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d376fce1-8858-45ae-a496-245835e5879f
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.

2 participants