[{"data":1,"prerenderedAt":1579},["ShallowReactive",2],{"navigation":3,"\u002Fguides\u002Ftrust-and-security":895,"\u002Fguides\u002Ftrust-and-security-surround":1574},[4,8,168,206,879,883,887,891],{"title":5,"path":6,"stem":7},"Quickstart","\u002Fquickstart","01.quickstart",{"title":9,"path":10,"stem":11,"children":12},"Concepts","\u002Fconcepts","20.concepts",[13,15,19,23,84,88,92,96,100],{"title":9,"path":10,"stem":14},"20.concepts\u002Findex",{"title":16,"path":17,"stem":18},"Preprocessing Graph","\u002Fconcepts\u002Fppg","20.concepts\u002F2.ppg",{"title":20,"path":21,"stem":22},"Plane decomposition","\u002Fconcepts\u002Fplanes","20.concepts\u002F3.planes",{"title":24,"path":25,"stem":26,"children":27},"Codecs","\u002Fconcepts\u002Fcodecs","20.concepts\u002F4.codecs",[28,32,36,40,44,48,52,56,60,64,68,72,76,80],{"title":29,"path":30,"stem":31},"Arithmetic","\u002Fconcepts\u002Fcodecs\u002Farithmetic","20.concepts\u002Fcodecs\u002Farithmetic",{"title":33,"path":34,"stem":35},"Context Mixing Lite","\u002Fconcepts\u002Fcodecs\u002Fcontext-mixing-lite","20.concepts\u002Fcodecs\u002Fcontext-mixing-lite",{"title":37,"path":38,"stem":39},"FPC","\u002Fconcepts\u002Fcodecs\u002Ffpc","20.concepts\u002Fcodecs\u002Ffpc",{"title":41,"path":42,"stem":43},"Huffman LLM 5-Bit","\u002Fconcepts\u002Fcodecs\u002Fhuff-llm","20.concepts\u002Fcodecs\u002Fhuff-llm",{"title":45,"path":46,"stem":47},"Huffman","\u002Fconcepts\u002Fcodecs\u002Fhuffman","20.concepts\u002Fcodecs\u002Fhuffman",{"title":49,"path":50,"stem":51},"Identity","\u002Fconcepts\u002Fcodecs\u002Fidentity","20.concepts\u002Fcodecs\u002Fidentity",{"title":53,"path":54,"stem":55},"Neural Predictor","\u002Fconcepts\u002Fcodecs\u002Fneural-predictor","20.concepts\u002Fcodecs\u002Fneural-predictor",{"title":57,"path":58,"stem":59},"Order-1 Arithmetic","\u002Fconcepts\u002Fcodecs\u002Forder1-arithmetic","20.concepts\u002Fcodecs\u002Forder1-arithmetic",{"title":61,"path":62,"stem":63},"Order-1 Scale AC","\u002Fconcepts\u002Fcodecs\u002Forder1-scale-ac","20.concepts\u002Fcodecs\u002Forder1-scale-ac",{"title":65,"path":66,"stem":67},"Per-Group Codebook","\u002Fconcepts\u002Fcodecs\u002Fper-group-codebook","20.concepts\u002Fcodecs\u002Fper-group-codebook",{"title":69,"path":70,"stem":71},"rANS","\u002Fconcepts\u002Fcodecs\u002Frans","20.concepts\u002Fcodecs\u002Frans",{"title":73,"path":74,"stem":75},"tANS","\u002Fconcepts\u002Fcodecs\u002Ftans","20.concepts\u002Fcodecs\u002Ftans",{"title":77,"path":78,"stem":79},"Zstd","\u002Fconcepts\u002Fcodecs\u002Fzstd","20.concepts\u002Fcodecs\u002Fzstd",{"title":81,"path":82,"stem":83},"Zstd Dictionary","\u002Fconcepts\u002Fcodecs\u002Fzstd-dict","20.concepts\u002Fcodecs\u002Fzstd-dict",{"title":85,"path":86,"stem":87},"Container format","\u002Fconcepts\u002Fcontainer","20.concepts\u002F5.container",{"title":89,"path":90,"stem":91},"Delta compression","\u002Fconcepts\u002Fdelta","20.concepts\u002F6.delta",{"title":93,"path":94,"stem":95},"Extensibility","\u002Fconcepts\u002Fextensibility","20.concepts\u002F7.extensibility",{"title":24,"path":25,"stem":97,"children":98},"20.concepts\u002Fcodecs\u002Findex",[99],{"title":24,"path":25,"stem":97},{"title":101,"path":102,"stem":103,"children":104},"Transforms","\u002Fconcepts\u002Ftransforms","20.concepts\u002Ftransforms\u002Findex",[105,106,110,114,118,122,126,130,134,140,144,148,152,156,160,164],{"title":101,"path":102,"stem":103},{"title":107,"path":108,"stem":109},"Alpha-Stable Normalize","\u002Fconcepts\u002Ftransforms\u002Falpha-stable-normalize","20.concepts\u002Ftransforms\u002Falpha-stable-normalize",{"title":111,"path":112,"stem":113},"Bit Reorder","\u002Fconcepts\u002Ftransforms\u002Fbit-reorder","20.concepts\u002Ftransforms\u002Fbit-reorder",{"title":115,"path":116,"stem":117},"Block Microscaling Repack","\u002Fconcepts\u002Ftransforms\u002Fblock-microscaling-repack","20.concepts\u002Ftransforms\u002Fblock-microscaling-repack",{"title":119,"path":120,"stem":121},"Burrows-Wheeler","\u002Fconcepts\u002Ftransforms\u002Fburrows-wheeler","20.concepts\u002Ftransforms\u002Fburrows-wheeler",{"title":123,"path":124,"stem":125},"Byte Split & Nibble Split","\u002Fconcepts\u002Ftransforms\u002Fbyte-split","20.concepts\u002Ftransforms\u002Fbyte-split",{"title":127,"path":128,"stem":129},"Concat","\u002Fconcepts\u002Ftransforms\u002Fconcat","20.concepts\u002Ftransforms\u002Fconcat",{"title":131,"path":132,"stem":133},"Delta","\u002Fconcepts\u002Ftransforms\u002Fdelta","20.concepts\u002Ftransforms\u002Fdelta",{"title":135,"path":136,"stem":137,"children":138},"Index Bitwidth Pack","\u002Fconcepts\u002Ftransforms\u002Findex-bitwidth-pack","20.concepts\u002Ftransforms\u002Findex-bitwidth-pack",[139],{"title":135,"path":136,"stem":137},{"title":141,"path":142,"stem":143},"IntDelta","\u002Fconcepts\u002Ftransforms\u002Fint-delta","20.concepts\u002Ftransforms\u002Fint-delta",{"title":145,"path":146,"stem":147},"Mantissa Zero Strip","\u002Fconcepts\u002Ftransforms\u002Fmantissa-zero-strip","20.concepts\u002Ftransforms\u002Fmantissa-zero-strip",{"title":149,"path":150,"stem":151},"Move to Front","\u002Fconcepts\u002Ftransforms\u002Fmove-to-front","20.concepts\u002Ftransforms\u002Fmove-to-front",{"title":153,"path":154,"stem":155},"MxFp4 Deinterleave","\u002Fconcepts\u002Ftransforms\u002Fmxfp4-deinterleave","20.concepts\u002Ftransforms\u002Fmxfp4-deinterleave",{"title":157,"path":158,"stem":159},"Predictor XOR","\u002Fconcepts\u002Ftransforms\u002Fpredictor-xor","20.concepts\u002Ftransforms\u002Fpredictor-xor",{"title":161,"path":162,"stem":163},"Reshape","\u002Fconcepts\u002Ftransforms\u002Freshape","20.concepts\u002Ftransforms\u002Freshape",{"title":165,"path":166,"stem":167},"Spherical Normalize","\u002Fconcepts\u002Ftransforms\u002Fspherical-normalize","20.concepts\u002Ftransforms\u002Fspherical-normalize",{"title":169,"path":170,"stem":171,"children":172},"Guides","\u002Fguides","30.guides\u002F00.index",[173,174,178,182,186,190,194,198,202],{"title":169,"path":170,"stem":171},{"title":175,"path":176,"stem":177},"CLI usage","\u002Fguides\u002Fcli","30.guides\u002F01.cli",{"title":179,"path":180,"stem":181},"Python API","\u002Fguides\u002Fpython-api","30.guides\u002F02.python-api",{"title":183,"path":184,"stem":185},"Writing your first extension","\u002Fguides\u002Fextension-authoring","30.guides\u002F03.extension-authoring",{"title":187,"path":188,"stem":189},"Trust and security","\u002Fguides\u002Ftrust-and-security","30.guides\u002F04.trust-and-security",{"title":191,"path":192,"stem":193},"Random access","\u002Fguides\u002Frandom-access","30.guides\u002F10.random-access",{"title":195,"path":196,"stem":197},"Tuning","\u002Fguides\u002Ftuning","30.guides\u002F11.tuning",{"title":199,"path":200,"stem":201},"Safetensors","\u002Fguides\u002Fsafetensors","30.guides\u002F50.safetensors",{"title":203,"path":204,"stem":205},"Transformers","\u002Fguides\u002Ftransformers","30.guides\u002F51.transformers",{"title":207,"path":208,"stem":209,"children":210},"API reference","\u002Fapi","40.api",[211,330],{"title":179,"path":212,"stem":213,"children":214},"\u002Fapi\u002Fpython","api\u002Fpython\u002Findex",[215,216],{"title":179,"path":212,"stem":213},{"title":217,"path":218,"stem":219,"children":220},"ptwm","\u002Fapi\u002Fpython\u002Fptwm","api\u002Fpython\u002Fptwm",[221,225,229,270,274,278,282,286,307,311,315,319,323,327],{"title":222,"path":223,"stem":224},"ablation","\u002Fapi\u002Fpython\u002Fptwm\u002Fablation","api\u002Fpython\u002Fptwm\u002Fablation",{"title":226,"path":227,"stem":228},"classify","\u002Fapi\u002Fpython\u002Fptwm\u002Fclassify","api\u002Fpython\u002Fptwm\u002Fclassify",{"title":230,"path":231,"stem":232,"children":233},"cli","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli","api\u002Fpython\u002Fptwm\u002Fcli",[234,238,242,246,250,254,258,262,266],{"title":235,"path":236,"stem":237},"bench","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fbench","api\u002Fpython\u002Fptwm\u002Fcli\u002Fbench",{"title":239,"path":240,"stem":241},"chains","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fchains","api\u002Fpython\u002Fptwm\u002Fcli\u002Fchains",{"title":243,"path":244,"stem":245},"compress","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fcompress","api\u002Fpython\u002Fptwm\u002Fcli\u002Fcompress",{"title":247,"path":248,"stem":249},"decompress","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fdecompress","api\u002Fpython\u002Fptwm\u002Fcli\u002Fdecompress",{"title":251,"path":252,"stem":253},"ext","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fext","api\u002Fpython\u002Fptwm\u002Fcli\u002Fext",{"title":255,"path":256,"stem":257},"main","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fmain","api\u002Fpython\u002Fptwm\u002Fcli\u002Fmain",{"title":259,"path":260,"stem":261},"policy","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Fpolicy","api\u002Fpython\u002Fptwm\u002Fcli\u002Fpolicy",{"title":263,"path":264,"stem":265},"trust","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Ftrust","api\u002Fpython\u002Fptwm\u002Fcli\u002Ftrust",{"title":267,"path":268,"stem":269},"utils","\u002Fapi\u002Fpython\u002Fptwm\u002Fcli\u002Futils","api\u002Fpython\u002Fptwm\u002Fcli\u002Futils",{"title":271,"path":272,"stem":273},"codecs","\u002Fapi\u002Fpython\u002Fptwm\u002Fcodecs","api\u002Fpython\u002Fptwm\u002Fcodecs",{"title":275,"path":276,"stem":277},"core","\u002Fapi\u002Fpython\u002Fptwm\u002Fcore","api\u002Fpython\u002Fptwm\u002Fcore",{"title":279,"path":280,"stem":281},"delta","\u002Fapi\u002Fpython\u002Fptwm\u002Fdelta","api\u002Fpython\u002Fptwm\u002Fdelta",{"title":283,"path":284,"stem":285},"entropy","\u002Fapi\u002Fpython\u002Fptwm\u002Fentropy","api\u002Fpython\u002Fptwm\u002Fentropy",{"title":287,"path":288,"stem":289,"children":290},"ext_tooling","\u002Fapi\u002Fpython\u002Fptwm\u002Fext_tooling","api\u002Fpython\u002Fptwm\u002Fext_tooling",[291,295,299,303],{"title":292,"path":293,"stem":294},"build","\u002Fapi\u002Fpython\u002Fptwm\u002Fext_tooling\u002Fbuild","api\u002Fpython\u002Fptwm\u002Fext_tooling\u002Fbuild",{"title":296,"path":297,"stem":298},"init","\u002Fapi\u002Fpython\u002Fptwm\u002Fext_tooling\u002Finit","api\u002Fpython\u002Fptwm\u002Fext_tooling\u002Finit",{"title":300,"path":301,"stem":302},"pack","\u002Fapi\u002Fpython\u002Fptwm\u002Fext_tooling\u002Fpack","api\u002Fpython\u002Fptwm\u002Fext_tooling\u002Fpack",{"title":304,"path":305,"stem":306},"sign","\u002Fapi\u002Fpython\u002Fptwm\u002Fext_tooling\u002Fsign","api\u002Fpython\u002Fptwm\u002Fext_tooling\u002Fsign",{"title":308,"path":309,"stem":310},"integrations","\u002Fapi\u002Fpython\u002Fptwm\u002Fintegrations","api\u002Fpython\u002Fptwm\u002Fintegrations",{"title":312,"path":313,"stem":314},"preprocessing","\u002Fapi\u002Fpython\u002Fptwm\u002Fpreprocessing","api\u002Fpython\u002Fptwm\u002Fpreprocessing",{"title":316,"path":317,"stem":318},"random_access","\u002Fapi\u002Fpython\u002Fptwm\u002Frandom_access","api\u002Fpython\u002Fptwm\u002Frandom_access",{"title":320,"path":321,"stem":322},"sharding","\u002Fapi\u002Fpython\u002Fptwm\u002Fsharding","api\u002Fpython\u002Fptwm\u002Fsharding",{"title":324,"path":325,"stem":326},"stores","\u002Fapi\u002Fpython\u002Fptwm\u002Fstores","api\u002Fpython\u002Fptwm\u002Fstores",{"title":267,"path":328,"stem":329},"\u002Fapi\u002Fpython\u002Fptwm\u002Futils","api\u002Fpython\u002Fptwm\u002Futils",{"title":331,"path":332,"stem":333,"children":334},"Rust API","\u002Fapi\u002Frust","api\u002Frust\u002Findex",[335,336],{"title":331,"path":332,"stem":333},{"title":337,"path":338,"stem":339,"children":340},"ptwm_core","\u002Fapi\u002Frust\u002Fptwm_core","api\u002Frust\u002Fptwm_core",[341,370,374,378,438,442,446,450,453,457,460,464,526,530,581,585,614,618,624,649,653,657,661,680,684,688,692,696,700,721,725,729,737,834,858,875],{"title":342,"path":343,"stem":344,"children":345},"chain","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain","api\u002Frust\u002Fptwm_core\u002Fchain",[346,350,354,358,362,366],{"title":347,"path":348,"stem":349},"dispatch","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain\u002Fdispatch","api\u002Frust\u002Fptwm_core\u002Fchain\u002Fdispatch",{"title":351,"path":352,"stem":353},"graph","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain\u002Fgraph","api\u002Frust\u002Fptwm_core\u002Fchain\u002Fgraph",{"title":355,"path":356,"stem":357},"runtime","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain\u002Fruntime","api\u002Frust\u002Fptwm_core\u002Fchain\u002Fruntime",{"title":359,"path":360,"stem":361},"validate","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain\u002Fvalidate","api\u002Frust\u002Fptwm_core\u002Fchain\u002Fvalidate",{"title":363,"path":364,"stem":365},"wire","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain\u002Fwire","api\u002Frust\u002Fptwm_core\u002Fchain\u002Fwire",{"title":367,"path":368,"stem":369},"wire_compact","\u002Fapi\u002Frust\u002Fptwm_core\u002Fchain\u002Fwire_compact","api\u002Frust\u002Fptwm_core\u002Fchain\u002Fwire_compact",{"title":371,"path":372,"stem":373},"codec","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodec","api\u002Frust\u002Fptwm_core\u002Fcodec",{"title":375,"path":376,"stem":377},"codec_tagged","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodec_tagged","api\u002Frust\u002Fptwm_core\u002Fcodec_tagged",{"title":271,"path":379,"stem":380,"children":381},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs","api\u002Frust\u002Fptwm_core\u002Fcodecs",[382,386,390,394,398,402,406,410,414,418,422,426,430,434],{"title":383,"path":384,"stem":385},"arithmetic","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Farithmetic","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Farithmetic",{"title":387,"path":388,"stem":389},"context_mixing","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fcontext_mixing","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fcontext_mixing",{"title":391,"path":392,"stem":393},"fpc","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Ffpc","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Ffpc",{"title":395,"path":396,"stem":397},"huff_llm","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fhuff_llm","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fhuff_llm",{"title":399,"path":400,"stem":401},"huffman","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fhuffman","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fhuffman",{"title":403,"path":404,"stem":405},"identity","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fidentity","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fidentity",{"title":407,"path":408,"stem":409},"neural_predictor","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fneural_predictor","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fneural_predictor",{"title":411,"path":412,"stem":413},"order1_arithmetic","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Forder1_arithmetic","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Forder1_arithmetic",{"title":415,"path":416,"stem":417},"order1_scale_ac","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Forder1_scale_ac","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Forder1_scale_ac",{"title":419,"path":420,"stem":421},"per_group_codebook","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fper_group_codebook","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fper_group_codebook",{"title":423,"path":424,"stem":425},"rans","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Frans","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Frans",{"title":427,"path":428,"stem":429},"tans","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Ftans","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Ftans",{"title":431,"path":432,"stem":433},"zstd","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fzstd","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fzstd",{"title":435,"path":436,"stem":437},"zstd_dict","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fzstd_dict","api\u002Frust\u002Fptwm_core\u002Fcodecs\u002Fzstd_dict",{"title":439,"path":440,"stem":441},"compact","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcompact","api\u002Frust\u002Fptwm_core\u002Fcompact",{"title":443,"path":444,"stem":445},"compressor","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcompressor","api\u002Frust\u002Fptwm_core\u002Fcompressor",{"title":447,"path":448,"stem":449},"container","\u002Fapi\u002Frust\u002Fptwm_core\u002Fcontainer","api\u002Frust\u002Fptwm_core\u002Fcontainer",{"title":279,"path":451,"stem":452},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fdelta","api\u002Frust\u002Fptwm_core\u002Fdelta",{"title":454,"path":455,"stem":456},"discovery","\u002Fapi\u002Frust\u002Fptwm_core\u002Fdiscovery","api\u002Frust\u002Fptwm_core\u002Fdiscovery",{"title":347,"path":458,"stem":459},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fdispatch","api\u002Frust\u002Fptwm_core\u002Fdispatch",{"title":461,"path":462,"stem":463},"dtype","\u002Fapi\u002Frust\u002Fptwm_core\u002Fdtype","api\u002Frust\u002Fptwm_core\u002Fdtype",{"title":283,"path":465,"stem":466,"children":467},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy","api\u002Frust\u002Fptwm_core\u002Fentropy",[468,476,495,498,501,512,516,519,523],{"title":383,"path":469,"stem":470,"children":471},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Farithmetic","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Farithmetic",[472],{"title":473,"path":474,"stem":475},"model","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Farithmetic\u002Fmodel","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Farithmetic\u002Fmodel",{"title":387,"path":477,"stem":478,"children":479},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing",[480,484,488,491],{"title":481,"path":482,"stem":483},"coder","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fcoder","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fcoder",{"title":485,"path":486,"stem":487},"mixer","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fmixer","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fmixer",{"title":473,"path":489,"stem":490},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fmodel","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fmodel",{"title":492,"path":493,"stem":494},"squash","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fsquash","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fcontext_mixing\u002Fsquash",{"title":395,"path":496,"stem":497},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fhuff_llm","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fhuff_llm",{"title":399,"path":499,"stem":500},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fhuffman","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fhuffman",{"title":407,"path":502,"stem":503,"children":504},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fneural_predictor","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fneural_predictor",[505,508],{"title":481,"path":506,"stem":507},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fneural_predictor\u002Fcoder","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fneural_predictor\u002Fcoder",{"title":509,"path":510,"stem":511},"net","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fneural_predictor\u002Fnet","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fneural_predictor\u002Fnet",{"title":513,"path":514,"stem":515},"outcome","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Foutcome","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Foutcome",{"title":423,"path":517,"stem":518},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Frans","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Frans",{"title":520,"path":521,"stem":522},"stream_frame","\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Fstream_frame","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Fstream_frame",{"title":427,"path":524,"stem":525},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fentropy\u002Ftans","api\u002Frust\u002Fptwm_core\u002Fentropy\u002Ftans",{"title":527,"path":528,"stem":529},"error","\u002Fapi\u002Frust\u002Fptwm_core\u002Ferror","api\u002Frust\u002Fptwm_core\u002Ferror",{"title":531,"path":532,"stem":533,"children":534},"extension","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension","api\u002Frust\u002Fptwm_core\u002Fextension",[535,539,543,547,551,554,557,561,565,569,573,577],{"title":536,"path":537,"stem":538},"builder","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fbuilder","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fbuilder",{"title":540,"path":541,"stem":542},"builtins","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fbuiltins","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fbuiltins",{"title":544,"path":545,"stem":546},"capability","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fcapability","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fcapability",{"title":548,"path":549,"stem":550},"compact_table","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fcompact_table","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fcompact_table",{"title":347,"path":552,"stem":553},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fdispatch","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fdispatch",{"title":527,"path":555,"stem":556},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Ferror","api\u002Frust\u002Fptwm_core\u002Fextension\u002Ferror",{"title":558,"path":559,"stem":560},"id","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fid","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fid",{"title":562,"path":563,"stem":564},"kind","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fkind","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fkind",{"title":566,"path":567,"stem":568},"lifecycle","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Flifecycle","api\u002Frust\u002Fptwm_core\u002Fextension\u002Flifecycle",{"title":570,"path":571,"stem":572},"manifest","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fmanifest","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fmanifest",{"title":574,"path":575,"stem":576},"resolve","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Fresolve","api\u002Frust\u002Fptwm_core\u002Fextension\u002Fresolve",{"title":578,"path":579,"stem":580},"table","\u002Fapi\u002Frust\u002Fptwm_core\u002Fextension\u002Ftable","api\u002Frust\u002Fptwm_core\u002Fextension\u002Ftable",{"title":582,"path":583,"stem":584},"fit","\u002Fapi\u002Frust\u002Fptwm_core\u002Ffit","api\u002Frust\u002Fptwm_core\u002Ffit",{"title":586,"path":587,"stem":588,"children":589},"flavor","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor","api\u002Frust\u002Fptwm_core\u002Fflavor",[590,594,598,602,606,610],{"title":591,"path":592,"stem":593},"abi","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor\u002Fabi","api\u002Frust\u002Fptwm_core\u002Fflavor\u002Fabi",{"title":595,"path":596,"stem":597},"host","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor\u002Fhost","api\u002Frust\u002Fptwm_core\u002Fflavor\u002Fhost",{"title":599,"path":600,"stem":601},"native","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor\u002Fnative","api\u002Frust\u002Fptwm_core\u002Fflavor\u002Fnative",{"title":603,"path":604,"stem":605},"router","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor\u002Frouter","api\u002Frust\u002Fptwm_core\u002Fflavor\u002Frouter",{"title":607,"path":608,"stem":609},"third_party","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor\u002Fthird_party","api\u002Frust\u002Fptwm_core\u002Fflavor\u002Fthird_party",{"title":611,"path":612,"stem":613},"wasm","\u002Fapi\u002Frust\u002Fptwm_core\u002Fflavor\u002Fwasm","api\u002Frust\u002Fptwm_core\u002Fflavor\u002Fwasm",{"title":615,"path":616,"stem":617},"header","\u002Fapi\u002Frust\u002Fptwm_core\u002Fheader","api\u002Frust\u002Fptwm_core\u002Fheader",{"title":619,"path":620,"stem":621,"children":622},"index","\u002Fapi\u002Frust\u002Fptwm_core\u002Findex_module","api\u002Frust\u002Fptwm_core\u002Findex_module",[623],{"title":619,"path":620,"stem":621},{"title":625,"path":626,"stem":627,"children":628},"install","\u002Fapi\u002Frust\u002Fptwm_core\u002Finstall","api\u002Frust\u002Fptwm_core\u002Finstall",[629,633,637,641,645],{"title":630,"path":631,"stem":632},"git","\u002Fapi\u002Frust\u002Fptwm_core\u002Finstall\u002Fgit","api\u002Frust\u002Fptwm_core\u002Finstall\u002Fgit",{"title":634,"path":635,"stem":636},"https","\u002Fapi\u002Frust\u002Fptwm_core\u002Finstall\u002Fhttps","api\u002Frust\u002Fptwm_core\u002Finstall\u002Fhttps",{"title":638,"path":639,"stem":640},"local","\u002Fapi\u002Frust\u002Fptwm_core\u002Finstall\u002Flocal","api\u002Frust\u002Fptwm_core\u002Finstall\u002Flocal",{"title":642,"path":643,"stem":644},"oci","\u002Fapi\u002Frust\u002Fptwm_core\u002Finstall\u002Foci","api\u002Frust\u002Fptwm_core\u002Finstall\u002Foci",{"title":646,"path":647,"stem":648},"pip","\u002Fapi\u002Frust\u002Fptwm_core\u002Finstall\u002Fpip","api\u002Frust\u002Fptwm_core\u002Finstall\u002Fpip",{"title":650,"path":651,"stem":652},"layout","\u002Fapi\u002Frust\u002Fptwm_core\u002Flayout","api\u002Frust\u002Fptwm_core\u002Flayout",{"title":654,"path":655,"stem":656},"metadata","\u002Fapi\u002Frust\u002Fptwm_core\u002Fmetadata","api\u002Frust\u002Fptwm_core\u002Fmetadata",{"title":658,"path":659,"stem":660},"plane_record","\u002Fapi\u002Frust\u002Fptwm_core\u002Fplane_record","api\u002Frust\u002Fptwm_core\u002Fplane_record",{"title":259,"path":662,"stem":663,"children":664},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fpolicy","api\u002Frust\u002Fptwm_core\u002Fpolicy",[665,669,673,677],{"title":666,"path":667,"stem":668},"capability_check","\u002Fapi\u002Frust\u002Fptwm_core\u002Fpolicy\u002Fcapability_check","api\u002Frust\u002Fptwm_core\u002Fpolicy\u002Fcapability_check",{"title":670,"path":671,"stem":672},"file","\u002Fapi\u002Frust\u002Fptwm_core\u002Fpolicy\u002Ffile","api\u002Frust\u002Fptwm_core\u002Fpolicy\u002Ffile",{"title":674,"path":675,"stem":676},"native_deps","\u002Fapi\u002Frust\u002Fptwm_core\u002Fpolicy\u002Fnative_deps","api\u002Frust\u002Fptwm_core\u002Fpolicy\u002Fnative_deps",{"title":574,"path":678,"stem":679},"\u002Fapi\u002Frust\u002Fptwm_core\u002Fpolicy\u002Fresolve","api\u002Frust\u002Fptwm_core\u002Fpolicy\u002Fresolve",{"title":681,"path":682,"stem":683},"prelude","\u002Fapi\u002Frust\u002Fptwm_core\u002Fprelude","api\u002Frust\u002Fptwm_core\u002Fprelude",{"title":685,"path":686,"stem":687},"ptwc","\u002Fapi\u002Frust\u002Fptwm_core\u002Fptwc","api\u002Frust\u002Fptwm_core\u002Fptwc",{"title":689,"path":690,"stem":691},"quantize","\u002Fapi\u002Frust\u002Fptwm_core\u002Fquantize","api\u002Frust\u002Fptwm_core\u002Fquantize",{"title":693,"path":694,"stem":695},"range_coder","\u002Fapi\u002Frust\u002Fptwm_core\u002Frange_coder","api\u002Frust\u002Fptwm_core\u002Frange_coder",{"title":697,"path":698,"stem":699},"select","\u002Fapi\u002Frust\u002Fptwm_core\u002Fselect","api\u002Frust\u002Fptwm_core\u002Fselect",{"title":701,"path":702,"stem":703,"children":704},"split","\u002Fapi\u002Frust\u002Fptwm_core\u002Fsplit","api\u002Frust\u002Fptwm_core\u002Fsplit",[705,709,713,717],{"title":706,"path":707,"stem":708},"dtype16","\u002Fapi\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype16","api\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype16",{"title":710,"path":711,"stem":712},"dtype32","\u002Fapi\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype32","api\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype32",{"title":714,"path":715,"stem":716},"dtype64","\u002Fapi\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype64","api\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype64",{"title":718,"path":719,"stem":720},"dtype8","\u002Fapi\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype8","api\u002Frust\u002Fptwm_core\u002Fsplit\u002Fdtype8",{"title":722,"path":723,"stem":724},"tensor_record","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftensor_record","api\u002Frust\u002Fptwm_core\u002Ftensor_record",{"title":726,"path":727,"stem":728},"tensor_record_compact","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftensor_record_compact","api\u002Frust\u002Fptwm_core\u002Ftensor_record_compact",{"title":730,"path":731,"stem":732,"children":733},"transcode","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftranscode","api\u002Frust\u002Fptwm_core\u002Ftranscode",[734],{"title":570,"path":735,"stem":736},"\u002Fapi\u002Frust\u002Fptwm_core\u002Ftranscode\u002Fmanifest","api\u002Frust\u002Fptwm_core\u002Ftranscode\u002Fmanifest",{"title":738,"path":739,"stem":740,"children":741},"transforms","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms","api\u002Frust\u002Fptwm_core\u002Ftransforms",[742,746,750,754,758,762,766,770,774,777,780,784,790,794,798,802,806,810,814,818,822,826,830],{"title":743,"path":744,"stem":745},"alpha_stable_normalize","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Falpha_stable_normalize","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Falpha_stable_normalize",{"title":747,"path":748,"stem":749},"bit_reorder_fp8","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbit_reorder_fp8","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbit_reorder_fp8",{"title":751,"path":752,"stem":753},"bit_reorder_ieee","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbit_reorder_ieee","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbit_reorder_ieee",{"title":755,"path":756,"stem":757},"block_microscaling_repack","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fblock_microscaling_repack","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fblock_microscaling_repack",{"title":759,"path":760,"stem":761},"burrows_wheeler","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fburrows_wheeler","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fburrows_wheeler",{"title":763,"path":764,"stem":765},"byte_passthrough","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbyte_passthrough","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbyte_passthrough",{"title":767,"path":768,"stem":769},"byte_split","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbyte_split","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fbyte_split",{"title":771,"path":772,"stem":773},"concat","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fconcat","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fconcat",{"title":279,"path":775,"stem":776},"\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fdelta","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fdelta",{"title":283,"path":778,"stem":779},"\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fentropy","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fentropy",{"title":781,"path":782,"stem":783},"fusion","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Ffusion","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Ffusion",{"title":785,"path":786,"stem":787,"children":788},"index_pack","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Findex_pack","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Findex_pack",[789],{"title":785,"path":786,"stem":787},{"title":791,"path":792,"stem":793},"int_delta","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fint_delta","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fint_delta",{"title":795,"path":796,"stem":797},"mantissa_zero","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fmantissa_zero","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fmantissa_zero",{"title":799,"path":800,"stem":801},"move_to_front","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fmove_to_front","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fmove_to_front",{"title":803,"path":804,"stem":805},"mxfp4_deinterleave","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fmxfp4_deinterleave","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fmxfp4_deinterleave",{"title":807,"path":808,"stem":809},"nibble_split","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fnibble_split","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fnibble_split",{"title":811,"path":812,"stem":813},"op","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fop","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fop",{"title":815,"path":816,"stem":817},"predictor_xor","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fpredictor_xor","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fpredictor_xor",{"title":819,"path":820,"stem":821},"reshape","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Freshape","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Freshape",{"title":823,"path":824,"stem":825},"source","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fsource","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fsource",{"title":827,"path":828,"stem":829},"spherical_normalize","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fspherical_normalize","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fspherical_normalize",{"title":831,"path":832,"stem":833},"terminal","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fterminal","api\u002Frust\u002Fptwm_core\u002Ftransforms\u002Fterminal",{"title":263,"path":835,"stem":836,"children":837},"\u002Fapi\u002Frust\u002Fptwm_core\u002Ftrust","api\u002Frust\u002Fptwm_core\u002Ftrust",[838,842,846,850,854],{"title":839,"path":840,"stem":841},"bundled","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftrust\u002Fbundled","api\u002Frust\u002Fptwm_core\u002Ftrust\u002Fbundled",{"title":843,"path":844,"stem":845},"keyring","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftrust\u002Fkeyring","api\u002Frust\u002Fptwm_core\u002Ftrust\u002Fkeyring",{"title":847,"path":848,"stem":849},"org","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftrust\u002Forg","api\u002Frust\u002Fptwm_core\u002Ftrust\u002Forg",{"title":851,"path":852,"stem":853},"signature","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftrust\u002Fsignature","api\u002Frust\u002Fptwm_core\u002Ftrust\u002Fsignature",{"title":855,"path":856,"stem":857},"verifier","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftrust\u002Fverifier","api\u002Frust\u002Fptwm_core\u002Ftrust\u002Fverifier",{"title":859,"path":860,"stem":861,"children":862},"types","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftypes","api\u002Frust\u002Fptwm_core\u002Ftypes",[863,867,871],{"title":864,"path":865,"stem":866},"descriptor","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftypes\u002Fdescriptor","api\u002Frust\u002Fptwm_core\u002Ftypes\u002Fdescriptor",{"title":868,"path":869,"stem":870},"plane_role","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftypes\u002Fplane_role","api\u002Frust\u002Fptwm_core\u002Ftypes\u002Fplane_role",{"title":872,"path":873,"stem":874},"role","\u002Fapi\u002Frust\u002Fptwm_core\u002Ftypes\u002Frole","api\u002Frust\u002Fptwm_core\u002Ftypes\u002Frole",{"title":876,"path":877,"stem":878},"varint","\u002Fapi\u002Frust\u002Fptwm_core\u002Fvarint","api\u002Frust\u002Fptwm_core\u002Fvarint",{"title":880,"path":881,"stem":882},"Benchmarks","\u002Fbenchmarks","50.benchmarks",{"title":884,"path":885,"stem":886},"Extensions","\u002Fextensions","60.extensions",{"title":888,"path":889,"stem":890},"Release notes","\u002Frelease-notes","70.release-notes",{"title":892,"path":893,"stem":894},"Contributing","\u002Fcontributing","90.contributing",{"id":896,"title":187,"body":897,"description":1568,"extension":1569,"kind":1570,"language":1570,"links":1570,"meta":1571,"navigation":1570,"path":188,"seo":1572,"stem":189,"summary":1570,"__hash__":1573},"docs\u002F30.guides\u002F04.trust-and-security.md",{"type":898,"value":899,"toc":1558},"minimark",[900,904,909,912,941,952,960,976,982,986,993,1030,1045,1049,1052,1163,1170,1174,1199,1377,1388,1395,1402,1435,1453,1464,1468,1477,1497,1506,1510,1544,1554],[901,902,903],"p",{},"PTWM refuses to load an extension unless its signature chains to a key\nthe user has explicitly trusted. This page covers the trust state\nmachine, the policy controls, and the threat model.",[905,906,908],"h2",{"id":907},"the-bundled-then-pinned-model","The bundled-then-pinned model",[901,910,911],{},"On a fresh install, PTWM ships with no trusted keys at all. Running:",[913,914,919],"pre",{"className":915,"code":916,"language":917,"meta":918,"style":918},"language-sh shiki shiki-themes material-theme-lighter github-light github-dark","ptwm trust add --bundled\n","sh","",[920,921,922],"code",{"__ignoreMap":918},[923,924,927,930,934,937],"span",{"class":925,"line":926},"line",1,[923,928,217],{"class":929},"sbgvK",[923,931,933],{"class":932},"s_sjI"," trust",[923,935,936],{"class":932}," add",[923,938,940],{"class":939},"stzsN"," --bundled\n",[901,942,943,944,947,948,951],{},"imports the curated bundled keyring (a snapshot of \"official\"\ncontribution authors) and pins its blake3 hash to\n",[920,945,946],{},"$XDG_CONFIG_HOME\u002Fptwm\u002Ftrust\u002Fbundled.lock",". From that moment on,\nopening a ",[920,949,950],{},".ptwm"," file referencing one of those contributions\nsucceeds.",[901,953,954,955,959],{},"If a subsequent PTWM upgrade ships a ",[956,957,958],"em",{},"different"," bundled keyring — a\nnew author added, a compromised key revoked — the on-disk lock no\nlonger matches. The reader treats the bundled keyring as inactive\nuntil the user explicitly accepts the new state:",[913,961,963],{"className":915,"code":962,"language":917,"meta":918,"style":918},"ptwm trust update --bundled\n",[920,964,965],{"__ignoreMap":918},[923,966,967,969,971,974],{"class":925,"line":926},[923,968,217],{"class":929},[923,970,933],{"class":932},[923,972,973],{"class":932}," update",[923,975,940],{"class":939},[901,977,978,981],{},[920,979,980],{},"update --bundled"," shows you the diff (added \u002F removed keys) before\napplying it. This means a PTWM upgrade can't silently grant a new\npublisher the ability to ship code into your loader — that step always\nrequires consent.",[905,983,985],{"id":984},"three-kinds-of-trust-entry","Three kinds of trust entry",[901,987,988,989,992],{},"Per ",[920,990,991],{},"ptwm trust list",", your keyring may hold:",[994,995,996,1006,1014],"ul",{},[997,998,999,1005],"li",{},[1000,1001,1002],"strong",{},[920,1003,1004],{},"author_key"," — trust everything signed by this Ed25519 public\nkey. The most common entry. Use for \"I trust everything this\nauthor ships\".",[997,1007,1008,1013],{},[1000,1009,1010],{},[920,1011,1012],{},"contribution_hash"," — pin trust to a single canonical id (a\nspecific contribution at a specific version). Use for one-off\napprovals where you don't want a key to grant transitive trust.",[997,1015,1016,1021,1022,1025,1026,1029],{},[1000,1017,1018],{},[920,1019,1020],{},"key_with_capability_constraints"," — trust this author ",[956,1023,1024],{},"only","\nfor contributions whose declared capabilities are a subset of an\nallowed list. Use for \"trust author X but only their pure codecs,\nnot anything that declares ",[920,1027,1028],{},"host_imports","\".",[901,1031,1032,1033,1036,1037,1040,1041,1044],{},"Add entries with ",[920,1034,1035],{},"ptwm trust add","; remove with ",[920,1038,1039],{},"ptwm trust remove \u003Cidentifier>","; inspect with ",[920,1042,1043],{},"ptwm trust show",".",[905,1046,1048],{"id":1047},"capabilities","Capabilities",[901,1050,1051],{},"Every contribution declares its requirements in a capability map\nthat's signed alongside the manifest. The v1 baseline keys:",[578,1053,1054,1067],{},[1055,1056,1057],"thead",{},[1058,1059,1060,1064],"tr",{},[1061,1062,1063],"th",{},"Key",[1061,1065,1066],{},"Meaning",[1068,1069,1070,1081,1094,1103,1125,1143,1153],"tbody",{},[1058,1071,1072,1078],{},[1073,1074,1075],"td",{},[920,1076,1077],{},"determinism",[1073,1079,1080],{},"Promises byte-identical output across runs \u002F flavors.",[1058,1082,1083,1087],{},[1073,1084,1085],{},[920,1086,674],{},[1073,1088,1089,1090,1093],{},"Lists ",[920,1091,1092],{},"\u003Clibrary>=\u003Cversion-constraint>"," requirements.",[1058,1095,1096,1100],{},[1073,1097,1098],{},[920,1099,1028],{},[1073,1101,1102],{},"WASM host functions the module needs imported.",[1058,1104,1105,1110],{},[1073,1106,1107],{},[920,1108,1109],{},"hardware_class",[1073,1111,1112,1115,1116,1115,1119,1115,1122,1044],{},[920,1113,1114],{},"cpu"," \u002F ",[920,1117,1118],{},"cuda",[920,1120,1121],{},"rocm",[920,1123,1124],{},"mps",[1058,1126,1127,1132],{},[1073,1128,1129],{},[920,1130,1131],{},"sandbox_class",[1073,1133,1134,1115,1137,1115,1140,1044],{},[920,1135,1136],{},"pure_decode",[920,1138,1139],{},"read_only_filesystem",[920,1141,1142],{},"network",[1058,1144,1145,1150],{},[1073,1146,1147],{},[920,1148,1149],{},"mem_factor",[1073,1151,1152],{},"Multiplier for the default 256 MiB WASM memory budget.",[1058,1154,1155,1160],{},[1073,1156,1157],{},[920,1158,1159],{},"fuel_factor",[1073,1161,1162],{},"Multiplier for the default 100M fuel budget.",[901,1164,1165,1166,1169],{},"A capability the host doesn't know is ",[1000,1167,1168],{},"denied"," at verify time, not\nsilently accepted. This means a future PTWM upgrade introducing a new\ncapability key can't be exploited by replaying an old extension that\ndeclared the new key — the contribution authors must re-sign.",[905,1171,1173],{"id":1172},"policy-files","Policy files",[901,1175,1176,1177,1180,1181,1190,1191,1198],{},"Capabilities + canonical IDs feed into the policy file that\n",[920,1178,1179],{},"ptwm bench compress --variant"," consumes. The TOML schema is the one\nparsed by ",[1182,1183,1187],"a",{"href":1184,"rel":1185},"https:\u002F\u002Fgithub.com\u002Ftensor-compress\u002Fptwm\u002Fblob\u002Fmaster\u002Fcrates\u002Fptwm-core\u002Fsrc\u002Fpolicy\u002Ffile.rs",[1186],"nofollow",[920,1188,1189],{},"PolicyFile::from_toml","\nand resolved against the active keyring by\n",[1182,1192,1195],{"href":1193,"rel":1194},"https:\u002F\u002Fgithub.com\u002Ftensor-compress\u002Fptwm\u002Fblob\u002Fmaster\u002Fcrates\u002Fptwm-core\u002Fsrc\u002Fpolicy\u002Fresolve.rs",[1186],[920,1196,1197],{},"ResolvedPolicy",".\nExample:",[913,1200,1204],{"className":1201,"code":1202,"language":1203,"meta":918,"style":918},"language-toml shiki shiki-themes material-theme-lighter github-light github-dark","[allow]\nextra = [\n    \"blake3:5c3a4cd0c46825ae6dbb471459e63347ea6e1d62c8a0dbfdf5d532a124525f09\",\n]\n\n[ignore]\nextensions = [\n    \"blake3:da39a3ee5e6b4b0d3255bfef95601890afd80709…\",\n]\n\n[per_role.scale]\ndeny = [\"blake3:\u003Ccanonical-id>\"]\n\n[capabilities]\nallow_host_imports = []   # WASM modules with host_imports declared → rejected\ndeny_native_deps_unverified = true\n","toml",[920,1205,1206,1218,1231,1247,1252,1259,1269,1279,1291,1296,1301,1316,1336,1341,1350,1365],{"__ignoreMap":918},[923,1207,1208,1212,1215],{"class":925,"line":926},[923,1209,1211],{"class":1210},"sP7_E","[",[923,1213,1214],{"class":929},"allow",[923,1216,1217],{"class":1210},"]\n",[923,1219,1221,1225,1228],{"class":925,"line":1220},2,[923,1222,1224],{"class":1223},"su5hD","extra ",[923,1226,1227],{"class":1210},"=",[923,1229,1230],{"class":1210}," [\n",[923,1232,1234,1238,1241,1244],{"class":925,"line":1233},3,[923,1235,1237],{"class":1236},"sjJ54","    \"",[923,1239,1240],{"class":932},"blake3:5c3a4cd0c46825ae6dbb471459e63347ea6e1d62c8a0dbfdf5d532a124525f09",[923,1242,1243],{"class":1236},"\"",[923,1245,1246],{"class":1210},",\n",[923,1248,1250],{"class":925,"line":1249},4,[923,1251,1217],{"class":1210},[923,1253,1255],{"class":925,"line":1254},5,[923,1256,1258],{"emptyLinePlaceholder":1257},true,"\n",[923,1260,1262,1264,1267],{"class":925,"line":1261},6,[923,1263,1211],{"class":1210},[923,1265,1266],{"class":929},"ignore",[923,1268,1217],{"class":1210},[923,1270,1272,1275,1277],{"class":925,"line":1271},7,[923,1273,1274],{"class":1223},"extensions ",[923,1276,1227],{"class":1210},[923,1278,1230],{"class":1210},[923,1280,1282,1284,1287,1289],{"class":925,"line":1281},8,[923,1283,1237],{"class":1236},[923,1285,1286],{"class":932},"blake3:da39a3ee5e6b4b0d3255bfef95601890afd80709…",[923,1288,1243],{"class":1236},[923,1290,1246],{"class":1210},[923,1292,1294],{"class":925,"line":1293},9,[923,1295,1217],{"class":1210},[923,1297,1299],{"class":925,"line":1298},10,[923,1300,1258],{"emptyLinePlaceholder":1257},[923,1302,1304,1306,1309,1311,1314],{"class":925,"line":1303},11,[923,1305,1211],{"class":1210},[923,1307,1308],{"class":929},"per_role",[923,1310,1044],{"class":1223},[923,1312,1313],{"class":929},"scale",[923,1315,1217],{"class":1210},[923,1317,1319,1322,1324,1327,1329,1332,1334],{"class":925,"line":1318},12,[923,1320,1321],{"class":1223},"deny ",[923,1323,1227],{"class":1210},[923,1325,1326],{"class":1210}," [",[923,1328,1243],{"class":1236},[923,1330,1331],{"class":932},"blake3:\u003Ccanonical-id>",[923,1333,1243],{"class":1236},[923,1335,1217],{"class":1210},[923,1337,1339],{"class":925,"line":1338},13,[923,1340,1258],{"emptyLinePlaceholder":1257},[923,1342,1344,1346,1348],{"class":925,"line":1343},14,[923,1345,1211],{"class":1210},[923,1347,1047],{"class":929},[923,1349,1217],{"class":1210},[923,1351,1353,1356,1358,1361],{"class":925,"line":1352},15,[923,1354,1355],{"class":1223},"allow_host_imports ",[923,1357,1227],{"class":1210},[923,1359,1360],{"class":1210}," []",[923,1362,1364],{"class":1363},"sutJx","   # WASM modules with host_imports declared → rejected\n",[923,1366,1368,1371,1373],{"class":925,"line":1367},16,[923,1369,1370],{"class":1223},"deny_native_deps_unverified ",[923,1372,1227],{"class":1210},[923,1374,1376],{"class":1375},"syTEX"," true\n",[901,1378,1379,1380,1383,1384,1387],{},"The resolved policy enters the encoder via\n",[920,1381,1382],{},"CompressionConfig.from_resolved_policy(rp)"," and constrains the\ndispatcher's trial-encode menu per-plane. An empty intersection (the\npolicy excludes every codec a plane can use) is a hard ",[920,1385,1386],{},"InvalidContainer","\nerror — silent identity fallback would falsify ablation numbers.",[905,1389,1391,1394],{"id":1390},"contributionuntrusted-at-decode",[920,1392,1393],{},"ContributionUntrusted"," at decode",[901,1396,1397,1398,1401],{},"When ",[920,1399,1400],{},"ContainerReader::open"," encounters an extension-table entry\nreferring to a non-builtin canonical id, it:",[1403,1404,1405,1416,1423,1430],"ol",{},[997,1406,1407,1408,1411,1412,1415],{},"Looks up the matching installed bundle on disk\n(",[920,1409,1410],{},"$PTWM_EXTENSION_PATH"," or ",[920,1413,1414],{},"$XDG_DATA_HOME\u002Fptwm\u002Fextensions\u002F",").",[997,1417,1418,1419,1422],{},"Recomputes ",[920,1420,1421],{},"blake3(manifest ‖ binaries)"," from the on-disk files.",[997,1424,1425,1426,1429],{},"Verifies the bundle's ",[920,1427,1428],{},"signature.bin"," against the author key from\nthe manifest.",[997,1431,1432,1433,1415],{},"Confirms the author key is in the active keyring (or that the\ncanonical id is pinned via ",[920,1434,1012],{},[901,1436,1437,1438,1440,1441,1444,1445,1448,1449,1452],{},"Failure at any step surfaces as a ",[920,1439,1393],{}," error with a\nspecific reason. The reader does ",[1000,1442,1443],{},"not"," silently downgrade; tampered\nbinaries fail loudly. (Verified by the\n",[920,1446,1447],{},"open_verifies_signed_bundle_end_to_end"," test in\n",[920,1450,1451],{},"crates\u002Fptwm-core\u002Fsrc\u002Fcontainer.rs",".)",[901,1454,1455,1456,1459,1460,1463],{},"If you genuinely want to inspect a container that references an\nuntrusted extension (e.g. listing tensor names without executing\ncodec code), pass ",[920,1457,1458],{},"skip_missing=True"," to ",[920,1461,1462],{},"Decompressor",". Decoding any\ntensor that needs the untrusted extension still fails.",[905,1465,1467],{"id":1466},"threat-model-in-two-paragraphs","Threat model in two paragraphs",[901,1469,1470,1473,1474,1476],{},[1000,1471,1472],{},"Assets:"," the user's signing keys, the on-disk extensions directory\n(",[920,1475,1414],{},"), and the integrity of decompressed\ntensor bytes flowing into a training\u002Finference loop.",[901,1478,1479,1482,1483,1486,1487,1489,1490,1489,1493,1496],{},[1000,1480,1481],{},"Mitigations:"," WASM extensions execute in a Wasmtime sandbox with no\nhost imports granted by default, finite fuel, finite memory, and no\nfilesystem or network access. Native cdylib extensions have no\nsandbox — their security boundary is the signing key, which is why\nthe verifier always checks the on-disk binary hash, not just the\nheader signature. The trust state is ",[1000,1484,1485],{},"never updated silently",":\nevery change requires an explicit ",[920,1488,1035],{},"\u002F",[920,1491,1492],{},"update",[920,1494,1495],{},"remove","\ninvocation. The bundled keyring is treated as untrusted on hash\nmismatch, so a malicious PTWM upgrade can't graft new publishers\ninto your loader.",[901,1498,1499,1502,1503,1505],{},[1000,1500,1501],{},"Out of scope:"," confidentiality of compressed weights (use\nfilesystem-level encryption), denial-of-service via deliberately slow\nextensions (use ",[920,1504,1159],{}," to bound), and side-channel attacks\nagainst the signing key (use a hardware token).",[905,1507,1509],{"id":1508},"recommended-workflow","Recommended workflow",[901,1511,1512,1513,1516,1517,1520,1521,1524,1525,1528,1529,1532,1533,1536,1537,1540,1541,1029],{},"For ",[956,1514,1515],{},"researchers",": keep ",[920,1518,1519],{},"ptwm trust add --bundled"," plus a single\nlocal ",[920,1522,1523],{},"--key"," for your own development. Re-sign on every commit; the\nv1 CLI doesn't ship a ",[920,1526,1527],{},"gen-key"," subcommand, so generate the 32-byte\nraw seed yourself (",[920,1530,1531],{},"openssl rand 32 > key.priv",") and re-feed it to\n",[920,1534,1535],{},"ptwm ext sign --key key.priv",". Key rotation is \"generate a new\nseed, add the new public key with ",[920,1538,1539],{},"ptwm trust add --key",", then\nremove the old entry with ",[920,1542,1543],{},"ptwm trust remove \u003Clabel>",[901,1545,1512,1546,1549,1550,1553],{},[956,1547,1548],{},"operators"," shipping models with custom codecs: don't ship the\nprivate key with the model. Sign at release time, distribute the\npublic key out-of-band (e.g. in the model card), and let downstream\nusers explicitly ",[920,1551,1552],{},"ptwm trust add --key …",". The bundled keyring\nupdate flow makes this audit-trail-friendly.",[1555,1556,1557],"style",{},"html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}html pre.shiki code .syTEX, html code.shiki .syTEX{--shiki-light:#FF5370;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":918,"searchDepth":1233,"depth":1233,"links":1559},[1560,1561,1562,1563,1564,1566,1567],{"id":907,"depth":1220,"text":908},{"id":984,"depth":1220,"text":985},{"id":1047,"depth":1220,"text":1048},{"id":1172,"depth":1220,"text":1173},{"id":1390,"depth":1220,"text":1565},"ContributionUntrusted at decode",{"id":1466,"depth":1220,"text":1467},{"id":1508,"depth":1220,"text":1509},"How PTWM decides whether to load an extension — keyring, capabilities, and the threat model.","md",null,{},{"title":187,"description":1568},"PIhwbzfvKv79pqtugmin52s5KmGwXzj3HU1Q7yizNjI",[1575,1577],{"title":183,"path":184,"stem":185,"description":1576,"children":-1},"Step-by-step walkthrough from `ptwm ext init` to a signed, installed plane codec.",{"title":191,"path":192,"stem":193,"description":1578,"children":-1},"Open a `.ptwm` bundle and fetch individual tensors without decompressing the whole file.",1794396791557]