Skip to content

test: try agoric-sdk with "no-passable-symbols" endo#10084

Draft
erights wants to merge 2 commits intomasterfrom
markm-test-w-some-endo-3
Draft

test: try agoric-sdk with "no-passable-symbols" endo#10084
erights wants to merge 2 commits intomasterfrom
markm-test-w-some-endo-3

Conversation

@erights
Copy link
Copy Markdown
Member

@erights erights commented Sep 13, 2024

#endo-branch: markm-no-passable-symbols

closes: #XXXX
refs: endojs/endo#2452

Description

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

@erights erights self-assigned this Sep 13, 2024
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Sep 13, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d9f98d
Status: ✅  Deploy successful!
Preview URL: https://09d2e5f3.agoric-sdk.pages.dev
Branch Preview URL: https://markm-test-w-some-endo-3.agoric-sdk.pages.dev

View logs

@erights erights force-pushed the markm-test-w-some-endo-3 branch from 323d327 to 1d9f98d Compare October 14, 2024 20:45
erights added a commit to endojs/endo that referenced this pull request Jan 1, 2025
Closes: #XXXX
Refs: 
- ocapn/ocapn#125 
-
https://github.com/ocapn/ocapn/blob/28af626441da888c4a520309222e18266dd2f1f2/draft-specifications/Model.md
- #2452 
  - Agoric/agoric-sdk#10084 
- https://github.com/tc39/proposal-immutable-arraybuffer 
  - #2414

## Description

Revise Smallcaps cheatsheet to track OCapn as of
ocapn/ocapn#125

### Security Considerations

none

### Scaling Considerations

none

### Documentation Considerations

the point. The cheatsheet was becoming too stale.

### Testing Considerations

none

### Compatibility Considerations

none

### Upgrade Considerations

none
@erights erights mentioned this pull request Apr 29, 2025
2 tasks
@erights
Copy link
Copy Markdown
Member Author

erights commented Apr 29, 2025

TODO close #10084 in favor of #11338 . However, first check if #10084 has changes that would improve #11338

@erights erights requested a review from Copilot September 16, 2025 08:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes support for passable symbols from the Agoric SDK to test compatibility with the "no-passable-symbols" version of Endo. The changes systematically eliminate symbol handling across various components.

  • Removes symbol type checks and handling from proxy operations and marshaling utilities
  • Updates telemetry and debugging code to no longer process symbol-based method names
  • Eliminates symbol-related serialization cases from slogulator and kdebug modules

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/vats/src/core/utils.js Removes symbol type check from proxy getter
packages/telemetry/src/slog-to-otel.js Updates method type annotation and removes symbol handling in message parsing
packages/swingset-runner/src/slogulator.js Removes symbol serialization cases from value and method legibilization
packages/swingset-liveslots/src/liveslots.js Updates DeviceHandler to only accept string properties
packages/swingset-liveslots/src/kdebug.js Removes symbol handling from value and method legibilization
packages/swingset-liveslots/src/facetiousness.js Removes symbol property check from facet assessment
packages/smart-wallet/src/offerWatcher.js Removes symbol case from result type handling
packages/internal/src/callback.js Removes isPassableSymbol import and symbol validation from callback methods
packages/SwingSet/test/upgrade/upgrade.test.js Adds gratuitous comment for PR creation
packages/SwingSet/src/lib/kdebug.js Removes symbol handling from value and method legibilization
packages/SwingSet/src/kernel/deviceSlots.js Updates proxy to only accept string properties
packages/SwingSet/src/controller/controller.js Removes symbol type checks from queue methods

Comment on lines 142 to 146
get: (t, propName) => {
if (typeof propName !== 'symbol') {
propName in t ||
Fail`${q(propName)} not permitted, only ${q(keys(template))}`;
}
propName in t ||
Fail`${q(propName)} not permitted, only ${q(keys(template))}`;
return t[propName];
},
Copy link

Copilot AI Sep 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the symbol type check without adding proper type validation could allow non-string property access to bypass the permission check. The condition propName in t will still execute for symbols, but the error message assumes string properties.

Copilot uses AI. Check for mistakes.
};
};

// Gratuitous change so I can create an otherwise identical PR
Copy link

Copilot AI Sep 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gratuitous comment should be removed as it adds no value to the codebase and appears to be temporary scaffolding for PR creation.

Suggested change
// Gratuitous change so I can create an otherwise identical PR

Copilot uses AI. Check for mistakes.
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