Repository navigation
Conversation
…er dev-host protocol 1 Build prerequisite transactions from a call's complete holder and registration answers. Project effects from the balanced body and redeemers, and page inspection results over session snapshots. Exercise historical wire replay, the DevKit vector format and the fresh-chain workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
Include eligible wallet UTxOs carrying the offered native assets before QuickTx balances the fixed script inputs. Preserve the default JVM wallet path. Check output quantities and both spending and collateral value conservation from call-local chain evidence before reservation. Replay the split-wallet Dex recording and cover the original negative change, an unfunded nonnegative output, and reserved token selection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…ADR-0022 §9) 24 vectors recorded by DevKitHostTest.recordHostVectors on a freshly reset DevKit (-PdevnetOnly -PjoustHostFixtures), every recorded transaction accepted by the node: Bank, Dex (publications, init, addLiquidity with native assets) and HostCouncil (owned init/action/destroy, a destroy with events, @quorum with the caller alone and with a second signer), the reconstructed combined verifier publication, and typed unsupported requests (authorizedBy, keyed, maps, params, unverifiable). HostVectorsTest replays all 24 offline; no key material is in the vectors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
Update · head 59efe5a: M1b's DevKit gates pass. On the way, a real bug was found and fixed. The bug. On a freshly reset DevKit, the recorder's Dex Root cause. Fix (
Recordings (
No key material is in the vectors. Verification (coordinating session, real Gradle)
The independent design and security reviews are still to come. |
…/dev-host-m1b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
DevKitHostTest made :julc-state-host:test a DevKit module, which plan refused because no shard listed it. Its end-to-end test needs a fresh chain, which only a shard's own new DevKit gives, so the module gets a shard of its own; plan refuses it next to anything else, and that shard runs with -PjoustHostE2e. Recording the vectors (-PjoustHostFixtures) stays a manual step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
CI fix · head
🤖 Generated with Claude Code |
…nical units, call-body shape (#151 review r1) Design review r1 (DB1-DB9) and security review r1 (SB1-SB4) of d8b65d7: - DB1: publish refuses `pending` while a live transaction already publishes the prerequisite or one of its components (derived from the body, so restored bodies count); verifier:h overlaps referenceScript:h and stakeRegistration:h. - DB2: tests that fail if the owned-spend instance or reservation check is removed. - DB3: a publication the wallet cannot pay is the runtime's refusal, as in prepare (cause chain kept). - DB4: a prerequisite id foreign to the contract is bad/request; a stale one stays a refusal. - DB5: the seed message names reservations on a session store; the default store keeps its message. - DB6: drop the unused unsupported codes m1b and notYet from the protocol doc and schemas. - DB9: say in AssetTx why only the default store keeps the wallet shortcut, and link #152. - SB1: at most 64 co-signers (protocol doc, methods schema), refused before any account is built. - SB3: a call body with a certificate, a non-zero or foreign withdrawal, or a foreign mint is internal/unbalanced. - SB4: chain-read units must be lovelace or lowercase policy+name (at most 32 bytes): one spelling per asset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
# Conflicts: # docs/protocol/dev-host-1.md
…151 review SB2) The traced forked session test also starts one session per fixtures/host vector (publications, owned and quorum calls, the unsupported families), answers its recorded reads and checks its bytes, so publish, owned and quorum paths are observed for sockets, processes and file writes, not only the plain prepare. Verified on Linux. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
Verdict: CHANGES REQUESTED Design review · round r1 · head d8b65d7 Scope: PR #151 (ADR-0022 M1b), SummaryThe M1b design is implemented faithfully, and nothing I found contradicts ADR-0022:
Shared-runtime changes leave the default path unchanged:
The host-path asset fix holds:
Recorded fixtures are checked, not just stored:
Two P2s remain open:
FindingsDB1 · P2 ·
|
|
Verdict: APPROVED Security review · round r1 · head d8b65d7 Scope: No P0–P2 findings. Four P3 findings follow (SB1–SB4). What holds (checked, with no counterexample found)
FindingsSB1 · P3 ·
|
|
Author reply: round r2 · head b59a5f8 Addresses the design review r1 (changes requested: DB1, DB2) and security review r1 (approved) of d8b65d7. Merges #150 r2.
Host 133, runtime 103 and serve 16 tests pass. |
… and send pointer (#151 review r2 DB10, DB7) - DB10: the protocol doc and reads.schema.json state the canonical unit format the host requires. - DB7: a send's predicted effects require the output verifier's withdrawal to be the body's only one, failing closed otherwise, instead of assuming the reward pointer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
Verdict: APPROVED Design review · round r2 · head b59a5f8 Scope: Status of r1 findings
DB1 (publishing the same prerequisite twice):
DB2 (no tests for the owned-spend checks). I re-ran the r1 mutations at b59a5f8, one Gradle run of the host module each:
The coverage has two small gaps, which I accept for M1b:
DB3 (wallet shortfall in
New findingsDB10 · P3 · The protocol does not document the new canonical-unit rule (SB4)
Interaction of the merged M1a stack with M1bNone of these merged changes causes a problem for M1b:
What I ran
|
|
Author reply: round r3 · head 9688b4a Addresses design review r2 (approved; DB7, DB8 open P3s, DB10 new) and merges #150 r3.
|
…se fields a call kind does not take (#151 final review F-B1, F-B4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
Verdict: APPROVED Final review (Fable) · head 9688b4a Scope: PR #151 (ADR-0022 M1b), No P0, P1 or P2 finding. Five P3 findings (F-B1 to F-B5), none blocking. Answers to the review questionsCan a crafted request or read answer make the host build a body that moves value or authority beyond the call and
Do predicted effects always match the body? Yes for what is reported, with one gap in what may be omitted (F-B1). Are publications bounded and never duplicated while pending? Yes.
Do owned and quorum calls bind the right object, instance and signer set? Yes.
Do refusals fail closed with the documented codes? Yes in every probe:
Any default-path runtime change that alters behaviour or bytes? No.
Fixtures. Each FindingsF-B1 · P3 ·
|
|
Author reply: round r4 · head 166a6e4 Final review (Fable) approved with P3s. Taken: F-B1 (a recorded payout without its output in the body now fails closed, as sends do) and F-B4 ( |
…eat/dev-host-m1b # Conflicts: # docs/protocol/dev-host-1.md # julc-state-host/build.gradle # julc-state-host/src/test/java/org/julclang/state/host/ReplayTest.java
…he split-wallet build checked on the Dex vector fixtures/host (21 vectors) recorded on a fresh DevKit chain with `:julc-state-host:test -PdevnetOnly -PjoustHostFixtures --tests '*DevKitHostTest.recordHostVectors'`; the combined reconstruction is built from fixtures/m0/dex 0001 and 0003, which #148's dex re-recording restored. AssetBalanceTest's fixed-build check replays fixtures/host/Dex-addLiquidity.json, the same split-wallet addLiquidity recorded under pre22 (the supplied failing recording has pre21 scripts); its rejected-body checks keep that recording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…2 recordings `:julc-state-host:recordClientConformance` over #151's re-recorded host vectors and fixtures/m0/dapp. pre21's dapp-0034 (a Counter.increment whose state input sorted second) has no counterpart: every plain call of the pre22 dApp flow spends the state output first, so the second plain vector is dapp-0015 (the last increment) at pointer 0; owned-action and owned-destroy keep a spend redeemer at pointer 1. The conformance document says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…in and owned replay gate checks coverage ReplayTest.plainAndOwnedPrepares requires every recording to replay and, together, every plain and owned call kind of Counter and Bank (PLAIN_AND_OWNED); its message lists what is missing. The protocol document describes the coverage instead of a count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…t/dev-host-m1b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv # Conflicts: # julc-state-host/src/main/java/org/julclang/state/host/Session.java
…feat/dev-host-m1b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
Verdict: CHANGES REQUESTED Hold PR #151. A Bank close can pass the documented signing checks with the wrong parent instance, and a withdrawal can be prepared against shared state already reserved for spending. Static review also found ambiguous object selection and two validatable input-selection failures. I did not run the test suite in the read-only checkout. Findings:
Fixes are in progress; an author reply will follow with the new head. 🤖 Generated with Claude Code |
…) internal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…d state, one holding per object, objects only on owned spends, hosted asset selection reads the whole listing (#151 Codex review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…ts tip counts; asset picks count as spent (#151 Codex re-review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…tion skips reference scripts and the composition's inputs (#151 Codex re-review 2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
|
Author reply: Codex round · head Addresses the Codex review of
Tests at
Runtime changes (
#165 rewrites the same method, with a pre-credit of spent seeds and the Codex rounds: the two re-review rounds allowed per level are used up. The second round's three findings are fixed but have not been re-reviewed by Codex. 🤖 Generated with Claude Code |
|
Verdict: CHANGES REQUESTED Hold PR #151 at 25f7cea. Static review confirms four fixes: owned-spend signing binds the holding to call.instance, reserved spending inputs block new references, object arguments are restricted before reads and in the schema, and hosted asset selection scans the full wallet listing. Duplicate-holding validation remains incomplete, and a funded asset-paying call can still fail during preparation. Tests were not run in the read-only workspace. Findings:
Addressed in the author reply at 🤖 Generated with Claude Code |
|
Verdict: CHANGES REQUESTED Hold PR #151 at 0609a89. Static review confirms that Reads checks the complete listing before observing its tip, including for objects, and that TxRunner.collect records asset picks in the spent set used by payout funding. The uniqueness check also rejects valid fungible tokens, and two asset-selection issues remain. Tests were not rerun. Findings:
Addressed in the author reply at 🤖 Generated with Claude Code |
…host-m3-keyed Conflicts: Session.java (keyed object keys and #151's owned-object guard, both before any read; the reference-input check before the keyed prepare), the protocol text (both sides' rules), VerifierVectorsTest (UNCOVERED and NEEDS_POSITIVE both kept), host-conformance.test.js (both gap lists). methods.schema.json: keyed calls keep their key as object beside #151's owned-object rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
…eat/dev-host-m1b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv
Summary
ADR-0022 M1b (#142): the rest of the M1 host matrix. Stacked on #150 (M1a-3), which is stacked on #149 and then #145.
Authorship. Codex implemented this commit, because the coordinating session's Claude agents were paused by a usage limit. Codex must therefore not be the only reviewer; design and security (Claude) review it too.
Prerequisites,Reads,Session; runtimePublication,StateContractHandle,VerifierHandle,TxRunnerdeploymentworks without a wallet.prerequisitesuses the D14 table: script presence comes from the full holder answer, registration is true, false or unknown.publishbuilds the three disjoint shapes with an exclusive upper bound set before balancing; a standalone registration is a pure kind-0 certificate with the protocol deposit.registeredand learning from a confirmed registration are implemented, andpreparerefuses withprerequisitewhile something is missing. The runtime changes are new bounded overloads only; existing signatures keep their old path and their unbounded defaults.Reservations,SessionContractDatums,Listings,Sessionviewruns named views throughServedContract.view, or returns state.instancesandobjectspage over snapshots held for the session: at most 8, least recently used evicted (listingGone), items sorted, a limit of 500,unrecognizeditems, and object ownership taken from the datum.decodematches constructors and shapes, and answersambiguouswhen more than one fits.Contracts,Session;julc-state-serveServedContract(additive overload)@Quorumcalls. Owned calls are served.@Quorumco-signers are 28-byte key hashes turned into address-onlyWalletAccounts and passed as the generatedAccount.... The caller is always a required signer, deduplicated by key hash, as the engine does.@SignedBymust equal the caller.authorizedBy,params,unverifiableand keyed calls are still refused with their codes.Effects,ContractDatumsowed. Change outputs are not attributed.ReplayTest,HostVectorsTest,DevKitHostTest;fixtures/host/README.mdfixtures/m0/dappcalls replay byte-for-byte over the wire; M1a covered the 23 plain ones and this adds Bank's 11 owned calls. There is a recorder and replay harness forfixtures/host/, and a DevKit end-to-end test on a fresh chain (Dex prerequisites, then the publications, theninitandaddLiquidity).docs/protocol/dev-host-1.md, schemasTests
./gradlew --no-watch-fs build -PnoDevnet --continuegives BUILD SUCCESSFUL, 1,604 tests, 0 failures, 0 errors, 4 skipped. Of the skips, 3 are the usual ones. (At the time of the first round;fixtures/host/has since been recorded, see below.)FixturesTest1/1 (no change underfixtures/m0);M1b exit's DevKit gates: done.
fixtures/host/was recorded on a freshly reset DevKit (-PdevnetOnly -PjoustHostFixtures),HostVectorsTestreplays it offline, and CI's devnet shard 5 runs the end-to-end test on a fresh chain (-PjoustHostE2e).Review: independent design and security reviews (Claude agents) and the fix rounds are on this PR as comments (round 3 at the time of writing); Codex re-review follows when its usage resets.
Known TODO (ADR Q7):
deploymentreturns an empty governor list, and governor-authorized calls stay refused (authorizedBy).🤖 Generated with Claude Code
https://claude.ai/code/session_014PGuu3MYnGqtaHSfk9b3gv