Repository navigation
Trustblocks share links open ready to simulate; the clause check reports truly - #2
Merged
Merged
Conversation
…rts truly
Found opening the link Trustblocks' "Open in Template Playground" now
generates (a contract's template, model, data, clause and lifecycle):
- The page hung on a share link: loadFromLink awaited the clause check,
which waits for the sandbox the page renders only once loading is done.
The check now runs without holding up the load, as on a sample.
- "Start building" replaced a share link's template with the first card's.
A page opened from a link keeps what the link loaded.
- The check reported every clause refused ("[object Object]"): the sandbox
hands a null result back as {}, and anything but a string was taken as a
refusal. Only a string is one now. Simulate had stayed usable because a
lifecycle alone unlocks it, which hid this.
- A link with a lifecycle and no clause opens the logic panels too.
e2e/trustblocks.spec.ts now checks the Logic step says "checked", and opens
such a share link -- the Town Manager contract -- and approves it under
CERTIFY_MINUTES.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tbrooke
added a commit
to TrustBlocks/trustblocks-contracts
that referenced
this pull request
Sep 28, 2026
…plate-playground#2) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tbrooke
added a commit
to TrustBlocks/trustblocks-contracts
that referenced
this pull request
Sep 28, 2026
…cle (#49) * Template Playground: Trustblocks' own, with the clause and the lifecycle A contract's Template Playground action now opens Trustblocks' fork of Accord's playground (TrustBlocks/template-playground, hosted at trustblocks.github.io/template-playground), which runs Clojure logic with our own clause runtime. The share link carries the contract's clause (logicTs) and lifecycle (lifecycleJson), so it opens ready to simulate. The fork bundles our shared models and Accord's usa.state beside Accord's standard ones, so every template of ours opens -- the manager's contract, unavailable until now, included. A model needing more than one namespace beyond the bundle is still explained rather than linked. bin/playground runs the fork locally (the `trustblocks` branch, pinned), building its logic runtime and samples from the sibling trustblocks-templates checkout the first time. The docs, runbook and AGENTS.md say what the fork is and how to run it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * bin/playground: pin the fork at its share-link fixes (TrustBlocks/template-playground#2) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I found these by opening the link the app's Open in Template Playground now generates, which carries a contract's template, model, data, clause and lifecycle.
loadFromLinkawaited the clause check, and the check waits for the sandbox, which the page renders only after loading finishes. The check now runs without holding up the load, as it already did for samples.[object Object]. The sandbox hands anullresult back as{}, and anything other than a string was taken as a refusal; now only a string is. Simulate had stayed usable because a lifecycle alone unlocks it, which hid the bug. There's now a unit test for the{}case.Tests
e2e/trustblocks.spec.ts: 4 of 4 pass, with two new tests:CERTIFY_MINUTES, ending inAPPROVED.🤖 Generated with Claude Code