Skip to content

Complete secure protocol endpoint dispatch - #36

Merged
codeacme17 merged 4 commits into
devfrom
feat/complete-protocol-dispatch-5
Aug 29, 2026
Merged

codeacme17 merged 4 commits into
devfrom
feat/complete-protocol-dispatch-5

Conversation

@codeacme17

Copy link
Copy Markdown
Owner

Closes #5.

Summary

  • route authenticated loopback requests through runtime-validated protocol handlers
  • derive advertised capabilities from installed handlers only
  • validate request and response schemas, exact opaque IDs, UTF-8 bodies, endpoint-specific response envelopes, and sanitized Remote hosts
  • deduplicate concurrent identical commands and reject command-ID collisions before invoking product behavior
  • record recoverable operation results before handler invocation and validate recovery responses
  • authorize native actions only for exact target/action bindings issued by the latest validated snapshot and execute through one atomic handler seam
  • redact schema-valid diagnostic fields before serialization while preserving valid response shapes

Scope

This completes the protocol and security boundary without implementing Repository Git behavior. Product handlers can now be installed behind the validated dispatch seam.

Out of scope

No known pre-existing defects were found in the touched protocol paths.

Verification

  • 86 tests across 16 test files
  • authenticated HTTP regressions for validation, command collision/retry, recovery, native authorization, redaction, UTF-8, and supported response limits
  • npm run typecheck
  • npm run lint
  • npm run build
  • npm run format:check
  • independent Standards and Spec reviews: no findings

PR preflight was skipped at user request.

@codeacme17
codeacme17 merged commit ebe49d3 into dev Aug 29, 2026
1 check 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.

Implement the versioned loopback protocol and security boundary

1 participant