diff --git a/README.md b/README.md index de74514..6c637e0 100644 --- a/README.md +++ b/README.md @@ -639,5 +639,5 @@ and no CAS-transfer latency or full-file read measurement is claimed. An upload batch and its writeback result expose `TransactionID`. The batch contains individually journaled filesystem operations, whose `OperationID` identifies an intent rather than a Delta transaction. Core authentication batches and receipts use `transaction_id` with -`malt.authentication-batch/2` and `malt.authentication-receipt/2`. A candidate receipt does not publish +`malt.authentication-batch/3` and `malt.authentication-receipt/3`. A candidate receipt does not publish a Bucket head or promote an accepted root. diff --git a/docs/runtime-migration.md b/docs/runtime-migration.md index e0da773..c20ff8b 100644 --- a/docs/runtime-migration.md +++ b/docs/runtime-migration.md @@ -23,7 +23,7 @@ not a current build contract. The original plan is available in The runtime's Go module namespace remains `github.com/dewebprotocol/malt-client` until its separately governed module migration. The module pins published Core -`v0.0.11-rc.4` by its exact release version and module checksums. This dependency +`v0.0.12-rc.2` by its exact release version and module checksums. This dependency update does not publish a runtime release or change frozen evaluator baselines. ## Preserved behavior diff --git a/docs/typed-authentication-migration.md b/docs/typed-authentication-migration.md index 2cf8543..cb4da4b 100644 --- a/docs/typed-authentication-migration.md +++ b/docs/typed-authentication-migration.md @@ -2,9 +2,9 @@ The runtime uses the sole current Core path: `derivation`, `auth/tree`, `engine`, explicit traversal, and `sdk/authentication`. Native HTTP queries -use `malt.authentication/5`; candidates use `malt.authentication/4`. Ordered -writes use `malt.authentication-batch/2` and exact -`malt.authentication-receipt/2` checks. No old Resolve/Read, Map-proof, +use `malt.authentication/5`; candidates use `malt.authentication/6`. Ordered +writes use `malt.authentication-batch/3` and exact +`malt.authentication-receipt/3` checks. No old Resolve/Read, Map-proof, UpdateView, semantic intent, client-root bundle, or WASM fallback is used. ## Reads and application layouts @@ -56,19 +56,10 @@ new versioned measurement fields. Source workspace validation is not release publication. The runtime module namespace/tag gate and exact downstream release pins remain separate from this source migration. -Native builds pin published Core `v0.0.11-rc.4`, commit -`595f1e05aa86b0339addaa0f0e2ac6672faa8e00`, for independent module builds. This source -integration is not a runtime or browser release. -Prefix layout 4 authenticates original label bytes and targets. Coordinates -route the tree lookup; distinct labels at the same full coordinate return an -error. Retired Prefix layout 1 is rejected without a compatibility reader or -conversion path. Existing Prefix trees must be rebuilt from their original -labels and targets, including parent roots that reference rebuilt children. -New roots use the remote's advertised backend as an -untrusted creation hint; updates preserve the existing Root descriptor. - -Core rc.4 names the authentication layouts Map (4) and List (3). It includes -rc.3's empty-cell scalar-zero encoding: roots and proofs built with rc.2 or -earlier must be regenerated from original inputs, including parents that refer -to changed children. There is no compatibility reader or automatic migration. -Runtime application layout names and Root V=0 remain unchanged. +Native builds pin Core `v0.0.12-rc.2` at commit +`0c5dc0029bd89180f1ff9c8f87857c17aef6a094`. Map layout 1 authenticates +original labels and targets. List layout 2 authenticates contiguous indices. +Both use Root V=0. When upgrading from layouts 4/3, rebuild trees from the +original inputs, including parents that reference rebuilt children, and +regenerate proofs. New roots use the remote's advertised backend as an +untrusted creation hint. Updates preserve the existing Root descriptor. diff --git a/go.mod b/go.mod index efcc677..e4da662 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.26.8 require ( github.com/Microsoft/go-winio v0.6.2 github.com/crackcomm/go-gitignore v0.0.0-20241020182519-7843d2ba8fdf - github.com/dewebprotocol/malt-core v0.0.11-rc.4 + github.com/dewebprotocol/malt-core v0.0.12-rc.2 github.com/hanwen/go-fuse/v2 v2.11.0 github.com/ipfs/boxo v0.41.0 github.com/ipfs/go-block-format v0.2.4 @@ -17,7 +17,7 @@ require ( github.com/multiformats/go-multihash v0.2.3 github.com/spf13/cobra v1.10.2 golang.org/x/crypto v0.57.0 - golang.org/x/sys v0.49.0 + golang.org/x/sys v0.50.0 golang.org/x/term v0.46.0 ) @@ -67,7 +67,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.28.0 // indirect golang.org/x/exp v0.0.0-20260603202125-055de637280b // indirect - golang.org/x/sync v0.24.0 // indirect + golang.org/x/sync v0.25.0 // indirect golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect google.golang.org/protobuf v1.36.11 // indirect lukechampine.com/blake3 v1.4.1 // indirect diff --git a/go.sum b/go.sum index 60bfe9e..58a850a 100644 --- a/go.sum +++ b/go.sum @@ -23,8 +23,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 h1:5RVFMOWjMyRy8cARdy79nAmgYw3hK/4HUq48LQ6Wwqo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40= -github.com/dewebprotocol/malt-core v0.0.11-rc.4 h1:txnIBdjlVnQkPMUs6xxNwIEOoZxpQdJbmPDXkZbzgvM= -github.com/dewebprotocol/malt-core v0.0.11-rc.4/go.mod h1:uAbiKECccmR8MlDotFWLdAgp+JFStdSn2SqA6ILEXhA= +github.com/dewebprotocol/malt-core v0.0.12-rc.2 h1:5KqS5FXrRkBHki+PO4dgDS2A5MlcgDQD9CBKHuuGAk0= +github.com/dewebprotocol/malt-core v0.0.12-rc.2/go.mod h1:r3h6vMg1XN43S1N31hBrROPGP/w1+H5G4q3wiC3qL80= github.com/filecoin-project/go-clock v0.1.0 h1:SFbYIM75M8NnFm1yMHhN9Ahy3W5bEZV9gd6MPfXbKVU= github.com/filecoin-project/go-clock v0.1.0/go.mod h1:4uB/O4PvOjlx1VCMdZ9MyDZXRm//gkj1ELEbxfI1AZs= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= @@ -236,10 +236,10 @@ golang.org/x/exp v0.0.0-20260603202125-055de637280b h1:v1uXiEBHo8QA0LiGCo7UgHMzH golang.org/x/exp v0.0.0-20260603202125-055de637280b/go.mod h1:d2fgXJLVs4dYDHUk5lwMIfzRzSrWCfGZb0ZqeLa/Vcw= golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= -golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= -golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= -golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= -golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs= +golang.org/x/sync v0.25.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= +golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE= golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc= golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= diff --git a/unixfs/planner/authentication_migration_test.go b/unixfs/planner/authentication_migration_test.go index fb26758..f08d9ac 100644 --- a/unixfs/planner/authentication_migration_test.go +++ b/unixfs/planner/authentication_migration_test.go @@ -6,19 +6,18 @@ import ( "github.com/dewebprotocol/malt-client/unixfs" ) -// Core rc.4 Map layout 4 authenticates original labels, including @payload, -// with the rc.3 empty-cell scalar-zero encoding. -// Pin both commitment backends and application layouts. +// Pin Map layout 1 projection roots for both backends and application layouts, +// including the directory's @payload binding. func TestPlannerPinnedProjectionRoots(t *testing.T) { vectors := []struct { backend string layout unixfs.LayoutKind base, root string }{ - {"kzg", unixfs.LayoutFlatV1, "bagcirqabaazacmemozf3wgitwkrh6kvwb4flz5iroaon255prynvnrjwafdoadxtpzmerwjvknndophihblh34wbn3xq", "bagcirqabaazacmffbyxr67q4zc24i3lcllbp5fhprbglxnemgjivb6ahf7qbdofkpvp2mp6f2shoxuq7j4v6kjpwgtuq"}, - {"kzg", unixfs.LayoutHybridV1, "bagcirqabaazacmeoc3zigzbk4hzs7ygbxklqhd62vpi5bk5k5fczcjneh5ditilcwxahred6nogezupmc5epa3rpqtyq", "bagcirqabaazacmfymwvjqefdokfhzwlbxrg54mn5fne5m75ta2uabursm7p5l5vje7hckcqwtzgtsyh5wz4lykwnxi4q"}, - {"ipa", unixfs.LayoutFlatV1, "bagcirqabaaraeiab3raop6y6dhq3exhxrn24wknygju7xajzn24mqqh2fp4dx7sp6e", "bagcirqabaaraeia5f64uaiw55lwf3aatoz7bwcy5hkz22gmzxjjybfj2o66flquqyy"}, - {"ipa", unixfs.LayoutHybridV1, "bagcirqabaaraeicqrq2qyui2iy3vxbhtnm3vxp2sc2vtemhfeswtbelzqzkg53ydoy", "bagcirqabaaraeibtp5tzr7jjxhwknhgoow56snrnkfp6nefmufxueem2tkugoiqom4"}, + {"kzg", unixfs.LayoutFlatV1, "bagcifqabaazacmemozf3wgitwkrh6kvwb4flz5iroaon255prynvnrjwafdoadxtpzmerwjvknndophihblh34wbn3xq", "bagcifqabaazacmffbyxr67q4zc24i3lcllbp5fhprbglxnemgjivb6ahf7qbdofkpvp2mp6f2shoxuq7j4v6kjpwgtuq"}, + {"kzg", unixfs.LayoutHybridV1, "bagcifqabaazacmeow55uowmb4ttczoee2q2wzdhgtiyoabe4w65akxpxsqwjjmanc3hi5oulm4dmtdau3e4kknvdvgcq", "bagcifqabaazacmfiuv5tzhcx72ml45jb6nl3bb4zeqo4bhdocpohp5cjebszimbenlbdlk5axo427hzwdns2lustnxwa"}, + {"ipa", unixfs.LayoutFlatV1, "bagcifqabaaraeiab3raop6y6dhq3exhxrn24wknygju7xajzn24mqqh2fp4dx7sp6e", "bagcifqabaaraeia5f64uaiw55lwf3aatoz7bwcy5hkz22gmzxjjybfj2o66flquqyy"}, + {"ipa", unixfs.LayoutHybridV1, "bagcifqabaaraeidtzr5uidmq7ksc2ak3ks3hohoi3weczhjkmqpsu5nogcpmkrnpoi", "bagcifqabaaraeicixfhvueklrbtciov74ckg5ve2vcgbkbeou7fjgf7eje77iuyqmi"}, } for _, v := range vectors { t.Run(v.backend+"/"+string(v.layout), func(t *testing.T) {