Skip to content

bash and browser mediums silently drop gates #12

@deepfates

Description

@deepfates

bash and browser mediums accept gates at init() but never make them callable from inside the medium.

  • bash.ts: stores gates in projectedGates, only intercepts submit_answer via regex. All other gates are ignored at execution time — they only appear in capabilityDocs() text.
  • browser.ts: same pattern. Gates stored but only submit_answer is intercepted.

Gates are supposed to be host functions bound INTO the circle. These mediums accept them and silently do nothing with them.

Possible approaches:

  • bash: intercept gate-named commands before exec, or write gate shims as executables on PATH
  • browser: similar interception in the eval scope

js() and jsBrowser() handle gate injection correctly via sandbox.registerAsyncFunction().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions