You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9214427
Browse filesBrowse the repository at this point in the historyBrowse files
Review feedback on #63. The ticket sale examples tested holds with
`buyer in this.holds`. The `in` operator also matches names that
Object.prototype supplies, so a buyer named "constructor" could not
hold the free ticket, and expire could add a ticket that no hold had
taken. Before the fix, `node examples/ticket-sale.ts hold constructor`
printed [{"held":false,"available":1}]. It now prints
[{"held":true,"available":0}]. Use Object.hasOwn in the example, both
guides, and the README.
The example now takes buyer names after `hold`, with ada and grace as
the default, and test:package holds a ticket for "constructor"
against the packed tarball.
Two fixes in docs/agents.md:
- The production policy read userId from an unchecked cast, so a null
authorization context threw a TypeError instead of a denial. It now
narrows the context and returns false for any malformed value.
- runDueReminders requires { now }. The verification step now passes
a Date and drains the actor role, as the test helper requires.
Both snippets type-check against the package.
0 commit comments