Metadata-Version: 2.4
Name: shardloom
Version: 0.6.0
Summary: Pre-release Python client for ShardLoom, a Vortex-first no-fallback evidence-certified local compute engine
Author: ShardLoom contributors
License-Expression: Apache-2.0
Project-URL: Homepage, https://shardloom.io
Project-URL: Repository, https://github.com/depsilon/shardloom
Project-URL: Issues, https://github.com/depsilon/shardloom/issues
Project-URL: Documentation, https://github.com/depsilon/shardloom/tree/main/docs
Keywords: analytics,columnar,vortex,data-engine,etl,benchmark,no-fallback,rust,python
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Database
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: THIRD_PARTY_LICENSES/manifest.json
License-File: THIRD_PARTY_LICENSES/texts/016d20f335060a70e79d9fcf8dfaa6201114d65d592211f4bdfb8ae9ca2bc1dc.txt
License-File: THIRD_PARTY_LICENSES/texts/01c266bced4a434da0051174d6bee16a4c82cf634e2679b6155d40d75012390f.txt
License-File: THIRD_PARTY_LICENSES/texts/0218327e7a480793ffdd4eb792379a9709e5c135c7ba267f709d6f6d4d70af0a.txt
License-File: THIRD_PARTY_LICENSES/texts/021f4a01e58372b826203064fac216e15d51e07f7739b8ca33d4b746ec8abb3b.txt
License-File: THIRD_PARTY_LICENSES/texts/025436edff4cfcdde17a5811fdea78892d8482efd1abdec5a17872d07a4f2112.txt
License-File: THIRD_PARTY_LICENSES/texts/0444c6991eead6822f7b9102e654448d51624431119546492e8b231db42c48bb.txt
License-File: THIRD_PARTY_LICENSES/texts/0613408568889f5739e5ae252b722a2659c02002839ad970a63dc5e9174b27cf.txt
License-File: THIRD_PARTY_LICENSES/texts/0816e154b159ba255c563f7c8c7df5bbb8cc5fc96f5ab8cf9f4743b4f41fe7eb.txt
License-File: THIRD_PARTY_LICENSES/texts/082d31fbdecbda9720686a2b76cee810dcd2630f2d16bc4cc9accd411b6a76fd.txt
License-File: THIRD_PARTY_LICENSES/texts/0982c33390159842ecce8e9d6ce2e5e39961fe0e0ffbb2eec39c9ba46db6db10.txt
License-File: THIRD_PARTY_LICENSES/texts/0a54e647fe54104658b5e563c04c6f9edf251710e47bce692e0bd990a4ddaa39.txt
License-File: THIRD_PARTY_LICENSES/texts/0ab4d106b6faac07fb6a051815fd1b4d862d730895e2d7d7358c2f13565e7a38.txt
License-File: THIRD_PARTY_LICENSES/texts/0b28172679e0009b655da42797c03fd163a3379d5cfa67ba1f1655e974a2a1a9.txt
License-File: THIRD_PARTY_LICENSES/texts/0be96d891d00e0ae0df75d7f3289b12871c000a1f5ac744f3b570768d4bb277c.txt
License-File: THIRD_PARTY_LICENSES/texts/0cec06e0e55fbc3dc5cee4fca9b607f66cb8f4e4dbcf3b3c013594dd156732e9.txt
License-File: THIRD_PARTY_LICENSES/texts/0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594.txt
License-File: THIRD_PARTY_LICENSES/texts/0dd882e53de11566d50f8e8e2d5a651bcf3fabee4987d70f306233cf39094ba7.txt
License-File: THIRD_PARTY_LICENSES/texts/0f96a83840e146e43c0ec96a22ec1f392e0680e6c1226e6f3ba87e0740af850f.txt
License-File: THIRD_PARTY_LICENSES/texts/123a331b5dbf04c30097fa43b8f858bc85df671fe776de498d01f3d6b7c1f69e.txt
License-File: THIRD_PARTY_LICENSES/texts/129e8edef29e9abcd2ebabe252f4ef1b1289cdca356bf0040284a2fbccfb96c8.txt
License-File: THIRD_PARTY_LICENSES/texts/13f4cc9fbc8d4a447b28aa84019c10ad4abf4b5f6919db061bf6690ccc23bc02.txt
License-File: THIRD_PARTY_LICENSES/texts/157d381f6304eba77459fc10dfb5b1b22fc0d04e384a32865f32d8e67a34c0eb.txt
License-File: THIRD_PARTY_LICENSES/texts/16692e8cee4aa06e3913787497eba2d47c42002014136f5da67be6ee640e28a3.txt
License-File: THIRD_PARTY_LICENSES/texts/175d33d2e88fc3944f1f54125e886e7232a85380b73dce505e9088fe4e91c576.txt
License-File: THIRD_PARTY_LICENSES/texts/1847e0e0698142ed4347c1441a9fa81c8fbddd44b1d8bbcd5e3647f991759d7f.txt
License-File: THIRD_PARTY_LICENSES/texts/1a2f5c12ddc934d58956aa5dbdd3255fe55fd957633ab7d0d39e4f0daa73f7df.txt
License-File: THIRD_PARTY_LICENSES/texts/1c41c0e19caa2c20b0adfeb8219b606b21b7c63914aa3ae74ae3e091d7ce09ca.txt
License-File: THIRD_PARTY_LICENSES/texts/1e5523cbc08ab4ed749c6f179d5e40b817f74bf5c6d330823c208cb0a38c62e7.txt
License-File: THIRD_PARTY_LICENSES/texts/209fbbe0ad52d9235e37badf9cadfe4dbdc87203179c0899e738b39ade42177b.txt
License-File: THIRD_PARTY_LICENSES/texts/20c7855c364d57ea4c97889a5e8d98470a9952dade37bd9248b9a54431670e5e.txt
License-File: THIRD_PARTY_LICENSES/texts/20fe7b00e904ed690e3b9fd6073784d3fc428141dbd10b81c01fd143d0797f58.txt
License-File: THIRD_PARTY_LICENSES/texts/216486f29671a4262efe32af6d84a75bef398127f8c5f369b5c8305983887a06.txt
License-File: THIRD_PARTY_LICENSES/texts/219920e865eee70b7dcfc948a86b099e7f4fe2de01bcca2ca9a20c0a033f2b59.txt
License-File: THIRD_PARTY_LICENSES/texts/23860c2a7b5d96b21569afedf033469bab9fe14a1b24a35068b8641c578ce24d.txt
License-File: THIRD_PARTY_LICENSES/texts/23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3.txt
License-File: THIRD_PARTY_LICENSES/texts/241d116ecc7ec20e3c67cb8e9edb00ef98feab4af4a87f4f00b1f21bc3e8d1f2.txt
License-File: THIRD_PARTY_LICENSES/texts/253cd04c6714889df2d32f3f64d669179a1c95c76ac43c40882c52eb06bc3552.txt
License-File: THIRD_PARTY_LICENSES/texts/268872b9816f90fd8e85db5a28d33f8150ebb8dd016653fb39ef1f94f2686bc5.txt
License-File: THIRD_PARTY_LICENSES/texts/2710a622a896bba67356913d4d0492cab5465f61b2ecce6d880aeb483834fb50.txt
License-File: THIRD_PARTY_LICENSES/texts/275c491d6d1160553c32fd6127061d7f9606c3ea25abfad6ca3f6ed088785427.txt
License-File: THIRD_PARTY_LICENSES/texts/27995d58ad5c1145c1a8cd86244ce844886958a35eb2b78c6b772748669999ac.txt
License-File: THIRD_PARTY_LICENSES/texts/29e9fe5074bd27e0e5d5d110394fbbcd841baee2651a3c4b4560a632702cede4.txt
License-File: THIRD_PARTY_LICENSES/texts/2c8aca896e6e398329499ccb47c43947ab89e6cd4bd6a2739fad80118df45881.txt
License-File: THIRD_PARTY_LICENSES/texts/30fefc3a7d6a0041541858293bcbea2dde4caa4c0a5802f996a7f7e8c0085652.txt
License-File: THIRD_PARTY_LICENSES/texts/31edd94ac845052712d8044ae23c09a451227b522e8215ab4ea4f1ce4741b160.txt
License-File: THIRD_PARTY_LICENSES/texts/31ff8f368fc3ee9d17ab4196995977aea87b3471d565ea1a44b79a590e7a356a.txt
License-File: THIRD_PARTY_LICENSES/texts/3290ae0fbc9ddb77d2239121d710f0bb9d31b3b4744e6d97fe01e652b4c1870b.txt
License-File: THIRD_PARTY_LICENSES/texts/32c76dbe0e73d79100d5ece77c158399f2e2541bc5c78548a4ba45c1cb53c5c9.txt
License-File: THIRD_PARTY_LICENSES/texts/3488679340a49ecc34d342c4009d2dabf76f4a21f12aec2ca99b15805d656544.txt
License-File: THIRD_PARTY_LICENSES/texts/35242e7a83f69875e6edeff02291e688c97caafe2f8902e4e19b49d3e78b4cab.txt
License-File: THIRD_PARTY_LICENSES/texts/35bf31727c1b04a64daf619dc6823dffc9c58154dfc71160d0ac3e087e9743f4.txt
License-File: THIRD_PARTY_LICENSES/texts/36516aefdc84c5d5a1e7485425913a22dbda69eb1930c5e84d6ae4972b5194b9.txt
License-File: THIRD_PARTY_LICENSES/texts/377c2e7c53250cc5905c0b0532d35973392af16ffb9596a41d99d202cf3617c9.txt
License-File: THIRD_PARTY_LICENSES/texts/378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397.txt
License-File: THIRD_PARTY_LICENSES/texts/3823dda7cf046602f4b4e77ec8e227863dc4736037cc85bb33d9f19febe16bb7.txt
License-File: THIRD_PARTY_LICENSES/texts/388e98b08de12ba8a9d4575883c8b0386c747cea188ed459380fc58d60da15c9.txt
License-File: THIRD_PARTY_LICENSES/texts/3d180008e36922a4e8daec11c34c7af264fed5962d07924aea928c38e8663c94.txt
License-File: THIRD_PARTY_LICENSES/texts/3ddf9be5c28fe27dad143a5dc76eea25222ad1dd68934a047064e56ed2fa40c5.txt
License-File: THIRD_PARTY_LICENSES/texts/3eab77734a181b2a2e8418af9004f960f715f04aac4d76a26cf774f63a7b13d1.txt
License-File: THIRD_PARTY_LICENSES/texts/3fa4ca83dcc9237839b1bdeb2e6d16bdfb5ec0c5ce42b24694d8bbf0dcbef72c.txt
License-File: THIRD_PARTY_LICENSES/texts/3ffde8c8cdebf3c361b971bed7476006ede9c5ec8a6250137c7dc55383ed9e5b.txt
License-File: THIRD_PARTY_LICENSES/texts/4108245a1f2df9d4e94df8abed5b4ba0759bb2f9b40a6b939f1be141077ae50b.txt
License-File: THIRD_PARTY_LICENSES/texts/411781fd38700f2357a14126d0ab048164ab881f1dcb335c1bb932e232c9a2f5.txt
License-File: THIRD_PARTY_LICENSES/texts/42a35170233e83e18856792e748de4c1ce4a63b2afce9a370c89ef3fe23f9f2d.txt
License-File: THIRD_PARTY_LICENSES/texts/42d3bf7e7d4d49d72c0555d14ed99c3ee7ce9ce3cbffbc38bbafe8c103f50969.txt
License-File: THIRD_PARTY_LICENSES/texts/42fa16951ce7f24b5a467a40e5b449a1d41e662f97ca779864f053f39e097737.txt
License-File: THIRD_PARTY_LICENSES/texts/436bc5a105d8e57dcd8778730f3754f7bf39c14d2f530e4cde4bd2d17a83ec3d.txt
License-File: THIRD_PARTY_LICENSES/texts/4455bf75a91154108304cb283e0fea9948c14f13e20d60887cf2552449dea3b1.txt
License-File: THIRD_PARTY_LICENSES/texts/45f522cacecb1023856e46df79ca625dfc550c94910078bd8aec6e02880b3d42.txt
License-File: THIRD_PARTY_LICENSES/texts/470355a7eed93fcc4281ec2e0f82ca3b94e7af1e4d83629f91de8cfac34d750e.txt
License-File: THIRD_PARTY_LICENSES/texts/4789210f4df8abc03fce1cddd9c2ba517f184840687f2815d741de282c1aa93a.txt
License-File: THIRD_PARTY_LICENSES/texts/48341f685c87304089aa099b23c386f8bacc519ef555aa7a13e239908907b3fd.txt
License-File: THIRD_PARTY_LICENSES/texts/484f7e56d0e3178613b2f12d478a46fc2f2a6646c7ea14a7329bb805ccc2a82b.txt
License-File: THIRD_PARTY_LICENSES/texts/4cada0bd02ea3692eee6f16400d86c6508bbd3bafb2b65fed0419f36d4f83e8f.txt
License-File: THIRD_PARTY_LICENSES/texts/4dbda04344456f09a7a588140455413a9ac59b6b26a1ef7cdf9c800c012d87f0.txt
License-File: THIRD_PARTY_LICENSES/texts/503558bfefe66ca15e4e3f7955b3cb0ec87fd52f29bf24b336af7bd00e946d5c.txt
License-File: THIRD_PARTY_LICENSES/texts/508a77d2e7b51d98adeed32648ad124b7b30241a8e70b2e72c99f92d8e5874d1.txt
License-File: THIRD_PARTY_LICENSES/texts/516b24e051bf5630880ebbd55c40a25ce9552ebaf8970a53e8976eb70e522406.txt
License-File: THIRD_PARTY_LICENSES/texts/523a42c25d245dde9c015f882cec7f4555aad883382a6cf19b4b7d9b2cd5419b.txt
License-File: THIRD_PARTY_LICENSES/texts/53231f493e357180e66a7f5c5c6e5027726976bc5dbb75abcff37b4710fe0133.txt
License-File: THIRD_PARTY_LICENSES/texts/53e1575d9de4821148b6000750453877b9754319dd148cc7186b6e7662e055c4.txt
License-File: THIRD_PARTY_LICENSES/texts/553fffcd9b1cb158bc3e9edc35da85ca5c3b3d7d2e61c883ebcfa8a65814b583.txt
License-File: THIRD_PARTY_LICENSES/texts/5734ed989dfca1f625b40281ee9f4530f91b2411ec01cb748223e7eb87e201ab.txt
License-File: THIRD_PARTY_LICENSES/texts/58545fed1565e42d687aecec6897d35c6d37ccb71479a137c0deb2203e125c79.txt
License-File: THIRD_PARTY_LICENSES/texts/58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd.txt
License-File: THIRD_PARTY_LICENSES/texts/5e05b024f653a5ce199e77cbbbd42fb5553562ec714b819421ed0c3e552a75d7.txt
License-File: THIRD_PARTY_LICENSES/texts/5ef8fcfb6cccec8fcae043c834099a60c8b7406408db576e026d2b7e67dc5cf5.txt
License-File: THIRD_PARTY_LICENSES/texts/603fb27ef3266ea516872eefd9ae587746b8c34614a35c0fb24e4e9e0c17e137.txt
License-File: THIRD_PARTY_LICENSES/texts/60c93a31f490375aadf64098b75f10715010379541021e00261045d7800611d3.txt
License-File: THIRD_PARTY_LICENSES/texts/61d383b05b87d78f94d2937e2580cce47226d17823c0430fbcad09596537efcf.txt
License-File: THIRD_PARTY_LICENSES/texts/62065228e42caebca7e7d7db1204cbb867033de5982ca4009928915e4095f3a3.txt
License-File: THIRD_PARTY_LICENSES/texts/6226d0632e2e1a80c23597e964da9812ae193c535fe058154afb034e94167aa5.txt
License-File: THIRD_PARTY_LICENSES/texts/62b40bb6269dfc89251f897c93845c25b0b7c78c0bc377afa35c97bf5cd5c1f7.txt
License-File: THIRD_PARTY_LICENSES/texts/62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a.txt
License-File: THIRD_PARTY_LICENSES/texts/6485b8ed310d3f0340bf1ad1f47645069ce4069dcc6bb46c7d5c6faf41de1fdb.txt
License-File: THIRD_PARTY_LICENSES/texts/65f94e99ddaf4f5d1782a6dae23f35d4293a9a01444a13135a6887017d353cee.txt
License-File: THIRD_PARTY_LICENSES/texts/6652c868f35dfe5e8ef636810a4e576b9d663f3a17fb0f5613ad73583e1b88fd.txt
License-File: THIRD_PARTY_LICENSES/texts/696759d65dfe558ff7d9f031c76db19ec5c0767470fb67c4e8d990820d1e99c9.txt
License-File: THIRD_PARTY_LICENSES/texts/6df43f6f4b5d4587f3d8d71e45532c688fd168afa5fe89d571cb32fa09c4ef51.txt
License-File: THIRD_PARTY_LICENSES/texts/6efb0476a1cc085077ed49357026d8c173bf33017278ef440f222fb9cbcb66e6.txt
License-File: THIRD_PARTY_LICENSES/texts/7003375a1162b7510d6f053c4a505a0771bbc38d674c4d0687ff6063c000b175.txt
License-File: THIRD_PARTY_LICENSES/texts/7055266497633c9025b777c78eb7235af13922117480ed5c674677adc381c9d8.txt
License-File: THIRD_PARTY_LICENSES/texts/70c9d40f1f9545c3f133b8a67206e89da850f6468eed072281bb3701514114a9.txt
License-File: THIRD_PARTY_LICENSES/texts/7365cc8878a1d7ce155a58c4ca09c3d7a6be413efa5334a80ea842912b669349.txt
License-File: THIRD_PARTY_LICENSES/texts/73b9dc2e79c7308998dd30296e073aefaefb944a68fb89aa412c23c0edcabcaa.txt
License-File: THIRD_PARTY_LICENSES/texts/74db5baf44a41b1000312c673544b3374e4198af5605c7f9080a402cec42cfa3.txt
License-File: THIRD_PARTY_LICENSES/texts/7576269ea71f767b99297934c0b2367532690f8c4badc695edf8e04ab6a1e545.txt
License-File: THIRD_PARTY_LICENSES/texts/76cc745652593f90c8eb8ada9cfa13750b8398dbeb00123d40d9be3dcb4c98ce.txt
License-File: THIRD_PARTY_LICENSES/texts/799e9ca9d179295ef372f25d3769cdda7d25bb2668add6a6a1e22d1e4c678b8d.txt
License-File: THIRD_PARTY_LICENSES/texts/7b63ecd5f1902af1b63729947373683c32745c16a10e8e6292e2e2dcd7e90ae0.txt
License-File: THIRD_PARTY_LICENSES/texts/7ca1297d23644e30bd489193a82a33f324e5fe33f25df4195649b91b883df967.txt
License-File: THIRD_PARTY_LICENSES/texts/7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c.txt
License-File: THIRD_PARTY_LICENSES/texts/7fe7e5e13e445074314ba0aa12ec2e71132931632876ba27b98a1020cf24eb57.txt
License-File: THIRD_PARTY_LICENSES/texts/80f275e90d799911ed3830a7f242a2ef5a4ade2092fe0aa07bfb2d2cf2f2b95e.txt
License-File: THIRD_PARTY_LICENSES/texts/8173d5c29b4f956d532781d2b86e4e30f83e6b7878dce18c919451d6ba707c90.txt
License-File: THIRD_PARTY_LICENSES/texts/831e0f43ad0bf014c1c4fec5767aae470434c1d66d6e671be2d823e729063e25.txt
License-File: THIRD_PARTY_LICENSES/texts/83c1763356e822adde0a2cae748d938a73fdc263849ccff6b27776dff213bd32.txt
License-File: THIRD_PARTY_LICENSES/texts/84b34dd7608f7fb9b17bd588a6bf392bf7de504e2716f024a77d89f1b145a151.txt
License-File: THIRD_PARTY_LICENSES/texts/861399f8c21c042b110517e76dc6b63a2b334276c8cf17412fc3c8908ca8dc17.txt
License-File: THIRD_PARTY_LICENSES/texts/8764a597675778ddfd4e25f81b08a05dbcf089ac05662df7613fe67f150e3aa2.txt
License-File: THIRD_PARTY_LICENSES/texts/898b1ae9821e98daf8964c8d6c7f61641f5f5aa78ad500020771c0939ee0dea1.txt
License-File: THIRD_PARTY_LICENSES/texts/8ada45cd9f843acf64e4722ae262c622a2b3b3007c7310ef36ac1061a30f6adb.txt
License-File: THIRD_PARTY_LICENSES/texts/8b43ce8accd61e9d370b5ca9e9c4f953279b5c239926c62315b40e24df51b726.txt
License-File: THIRD_PARTY_LICENSES/texts/8b4e95f5cf0dc40269c99f7b787203ffe04ded245ca2427422c196efa2b2f42a.txt
License-File: THIRD_PARTY_LICENSES/texts/8b6e9feec03e7c9a5facb26855cecd31662bf989b636bcfe79521bdf8ac863f0.txt
License-File: THIRD_PARTY_LICENSES/texts/8bce3b45e49ecd1461f223b46de133d8f62cd39f745cfdaf81bee554b908bd42.txt
License-File: THIRD_PARTY_LICENSES/texts/8ce0830173fdac609dfb4ea603fdc002c2f4af0dc9b1a005653f5da9cf534b18.txt
License-File: THIRD_PARTY_LICENSES/texts/8dcec5569a9be5b0e086c80faed6f1aefa670af0ec29cecc2f714303096887e0.txt
License-File: THIRD_PARTY_LICENSES/texts/8f0de5a27b703d337948a14f153ab4682fa34e56e0f7f8325f63ad409421ef27.txt
License-File: THIRD_PARTY_LICENSES/texts/90eb64f0279b0d9432accfa6023ff803bc4965212383697eee27a0f426d5f8d5.txt
License-File: THIRD_PARTY_LICENSES/texts/92b81db30f7ab6d693e0af5661a40d273ca1947e891123ed823924192c10cbc7.txt
License-File: THIRD_PARTY_LICENSES/texts/946c9835d8034d24404f8cfec5f4654cee5dad17e944afc3d06d742cf2882831.txt
License-File: THIRD_PARTY_LICENSES/texts/95bd3988beee069fa2848f648dab43cc6e0b2add2ad6bcb17360caf749802bcc.txt
License-File: THIRD_PARTY_LICENSES/texts/98181e7249d0c01737645ec982499ce99a0f07eb8f7d625b8840d799d10dbc01.txt
License-File: THIRD_PARTY_LICENSES/texts/99aab70a96f3ecab683d8a319d9070af2213ae4c1601fb053fbe85e1361e32fe.txt
License-File: THIRD_PARTY_LICENSES/texts/9a6d7a3c1b8edcc706c4b6c37f8dae9a77f02c7f9051df603f975db136b55419.txt
License-File: THIRD_PARTY_LICENSES/texts/9b166edfb0b4b70f1e8b2fdaae320b0acd977c520e0fb95fa881f54f68e724e3.txt
License-File: THIRD_PARTY_LICENSES/texts/9d185ac6703c4b0453974c0d85e9eee43e6941009296bb1f5eb0b54e2329e9f3.txt
License-File: THIRD_PARTY_LICENSES/texts/9df9ba60a11af705f2e451b53762686e615d86f76b169cf075c3237730dbd7e2.txt
License-File: THIRD_PARTY_LICENSES/texts/a01a418b6ffb1de8f4c3814e386b35e1a93a14529b68f17d286550f355b298e1.txt
License-File: THIRD_PARTY_LICENSES/texts/a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499.txt
License-File: THIRD_PARTY_LICENSES/texts/a2b15e1e900414317d0e00d887dd2747d4abd00382c6addeb5daf746bed4b52b.txt
License-File: THIRD_PARTY_LICENSES/texts/a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2.txt
License-File: THIRD_PARTY_LICENSES/texts/a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9.txt
License-File: THIRD_PARTY_LICENSES/texts/a77b7cfeaf911ed410ffbe76f0cb2b24ad8a4d94e7ead5727e914425c416cc63.txt
License-File: THIRD_PARTY_LICENSES/texts/a825bd853ab71619a4923d7b4311221427848070ff44d990da39b0b274c1683f.txt
License-File: THIRD_PARTY_LICENSES/texts/a86a6d5deb8f48a007008297b763adb89d48df32d295ed16fdb282fb52246d84.txt
License-File: THIRD_PARTY_LICENSES/texts/a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5.txt
License-File: THIRD_PARTY_LICENSES/texts/aaff376532ea30a0cd5330b9502ad4a4c8bf769c539c87ffe78819d188a18ebf.txt
License-File: THIRD_PARTY_LICENSES/texts/ae9baa7beea910273c2f384c2a6b721fb7bd02bda3436074a1072e4ee689f985.txt
License-File: THIRD_PARTY_LICENSES/texts/af59cea35d7f5e2777a713b8d155d65efa2c339eb43f3c14e868c6ac8506edad.txt
License-File: THIRD_PARTY_LICENSES/texts/afb11426e09da40a1ae4f8fa17ddcc6b6a52d14df04c29bc5bcd06eb8730624d.txt
License-File: THIRD_PARTY_LICENSES/texts/afcbe3b2e6b37172b5a9ca869ee4c0b8cdc09316e5d4384864154482c33e5af6.txt
License-File: THIRD_PARTY_LICENSES/texts/b1181a40b2a7b25cf66fd01481713bc1005df082c53ef73e851e55071b102744.txt
License-File: THIRD_PARTY_LICENSES/texts/b16db96b93b1d7cf7bea533f572091ec6bca3234fbe0a83038be772ff391a44c.txt
License-File: THIRD_PARTY_LICENSES/texts/b29f8b01452350c20dd1af16ef83b598fea3053578ccc1c7a0ef40e57be2620f.txt
License-File: THIRD_PARTY_LICENSES/texts/b38f11f6096706e6de553dabe2a7ed142d59b6fa8c97e290c67496154745cdd5.txt
License-File: THIRD_PARTY_LICENSES/texts/b7e650f3fce5c53249d1cdc608b54df156a97edd636cf9d23498d0cfe7aec63e.txt
License-File: THIRD_PARTY_LICENSES/texts/b8601fc79bdf8d8088f0938bea861ffc63ed0eebbedf25f44ab2cf2e85bd7edc.txt
License-File: THIRD_PARTY_LICENSES/texts/b8c6939380a400f53e11923d50fcc4dd2fa1ba8339fd9d04cda38a0251b6c9b0.txt
License-File: THIRD_PARTY_LICENSES/texts/ba21ecaff157c9216fb56a67d5e83633f5f3e40a102f4c9a24d61e90772413ad.txt
License-File: THIRD_PARTY_LICENSES/texts/c0c56f26d9c051cac4d200c34c84e7ae9aaa853e01a982a1df08b09931e518ae.txt
License-File: THIRD_PARTY_LICENSES/texts/c10c1f27337546471e5f7e4e97fdd398b35b9d4e126115dcd22de8d8e65abf6f.txt
License-File: THIRD_PARTY_LICENSES/texts/c16f8dcf1a368b83be78d826ea23de4079fe1b4469a0ab9ee20563f37ff3d44b.txt
License-File: THIRD_PARTY_LICENSES/texts/c23953d9deb0a3312dbeaf6c128a657f3591acee45067612fa68405eaa4525db.txt
License-File: THIRD_PARTY_LICENSES/texts/c2534e065069887565f871f0648b013a7e5f4a422809faf4ae3c590b7c0bf561.txt
License-File: THIRD_PARTY_LICENSES/texts/c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383.txt
License-File: THIRD_PARTY_LICENSES/texts/c30152c94a6d75e021adbc52b3a52470366a46edb917e17deae3259251af244c.txt
License-File: THIRD_PARTY_LICENSES/texts/c6596eb7be8581c18be736c846fb9173b69eccf6ef94c5135893ec56bd92ba08.txt
License-File: THIRD_PARTY_LICENSES/texts/c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4.txt
License-File: THIRD_PARTY_LICENSES/texts/c962ee4d1d05ddc138b202b2540219ebc57893fcf97b364852094a9a94ce1365.txt
License-File: THIRD_PARTY_LICENSES/texts/c9a75f18b9ab2927829a208fc6aa2cf4e63b8420887ba29cdb265d6619ae82d5.txt
License-File: THIRD_PARTY_LICENSES/texts/c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566.txt
License-File: THIRD_PARTY_LICENSES/texts/cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30.txt
License-File: THIRD_PARTY_LICENSES/texts/d027e91dbc9cdbb2f1190068e498bd6b61cff022b6a032b191021ba658d96111.txt
License-File: THIRD_PARTY_LICENSES/texts/d2e7ec5355c96eeade56b09187ceb48a6a30299da3ce7531a66d3d11405ab963.txt
License-File: THIRD_PARTY_LICENSES/texts/d315e6cdedc07c478de6992027bfb66f220886c6216fd7e9885ced30c3703646.txt
License-File: THIRD_PARTY_LICENSES/texts/d3cdb764b98283ee7c3a3cea8d374e2a2957322374378d1f3263f4d512741fc3.txt
License-File: THIRD_PARTY_LICENSES/texts/d9771b8c6cf4426d3846de54c1febe20907f1eeadf7adfb5ade89a83bd9ea77f.txt
License-File: THIRD_PARTY_LICENSES/texts/da28ccc6b158fc2d8cccc74e99794b1cff1d29bd7bbeb019442fcf0c04c6cad9.txt
License-File: THIRD_PARTY_LICENSES/texts/db11fec9946737df39ca3898d9cd8c10ec6f6c3a884a6802b0ad0b81b4e8f23a.txt
License-File: THIRD_PARTY_LICENSES/texts/dbe1fff0fb1314b6af94f161511406275cf01c5a32441fbf24528a57a051d599.txt
License-File: THIRD_PARTY_LICENSES/texts/e093109bf927f17b51d9d09fcc3dee8e1c3f0716609765477004bf81c3d795be.txt
License-File: THIRD_PARTY_LICENSES/texts/e3ba223bb1423f0aad8c3dfce0fe3148db48926d41e6fbc3afbbf5ff9e1c89cb.txt
License-File: THIRD_PARTY_LICENSES/texts/e5b198d7f809311723889814d99a92f808c69e89a847efa7a7b65270f5fdeae6.txt
License-File: THIRD_PARTY_LICENSES/texts/e72111c52b7d96ebe25348dee19f0744f444d3c95ae6b1ecb6ccaecc5bce05ba.txt
License-File: THIRD_PARTY_LICENSES/texts/e8146cecb7949e867aa0d2065686ecc09051634694e5f7b592adcdde8290a334.txt
License-File: THIRD_PARTY_LICENSES/texts/e8d3901c28744304957435401f88b9114a73ad95f35bf569e20c4feeb7e2db35.txt
License-File: THIRD_PARTY_LICENSES/texts/ea084a2373ebc1f0902c09266e7bf25a05ab3814c1805bb017ffa7308f90c061.txt
License-File: THIRD_PARTY_LICENSES/texts/ea4fcb309f14a22065e1ea45362d494d320012249ed865fe9c7c0946db754131.txt
License-File: THIRD_PARTY_LICENSES/texts/ecc269ef87fd38a1d98e30bfac9ba964a9dbd9315c3770fed98d4d7cb5882055.txt
License-File: THIRD_PARTY_LICENSES/texts/efcfee7981ff72431fffb06925cad00a23dce079ed4354f61030ad5abdb78829.txt
License-File: THIRD_PARTY_LICENSES/texts/f0f2b1f498ed9a6af37f46b3b2cf656f08b6067bc79ce1e52ce97531a5b77672.txt
License-File: THIRD_PARTY_LICENSES/texts/f367c1b8e1aa262435251e442901da4607b4650e0e63a026f5044473ecfb90f2.txt
License-File: THIRD_PARTY_LICENSES/texts/f51ac2c59a222f7476ce507ca879960e2b64ea64bb2786eefdbeb7b0b538d1b7.txt
License-File: THIRD_PARTY_LICENSES/texts/f59bcb1c02654665f78a5f290bae76b6358137675f6459f51e6d474a4623d8ea.txt
License-File: THIRD_PARTY_LICENSES/texts/f6d3f84b39d597c19748c6b50a04abe1634edb3c0b15392daa217ec44119f652.txt
License-File: THIRD_PARTY_LICENSES/texts/f7715d38a3fa1b4ac97c5729740752505a39cb92ee83ab5b102aeb5eaa7cdea4.txt
License-File: THIRD_PARTY_LICENSES/texts/f790cc576999f5998c766d3d26d7d64dc368e805a98461484f65e8d961ec6d9f.txt
License-File: THIRD_PARTY_LICENSES/texts/f7db81051789b729fea528a63ec4c938fdcb93d9d61d97dc8cc2e9df6d47f2a1.txt
License-File: THIRD_PARTY_LICENSES/texts/f9c375a1be4a41f7b70301dd83c91cb89e41567478859b77eef375a52d782505.txt
License-File: THIRD_PARTY_LICENSES/texts/fb77f0a9c53e473abe5103c8632ef9f0f2874d4fb3f17cb2d8c661aab9cee9d7.txt
License-File: THIRD_PARTY_LICENSES/texts/ff3f1cd12af8866d9bde961d6cc40df774cd131d484de31d3170c4b02b21a7b5.txt
License-File: THIRD_PARTY_LICENSES/texts/ff7b7d58d69a53ebad234527530bdd67d459ca8b6f0d6de34b769610d5fee481.txt
License-File: THIRD_PARTY_LICENSES/texts/ff8f68cb076caf8cefe7a6430d4ac086ce6af2ca8ce2c4e5a2004d4552ef52a2.txt
License-File: THIRD_PARTY_LICENSES/texts/ff92bed461f50338dd703a9ba9aee496a425957873df1d91192776e4bdf5dda7.txt
Provides-Extra: materialization
Requires-Dist: numpy; extra == "materialization"
Requires-Dist: pandas; extra == "materialization"
Requires-Dist: pyarrow; extra == "materialization"
Dynamic: license-file

# ShardLoom Python

This package provides a Python client for ShardLoom, a Vortex-native,
no-fallback, evidence-certified local compute engine. Its default transport
invokes the workspace `shardloom` CLI with `--format json`, parses the stable
`OutputEnvelope`, and preserves typed result/artifact/certificate payloads,
diagnostics, fallback status, and the temporary legacy field mirror. Current
source builds also include an optional in-process native binding for direct
plans and results; see [Source-only native Python API](#source-only-native-python-api).

Importing the package has no ShardLoom side effects. Work begins only when a
caller explicitly invokes a client command, native operation, or scoped Python
helper. The default client transport remains `subprocess`.

Public status is owned by `docs/release/public-status-matrix.md`. This README may describe scoped
local Python surfaces, the current source version, and the approved package track, but it does not
authorize production support, performance claims, Spark displacement, or hidden external execution.

## Local Use

From the repository root:

```powershell
$env:PYTHONPATH = "python\src"
python -c "from shardloom import ShardLoomClient; print(ShardLoomClient.from_repo().status().status)"
```

Or install the source-tree package in editable mode for notebook, job, or
Foundry-style imports:

```powershell
python -m pip install -e python
```

The current published local-engine release is 0.5.1, with verified GitHub, TestPyPI, PyPI and
Homebrew access. The source package reports its version through `shardloom.__version__`;
development checkouts should use editable installs so Python and CLI revisions remain aligned.
Operational hardening is in progress. The technical-preview designation refers to the remaining local workload,
resource and failure acceptance in the
[exit criteria](../docs/release/production-certification-gate.md#local-engine-preview-exit-criteria).
Package access does not imply production readiness, broad runtime support, or performance claims.

## Source-only native Python API

The current source tree includes the optional `shardloom.native` API for
direct in-process `Session`, typed `Relation`/`Expression`, `Plan`, and retained
`Result` objects. This extension is not part of the published 0.5.1 package;
follow the [native source build and isolated install instructions](../docs/getting-started/source-checkout-install.md#optional-native-python-binding).
The [local acceptance report](../docs/benchmarks/native-python-surface-2026-10-11.md)
records complete results, ownership/failure checks and paired Python workflows.
The ordinary `ShardLoomClient` continues to use the subprocess transport by
default. Select `transport="native"` explicitly to run its shared workflow
surface in process. Existing high-level DataFrame expression builders still
produce SQL declarations; `shardloom.native.Relation` is the explicit optional
typed-plan API.

Relation and expression constructors describe work without opening a source.
Give the session an explicit allocation, admit a range source, bind it to a typed
scan, and collect a result. Arrow is used here as an explicit columnar export
boundary:

```python
import pyarrow as pa
from shardloom.native import ExecutionResources, Relation, Session, col, lit

resources = ExecutionResources(256 << 20, 2)
session = Session(resources)
source = session.from_range("value", 0, 1, 100)
relation = (
    Relation.scan("memory://values")
    .filter(col("value") >= lit(10))
    .project([("value", col("value"))])
)
plan = session.plan(relation, sources=[("memory://values", source)])
result = plan.collect()
session.close()

# A completed result retains its native owner and remains exportable after close.
table = pa.RecordBatchReader.from_stream(result).read_all()
```

`Session.close()` prevents new work and cancels active work; completed results
remain valid while retained. `session.from_arrow(producer)` accepts columnar
input through Arrow's stream interface. Python row objects are a separate,
explicit endpoint: call `result.row_export()` when Python rows are needed.
Arrow export and native execution do not construct those row objects. Imported
foreign buffers are copied into admitted native ownership when safe borrowing is
unavailable; encoded Vortex values may require conversion at the Arrow boundary.
The measured Python workflows have their own recorded scope and do not establish
an ingest, Full43 or general query-kernel speedup. Local wheel proof does not
establish public package or platform readiness.

Native ShardLoom results and sources can be passed directly to
`Session.from_arrow` or `ctx.from_arrow_table` with the native transport;
they do not need an Arrow export first. Same-session sources share ownership.
Transfers between sessions copy supported encoded buffers into the receiving
allocation and keep a receipt of intake work. Later queries reuse that source.

For an independent Vortex producer, the source-only
`ctx.from_vortex_ipc(array_message, dtype_message=dtype_message)` helper
accepts complete framed messages for the pinned Vortex provider as immutable
Python `bytes`.
The same helper is available on `shardloom` and native `Session`.
Use `transport="native"` and an explicit resource allocation. Both messages
together may occupy at most 64 MiB. Intake validates the admitted schema and
encoding tree, discards incoming statistics, and copies under the receiving
grant; it does not require PyArrow. Native files continue through
`read_vortex`. See the [encoded transfer and IPC contract](../docs/architecture/native-encoded-interchange-2026-10-12.md)
for exact types, encodings and limits.

## CLI-backed client installation and configuration

```sh
python -m pip install shardloom
```

Published supported-platform wheels resolve the packaged CLI before falling back to `PATH`.
Explicit binary/env/source configuration still wins. Use `SHARDLOOM_BIN` only when you want to pin a
specific CLI binary or when installing from a source distribution without a bundled platform CLI:

```powershell
$env:SHARDLOOM_BIN = "target\release\shardloom.exe"
```

Or pass an explicit binary:

```python
from shardloom import ShardLoomClient

client = ShardLoomClient(binary="target/release/shardloom")
print(client.status().status)
```

`ShardLoomClient.from_repo()` looks for `target/release/shardloom` and then
`target/debug/shardloom` when a command is invoked. It does not run commands or
probe the repository at import time.

`ShardLoomClient.from_env()` is the import-friendly constructor for managed
Python environments. It reads configuration only and does not run commands:

```python
from shardloom import ShardLoomClient

client = ShardLoomClient.from_env()
smoke = client.smoke_check()
print(smoke.commands)
print(smoke.deployment_capabilities.field("surface_components"))
print(smoke.fallback_attempted)
```

Supported environment variables:

- `SHARDLOOM_BIN`: explicit `shardloom` CLI binary path.
- `SHARDLOOM_REPO_ROOT`: source checkout containing `target/<profile>/shardloom`.
- `SHARDLOOM_PROFILE_ORDER`: comma-separated target profile order, for example `release,debug`.
- `SHARDLOOM_TIMEOUT_SECONDS`: per-command subprocess timeout.

If no CLI binary is available, explicit client commands raise
`ShardLoomBinaryNotFoundError` with installation/configuration guidance instead
of leaking a raw subprocess error. The exception carries deterministic
no-fallback diagnostics plus a `shardloom.output.v2`-shaped error payload via
`to_error_payload(command)` for agents and wrappers that need protocol-shaped
missing-binary evidence. Importing the package and constructing
`ShardLoomClient.from_env()` remain side-effect-free.

For the CG-21 user workflow surface, use `shardloom.context()` when you want a
short import-friendly entry point for smoke checks and capability discovery:

```python
import shardloom as sl

ctx = sl.context()
smoke = ctx.smoke_check()
capabilities = ctx.capabilities()

print(smoke.python_package_version)
print(smoke.resolved_cli_path)
print(smoke.protocol_version)
print(smoke.fallback_attempted)
print(capabilities.python.field("scope"))
print(capabilities.sql_support.capability_state)
print(capabilities.fallback_attempted)
```

Constructing the context does not run ShardLoom, inspect datasets, probe object
stores, touch catalogs, execute SQL, or invoke external engines. The explicit
`smoke_check()` and `capabilities()` methods run only no-dataset CLI JSON
commands and preserve no-fallback status.

Capability views also expose a normalized posture object so Python callers can
inspect support, claim, runtime, effect, and policy state without scraping raw
CLI text:

```python
posture = capabilities.sql_support.posture

print(posture.support_status)
print(posture.claim_gate_status)
print(posture.report_only, posture.unsupported, posture.claim_grade)
print(posture.runtime_execution)
print(posture.data_read, posture.write_io, posture.object_store_io)
print(posture.fallback_attempted, posture.external_engine_invoked)
print(posture.required_evidence)
```

The posture view does not widen runtime support. It is a typed convenience
surface over existing `OutputEnvelope` fields and diagnostics. Unsupported or
report-only scopes remain unsupported or report-only, and
`fallback_attempted=false` / `external_engine_invoked=false` stay visible.

Use `ctx.user_surface_graduation_matrix()` to decide whether a Python or CLI
surface belongs on the ergonomic context path. The matrix uses five postures:
`high_level_context`, `client_only`, `diagnostic_only`, `feature_gated`, and
`not_user_facing`. `high_level_context` rows are the scoped workflows promoted
for normal context use; `client_only` rows stay explicit lower-level CLI/client
access; `diagnostic_only` and `feature_gated` rows must not be described as
runtime support without the matching evidence.

For normal Python use, start from the simple context and query surface. `repo_root` and
`profile_order` are optional development configuration overrides, not arguments users should have
to put in ordinary application code. Source-tree or CI runs can set `SHARDLOOM_BIN` or
`SHARDLOOM_REPO_ROOT` in the environment when the CLI is not on `PATH`.

`ctx.read(path)` is the normal public read wrapper. It infers `.csv`, `.json`, `.jsonl`, `.ndjson`,
`.parquet`, `.arrow`, `.ipc`, `.feather`, `.avro`, `.orc`, and `.vortex` local source adapters from
the path extension. Explicit helpers such as `read_csv(...)`, `read_json(...)`,
`read_parquet(...)`, `read_arrow_ipc(...)`, `read_avro(...)`, and `read_orc(...)` remain available
for compatibility, tests, and schema-pinned examples. The context returns a lazy query that uses
the shared native workflow for admitted work. Collection returns the complete typed result; a
write executes the same query into the declared sink.

The resource-configured examples in this guide use the current source build.
Published v0.5.1 packages retain their release-time API. Build and install the
matching source revisions using the
[source checkout guide](../docs/getting-started/source-checkout-install.md).
The example allocation of 16 GiB and 8 lanes is an illustrative caller choice.

```python
import shardloom as sl

ctx = sl.context(memory_gb=16, max_parallelism=8)
result = (
    ctx.read("target/orders.csv")
    .filter(sl.col("amount") >= 10)
    .select("id", "amount")
    .limit(100)
    .collect()
)

print(result.status)
print(result.result_rows)
print(result.fallback_attempted, result.external_engine_invoked)
```

`VortexWorkflowExecutionReport` exposes the result envelope and, for writes, fields such as
`output_path`, `rows_written`, `output_commit_status`, and
`native_io_certificate_status`. Use `status`, `fallback_attempted`,
`external_engine_invoked`, and `claim_gate_status` for execution posture. Exact fields depend on the
operation and sink; report-only capability views are not runtime evidence.

The same query shape can read admitted local formats through `ctx.read(...)` or the explicit
format helpers. CSV, flat JSON/JSONL/NDJSON, generated rows, and scoped local Vortex inputs are
the default public examples. Parquet, Arrow IPC/Feather, Avro, and ORC are admitted scoped
local-format surfaces when the matching feature-gated build is present; builds without those
readers return deterministic adapter blockers instead of invoking another engine. Compatibility
exports such as `write_json(...)`, `write_jsonl(...)`, `write_csv(...)`, feature-gated
Parquet/Arrow IPC/Avro/ORC writers, `write_vortex(...)`, and fanout use the same public workflow.
Admission depends on the selected input, operation, output format, and enabled build features;
unsupported combinations return a deterministic report.
Format-specific behavior belongs at read/ingest and write/sink boundaries only; compute semantics
should lower through the shared ShardLoom/Vortex runtime or return a deterministic unsupported
report.
Agents and automation should use `docs/reference/shardloom-user-surface-index.md` and
`docs/reference/shardloom-user-surface-index.json` as the canonical map of Python, SQL, CLI,
generated-source, materialization, and deterministic blocker surfaces.
The canonical local output/sink scope is `docs/architecture/v1-local-output-sink-scope.md`; inspect
it with `ctx.local_output_sink_scope_report()` before treating a write helper as broader than its
scoped local evidence.

SQL and DataFrame collection, `run()`, `route()` and local writers accept the same
`memory_gb` and `max_parallelism` request. Writer aliases preserve these settings.
Flat aggregate chains retain filters, grouping, measures, HAVING, ordering and
limits through the same native admission for collection and all eight writers.
Declared compatibility schemas are preserved, including files whose names do not
identify their format. SQL `NULLS FIRST`/`NULLS LAST` and DataFrame
`sort(..., nulls="first")` or `nulls="last"` place nulls independently of ASC/DESC.
Small aggregate collection returns every row within 65,536 rows and 8 MiB of
JSONL, including escaping; larger complete results use the existing writers.
For admitted ordering, `spill` explicitly permits temporary native Vortex runs in
an existing absolute local directory:

```python
spill = {"workspace": "/tmp/shardloom-query-work", "quota_bytes": 64 << 20,
         "buffer_bytes": 2 << 20}
ordered = ctx.read_vortex("shipments.vortex").limit(250_000).sort(
    "priority", "label", nulls="last",
)
ordered.write_parquet("ordered.parquet", memory_gb=1, max_parallelism=2, spill=spill)
```

Create the workspace before execution. `route()` validates the declaration without
probing or creating it. Composed relational ordering, general aggregation, joins and analytic windows use
`buffer_bytes` as a retained-input flush threshold within one query memory grant; specialized numeric sort and
aggregate providers use their existing operator-memory admission. Native sort spill
also applies to the flat typed keys scoped by the [typed key contract](../docs/architecture/native-typed-keys-2026-10-03.md).
Supported keys,
minimum buffers and spill families remain provider-specific. The general aggregate,
join and analytic-window strategies use the same explicit policy. A spill request does not enable
pivot or set state spill or fanout, relax collection limits, or
establish an RSS bound. Successful writes require verified spill cleanup before
publication. See `docs/reference/native-query-spill.md` for exact contracts.

Bounded materialization is explicit. Local-source workflows can carry a `limit(...)` or pass
`collect(limit=...)`; SQL workflows can also pass `collect(limit=...)` or chain
`.limit(...).collect()`. Those admitted routes return typed report rows from the ShardLoom CLI
envelope. Decoded Python-object, pandas, Arrow, NumPy, and notebook materialization helpers are
bounded container/output boundaries over the admitted ShardLoom result; optional packages are never
used as execution engines and missing packages return deterministic diagnostics:

```python
ctx = sl.context(memory_gb=16, max_parallelism=8)
preview_report = (
    ctx.read("target/orders.csv")
    .select("id", "amount")
    .limit(20)
    .collect()
)
print(preview_report.result_rows)

rows = ctx.read("target/orders.csv").select("id").limit(20).to_python_objects()
print(rows)

pandas_view = ctx.read("target/orders.csv").select("id").limit(20).to_pandas(check=True)
print(pandas_view)
```

For workflows that need caller-scoped reuse evidence, `ctx.session(...)` and `sl.session(...)` expose
the same local read/SQL shapes as session-bound workflows:

```python
with ctx.session(session_id="orders-run", memory_gb=16, max_parallelism=8) as sess:
    result = (
        sess.read_csv("target/orders.csv")
        .select("id", "amount")
        .limit(100)
        .collect()
    )
    repeat = sess.sql("SELECT id FROM 'target/orders.csv' LIMIT 100").collect()
    print(result.reuse_hit, repeat.source_state_reuse_hit)
```

The session is explicit, caller-owned, and closeable. Its client owns a native worker that can
reuse admitted source and prepared query state. Every collection executes the query again;
query answers are not cached. Collection, writes and fanout use the same native workflow.
Explicit `ctx.prepare_vortex(...)` calls also track source and prepared-artifact fingerprints
for reuse. Session lifetime and reuse evidence do not establish a performance claim.

`memory_gb` and `max_parallelism` define an operation's explicit allocation. Configure them once on a context or session, or pass them to a terminal call. Execution, data inspection, and preparation require both values; lazy query construction and inert discovery remain resource-free. The 16 GiB and 8 lanes used in examples below are illustrative caller choices, not recommended defaults or measurements.

For deliberate environment-based configuration, call `ExecutionResources.from_env()` explicitly. It requires `SHARDLOOM_MEMORY_GB` or `SHARDLOOM_MEMORY_BYTES` together with `SHARDLOOM_MAX_PARALLELISM`; missing or invalid values raise `ShardLoomResourceConfigurationError` rather than selecting a fallback allocation:

```python
from shardloom import ExecutionResources, context

ctx = context(resources=ExecutionResources.from_env())
```

Environment configuration is loaded only by that explicit call; importing ShardLoom or constructing an ordinary context does not read resource variables.

`memory_gb` means GiB (2^30 bytes). Use `memory_bytes` instead when an allocation
is not a whole GiB; supplying both spellings is an error. A call can override
one configured field and inherit the other. Any `ExecutionResourceLimits`
attached to the context or supplied allocation still applies; an override cannot
remove or raise those ceilings. Platforms can supply `ExecutionResources` with
`platform` origins through this same interface. Origin records the caller's
declaration and does not authenticate a platform.

Execution reports distinguish `execution_resource_declared_*` from
`execution_resource_admitted_*` and `execution_resource_observed_*`. Native
reservation counters cover the reported pool lifetime, including retained
owners. They do not measure whole-process memory. Unmeasured lane use, process
RSS and spill bytes remain `unavailable`. Where the weighted-count spill path
measures bytes written, the count covers native payload writes and excludes
workspace markers and filesystem overhead. The adjacent observation-scope
fields explain each counter. See the
[required-resource contract](../docs/architecture/required-execution-resources-2026-10-10.md).

The runtime selects CPU concurrency within the supplied maximum and the CPU
capacity available to the process. Ingestion shares that grant among ready source,
conversion and writer work, with memory-admitted task windows. This works for
arbitrary positive allocations; P4/P6/P8 are examples. I/O, serial readers and
memory constraints can limit useful concurrency. The accounted memory budget
does not include every upstream allocation or establish a process RSS limit.

For the CLI-visible session lifecycle proof, `ShardLoomClient.session_cache_smoke()` runs
`session-cache-smoke --format json` and returns a typed `SessionCacheSmokeReport`. That smoke
exercises scoped SourceState, `VortexPreparedState`, OutputPlan, schema-cache, dictionary-cache,
fingerprint invalidation, scratch-buffer reuse accounting, optimizer-trace linkage, explicit close,
and cleanup evidence. It is local and claim-gated; persistent cross-process cache,
object-store/table reuse, and non-local workflow reuse remain outside this scoped session surface.

The explicit prepare-once Vortex lifecycle is available for advanced validation through a
feature-gated CLI/Python surface. Build the CLI with `--features vortex-write`, then call
`ctx.read_csv(...).prepare_vortex(workspace=...)` for a prepared source,
`ctx.read_csv(...).prepare_vortex(workspace=...).query(...).collect()` for the public
Prepare-Once First Query route,
`ctx.from_rows(...).prepare_vortex(workspace=...)`,
`ShardLoomClient.vortex_prepare(...)`, or `ctx.prepare_vortex(...)` when you intentionally need
to inspect the `UniversalIngress -> SourceState -> vortex_ingest -> VortexPreparedState` boundary:

```powershell
@"
id,label,amount
1,alpha,8
2,beta,15
"@ | Set-Content -Encoding utf8 target\vortex-ingest-source.csv

cargo run -q -p shardloom-cli --features vortex-write -- `
  vortex-prepare target\vortex-ingest-source.csv target\vortex-ingest-source.vortex `
  --allow-overwrite --memory-gb 16 --max-parallelism 8 --format json

$env:PYTHONPATH = "python\src"
$env:SHARDLOOM_REPO_ROOT = "."
python -c "from shardloom import context; ctx=context(repo_root='.', memory_gb=16, max_parallelism=8); r=ctx.read_csv('target/vortex-ingest-source.csv').prepare_vortex(workspace='target/shardloom-prepared', allow_overwrite=True); print(r.vortex_ingest_status, r.prepared_state_created, r.prepared_state_reuse_hit, r.prepared_state_reuse_reason, r.fallback_attempted, r.external_engine_invoked)"
```

Default CLI builds return a deterministic feature-gate blocker instead of writing an artifact. This
path is a local fixture smoke; it is not the primary user API, broad Vortex writer support,
object-store/table output support, production SQL/DataFrame support, or a performance claim.
`LazyFrame.prepare_vortex(...)` is the higher-level local `auto` source front door: it derives
`<workspace>/<source-stem>.vortex` when a workspace is supplied, calls the real Rust
`vortex-prepare` route, and exposes `prepared_state_reuse_hit`,
`prepared_state_reuse_reason`, `prepared_state_reuse_manifest_digest`, and
`prepared_state_invalidation_reason` through typed properties. It prepares the raw local source
before query operators; use `.write_vortex(...)` when the desired artifact is a query-result sink.
Generated-source `prepare_vortex(...)` uses the existing generated-source Vortex writer and returns
a `GeneratedSourceWriteReport` with `prepared_state_created` and manifest-backed reuse fields.
Repeated compatible generated-source preparation reuses the caller-owned local `.vortex` artifact
through the artifact-adjacent manifest, reports `prepared_state_reuse_hit=true`, and skips the
writer/reopen path when schema, row payload, plan, policy, and artifact fingerprints still match.
The route capability report exposes both public prepared front doors as machine-readable rows:

```python
routes = ctx.user_route_capability_report()

for row in routes.public_front_door_route_rows:
    print(row.front_door_id, row.public_user_surface, row.prepared_state_reuse_scope)
```

Those rows are route guidance and release-readiness evidence. They do not run a benchmark or allow
performance, production, or Spark-replacement claims.
The benchmark publication bundle mirrors them as `public_front_door_benchmark_rows`, where they are
route-identity rows rather than timing rows. The website uses those rows to show each public Python
prepared front door beside its owning route lane, timing boundary, reuse manifest scope, and
no-fallback evidence.
When capillary preparation is admitted, the report exposes
`vortex_capillary_preparation_prewrite_status`,
`vortex_capillary_preparation_prewrite_scheduler_applied`, and pre-write gate fields for array
build, write, reopen, and sink evidence so Python callers can see whether PulseWeave-shaped work
windows affected the local route before artifact creation.

For one concrete request, use the public workflow facade. `route()` is side-effect-free: it does
not read the input, write outputs, run SQL, or invoke external engines. `run()` and `prepare(...)`
execute only admitted ShardLoom-native wrapper paths and attach the same route metadata to the
runtime or preparation envelope:

```python
import shardloom as sl

ctx = sl.context(memory_gb=16, max_parallelism=8)
sql_route = ctx.sql("SELECT id FROM 'target/orders.csv' LIMIT 10").route()
df_route = ctx.read("target/orders.csv").select("id").limit(10).route()
execution = ctx.read("target/orders.csv").select("id").limit(10).run()
prepared = ctx.read_csv("target/orders.csv").prepare("target/orders.vortex")
native_vortex = ctx.client.public_workflow_run(
    "cli",
    input_uri="shardloom-vortex/tests/fixtures/local_primitive_struct_five.vortex",
    input_format="vortex",
    requested_output="collect",
    execution_policy="native_vortex",
    materialization_policy="zero_decode",
    evidence_level="runtime_smoke",
    bounded=True,
    vortex_primitive="filter_project",
    vortex_predicate="gte:value:3",
    vortex_columns=("metric",),
    vortex_source_order_limit=2,
    memory_gb=1,
    max_parallelism=2,
)

print(sql_route.route_id, sql_route.resolved_internal_command)
print(df_route.route_id, df_route.resolved_internal_command)
print(sql_route.fallback_attempted, sql_route.external_engine_invoked)
print(sql_route.side_effect_free, sql_route.blocker_id)
print(execution.facade_command, execution.route_id, execution.runtime_execution)
print(prepared.facade_command, prepared.route_id, prepared.preparation_included)
print(native_vortex.command, native_vortex.route_id, native_vortex.vortex_primitive)
```

For direct `.vortex` inputs, `route()` and `run()` infer the admitted primitive/provider payloads
for scoped count/filter/project/limit, no-argument row-level distinct, bounded source-order tail,
deterministic row-count
`sample(n=..., seed=...|random_state=<int>, weights="<numeric-column>", replace=False|True)` or
fractional
`sample(frac|fraction=..., seed=...|random_state=<int>, weights="<numeric-column>", replace=False|True)`,
and exact benchmark-family grouped aggregate, hash join, global top-N, cast/try-cast,
substring contains, and native
`write_vortex` sink shapes. Manual
`vortex_primitive` and `native_vortex_provider_scenario` arguments remain available on
`ctx.client.public_workflow_*` for low-level diagnostics, but normal Python/SQL facades route the
admitted shapes without requiring those flags.

Unbounded collect requests block at route admission and keep
`runtime_execution=false`, `fallback_attempted=false`, and `external_engine_invoked=false` in the
envelope. The equivalent CLI surfaces are
`shardloom route <sql|python|dataframe|cli> --format json`,
`shardloom run <sql|python|dataframe|cli> --format json`, and
`shardloom prepare <sql|python|dataframe|cli> --format json`.
Lazy DataFrame bounded `collect()` and admitted generated-source/source-free writes route through
the public `run` facade and return existing typed reports with attached `public_workflow_*` route
fields. `write_vortex(...)` remains the highest-fidelity native sink when the upstream provider
route is admitted. Exact provider-backed result summaries can export bounded `result_json` to
workspace-safe JSONL/CSV. Ordinary SQL/generated local result sinks and primitive
filter/project/filter-project row streams also admit JSON arrays; scoped primitive
filter/project/filter-project/distinct/tail/sample row streams can export JSONL/CSV or JSONL+CSV
fanout through `native_vortex_primitive_row_export`.
JSON and JSONL text outputs do not preserve static type or Vortex layout metadata. Broader
compatibility writes such as arbitrary `write(...)`, structured write aliases, unsupported formats,
and unsafe or non-admitted fanout return deterministic blockers until a native Vortex sink/export
route exists for the normalized plan. Native Vortex primitive and promoted provider helpers attach
the inferred route payloads to the same facade rather than relying on a separate payload-only path.

Admitted native DISTINCT, `drop_duplicates`, `duplicated`, tail, sample, scalar rewrites,
melt, explode, rolling and pivot collections now include their complete rows. Read
`report.result_rows` or call `to_python_objects()`; accessing an existing report does
not execute the query again. Repeated identical collections reuse the opened source
and prepared operation while computing fresh results. Source replacement fails the
current call; a later explicit call can prepare the changed source.

```python
workflow = (
    ctx.read_vortex("cargo.vortex")
    .select(["cargo_id", "load_units"])
    .drop_duplicates(subset=["cargo_id"], keep="last")
)
report = workflow.collect()
print(report.result_rows)
workflow.write_vortex("deduplicated-cargo.vortex")
```

These collections admit at most 65,536 rows and 8 MiB of JSONL. Current source
builds admit top-level field metadata through the shared memory grant.
Larger results use bounded batches through `write_vortex`, `write_parquet`,
`write_arrow_ipc`, `write_avro`, `write_orc`, `write_json`, `write_jsonl` or `write_csv`,
subject to each format's dtype contract and the operation's state budget. Native
Vortex and text output admit supported mixed scalar melt/pivot results; mixed Variant
columns are not general binary compatibility output support.

v0.5.1 supports incremental Python consumption through
`iter_batches`, merged in PR #1526 after complete local and hosted checks.
Use a context manager so stopping early cancels and drains the owned
operation. Batches remain provisional until full exhaustion and a final report:

```python
with workflow.iter_batches(batch_rows=1024) as batches:
    for batch in batches:
        print(batch.result_rows)
    assert batches.report is not None
```

`sl.from_batches(producer, schema={"id": "int64", "label": "utf8"})` and
`ctx.from_batches(...)` declare resident input from sequences of row mappings.
Pass a factory returning fresh batches for repeated execution, or an iterable
for one execution. Declaration does not call the producer. Current source builds
after v0.5.1 admit explicit exact-width signed and unsigned integers, finite
Float32/Float64, Boolean, UTF8, binary, Decimal128, Date32, timezone-free
microsecond timestamps, lists, fixed-size lists and ordered structs. The original
four scalar declarations, aliases and inference remain compatible; rich types
require an explicit schema. Each batch has at most 2,048 rows and an 8 MiB frame.
Current source builds admit field and retained batch metadata through the shared
memory grant, with no fixed total field or batch count. In default resident mode
(`streaming=False`), accumulated native input must fit that grant. Published
v0.5.1 artifacts retain their release-time input types and limits. Output supports
the existing admitted typed/nested schemas, with the same 2,048-row / 8-MiB payload ceiling.
Current source builds normalize admitted compatibility file inputs to Vortex
inside the same cancellable batch transaction and native memory allocation.
The [composition contract](../docs/architecture/native-stream-input-composition-2026-10-13.md)
records this preparation lifecycle and the independent completion of each producer.
See the [complete batch contract and example](../docs/architecture/native-bounded-adapters-2026-10-06.md)
for backpressure, conversions, timeout scope and final-validation semantics.
The [input growth contract](../docs/architecture/native-input-growth-2026-10-09.md)
applies to source builds after the 0.5.1 release; published 0.5.1 artifacts retain
their release-time limits. Schema declarations still have an 8 MiB envelope.

`from_rows` and `from_batches` share the native memory-input schema. For example,
an explicit schema can preserve a full-width unsigned identifier and binary bytes:

```python
frame = ctx.from_rows(
    [{"id": 2**64 - 1, "payload": b"\x00"}],
    schema={"id": {"type": "uint64", "nullable": False}, "payload": "binary"},
)
```

The [typed native input contract](../docs/architecture/native-typed-input-2026-10-10.md)
defines schema syntax, value conversion, nullability and the admitted recursive types.
Python object results use `date`/`datetime` where Python's calendar can represent
the value; other valid temporal values remain exact integer epoch days or
microseconds, including nested fields. The
[complete typed-input acceptance](../docs/benchmarks/native-typed-input-2026-10-10.md)
records complete values, writer fidelity, failure controls and the review correction.
This source capability does not change the published v0.5.1 packages.

Current source builds also accept `streaming=True` for distinct finite batch sources,
each consumed once through scan/filter/project, global sorting, aggregation, joins, windows,
dynamic pivot and limits, alongside ordinary native file or resident sources.
This can process cumulative input larger than the native grant by retaining at
most one original native input batch. Retained replay and operator state share that grant; ordering,
general aggregation, joins, windows and relational pivot support an explicit native spill policy.
For example:

```python
def incoming_rows():
    yield [{"id": 1, "label": "kept"}]
    yield [{"id": 2, "label": None}]

frame = sl.from_batches(
    incoming_rows, schema={"id": "int64", "label": "utf8"}, streaming=True,
    memory_gb=16, max_parallelism=8,
).filter(sl.col("id") == 1)
with frame.iter_batches() as batches:
    for batch in batches:
        print(batch.result_rows)
    assert batches.report is not None
```

The complete output is `[{"id": 1, "label": "kept"}]`. Streaming admits
incremental results, bounded small collection, or one native Vortex destination.
All seven join kinds admit the batch source on either side, and admitted analytic
windows preserve frame state across input batches. Dynamic pivot discovers its
columns and completes native pivot state in one pass before downstream output.
Distinct streamed pivots and successive pivot stages can compose in one operation.
Repeated references and self-joins consume each producer once and replay its
complete schema from credited native arrays. Explicit spill permits query-local
native replay runs under the same disk quota. Replay is confined to one execution;
a factory still provides fresh input for a later execution. Sets and other unsupported
stateful/correlated subtrees reject before their producer consumption. A missing
downstream pivot column can fail after discovery has consumed its input; that
failure publishes no destination or final success. Limits and offsets
apply to the complete relation and drain every producer, including `LIMIT 0`.
Each producer must reach its own explicit end event before results are final; earlier
batches remain provisional and late failures remain failures.

The per-batch row and frame bounds still apply, with a separate 16 MiB wire-frame
ceiling and 32 MiB native logical-intake limit per batch. Current source builds
admit cumulative batches and field metadata through the shared grant.
Typed intake and output compaction are charged copies; output reservations
and native sink metadata remain separate. Replay copies and passes have separate
`native_input_replay_*` counters; ordinary one-pass sources keep no replay cache.
The grant is not a process-RSS ceiling. See the
[composition contract](../docs/architecture/native-stream-input-composition-2026-10-13.md),
[streamed ordering contract](../docs/architecture/native-streamed-ordering-2026-10-07.md),
[general aggregate contract](../docs/architecture/native-aggregate-pressure-2026-10-07.md),
[join contract](../docs/architecture/native-join-pressure-2026-10-08.md),
[window contract and example](../docs/reference/native-query-spill.md#analytic-windows-and-finite-streamed-input),
[spill example](../docs/reference/native-query-spill.md#general-aggregation-and-completion-aware-input)
and [local acceptance evidence](../docs/benchmarks/native-stateful-aggregation-ordering-2026-10-08.md).
Both batch modes are included in v0.5.1.

Current source builds compose flat-scalar DISTINCT, `drop_duplicates`, `duplicated`,
tail, sample, scalar rewrites, melt and rolling with admitted filters, projections,
ordering, aggregates, joins and sets. Each operation consumes the preceding stage's
rows and column names. SQL and DataFrame calls carry the same source declarations,
CPU/memory allocation and writer policy through one native execution. Melt can omit
ID columns; inferred value columns come from the preceding output. See the
[composition contract and acceptance](../docs/architecture/native-unary-composition-2026-10-02.md).
Static List/FixedSizeList/Struct payloads compose through admitted relational
stages and ordered/repeated explode. Nested payloads can be written as Vortex,
JSON, JSONL, Arrow IPC, Parquet or Avro when the dtype is representable; nested
CSV translates nested values to quoted JSON text cells without preserving their
logical dtype; ORC rejects nested output. Exploded flat output supports all eight writers.
Current source builds extend relational keys to static List, FixedSizeList and
Struct values for equality, hashing and ordering in the existing join, set,
group, sort, window and subquery kernels. COUNT, COUNT DISTINCT, MIN/MAX,
comparisons, NULL tests and selected CASE/COALESCE/NULLIF results use the same
native nested values. Key schemas must match recursively, including field names
and order, list kind and width, leaf widths, decimal precision/scale and
temporal identity; recursive nullability does not affect key compatibility.
Retained nested values are admitted for DISTINCT/duplicate selection and masks,
tail, sampling, parent-level forward fill (a NULL parent takes the prior
complete value; child NULLs do not trigger filling), lossless same-shape melt
and rolling COUNT. See the [nested key and retained-state contract](../docs/architecture/native-nested-keys-state-2026-10-04.md);
it is merged with complete local and hosted check evidence. General Variant/extension
operations, nested arithmetic/string operations, wider analytic-window behavior,
adapters and unadmitted stateful pressure shapes remain outside this
scope. Scalar pivot retains its declared type/domain restrictions. v0.5.1 also admits static List, FixedSizeList and
Struct pivot roles; the finite type and policy boundaries are described below.
See also the
[nested payload contract](../docs/architecture/native-nested-composition-2026-10-02.md).
Binary, Decimal128 (precision 1–38, scale 0–precision), Date32 and timezone-free
microsecond timestamps can travel as payloads, including nested leaves. Their
flat equality, hashing and ordering are admitted for relational joins, sets,
groups, windows and subqueries, with COUNT/COUNT DISTINCT/MIN/MAX and scoped
comparisons and expressions; Decimal key precision and scale must match.
Nested keys follow the subsequent contract above. Current source
builds admit typed literals, explicit CAST/TRY_CAST, exact decimal
arithmetic/rounding and scoped binary/calendar functions through the shared
native expression binder. Decimal arithmetic output metadata binds before
execution; explicit decimal downscaling requires zero discarded digits. Key
compatibility still requires matching decimal precision/scale and preserves
distinct temporal types. Wider analytic-window semantics, broader adapters
and state spill remain separate. See the [typed expression contract](../docs/architecture/native-typed-expressions-2026-10-03.md).
Flat typed values also retain exact logical types through duplicate selection and
masks, tail/sample, replacement/forward-fill, lossless melt, rolling COUNT and
scoped pivot first/first-unique/COUNT. Python bytes, Decimal, date and datetime
declare exact native literals. Decimal rewrites reuse checked native arithmetic;
primitive predicate and typed sampling-weight restrictions remain.
See the [typed unary contract](../docs/architecture/native-typed-unary-2026-10-03.md).
Computed aggregate arguments and exact decimal aggregate, rolling and scalar
pivot reductions now have complete local acceptance through the shared native
engine. SUM uses precision 38 at the input scale; AVG uses precision 38 at
`max(input_scale,6)` and rejects inexact division. Final overflow fails explicitly.
ARRAY/STRUCT constructors preserve admitted logical child types. The
[revised engine report](../docs/benchmarks/native-typed-reductions-full43-2026-10-05.md)
records 20,445 public checks, 202 direct checks and all 129 Full43 executions,
with no benchmark-specific executor or external fallback.
See the [typed key contract](../docs/architecture/native-typed-keys-2026-10-03.md).
Binary supports all eight writers; ORC rejects decimal and temporal payloads. JSON/JSONL and collection
encode binary as lowercase hex, decimals as `decimal128(precision,scale):unscaled_integer`,
and temporal values as signed integer units. CSV uses the existing JSON scalar
cell convention for binary/decimal strings. Text output does not retain native
logical types. See the [typed payload contract](../docs/architecture/native-typed-payloads-2026-10-03.md).

Current source builds also compose scalar `pivot` and `pivot_table` at their
declared position, including renamed/ordered input, downstream filters,
projections, aggregates, joins, sets, windows, melt and successive pivots. SQL
uses `PIVOT((SELECT ...), '{"index":"entity","columns":"category","values":"amount","aggregate":"sum"}')`.
Observed domains determine the columns during native execution; preparation and
inspection do not read rows to guess them. Empty input keeps its actual index-only
schema, with the declared margins column when requested. Referencing an absent
domain fails explicitly. Correlated inner pivots bind independently for each
outer row. All eight writers accept representable scalar results above the small
collection limit, subject to the existing 128-field and memory limits. File/resident-memory relational pivots can use the explicit
native sparse-state spill policy. Source builds also admit finite streaming
producers through the same dynamic discovery and spill state. Streaming input
retains its incremental/collection/single-Vortex-destination boundary; the broader
ordinary-source composition and writer list above does not widen that contract.
The direct prepared unary path remains resident. See the
[current pivot spill contract](../docs/reference/native-query-spill.md#sparse-pivot-state).

v0.5.1 also admits static List, FixedSizeList and
Struct columns as pivot index, domain and selected-value roles. Complete local
[workflow, resource and regression acceptance](../docs/benchmarks/native-nested-pivot-state-full43-2026-10-06.md)
passes, with hosted integration complete in PR #1525. This support is included
in v0.5.1. Nested cells support `first`, `first_unique`, `count`, `min` and `max`; `first_unique`
accepts repeated equal complete values and rejects conflicts. Nested extrema
skip NULL parents and use the shared child-NULL ordering. Python `pivot()` and
`pivot_table(aggfunc="first")` retain their alias to `first_unique`; SQL's
explicit `first` selects the first row, including a NULL value. Nested cells
accept absent or NULL fill only. Nested SUM/MEAN and nested-index margins remain unsupported. Nested MIN/MAX margins require a UTF-8
index. Representable nested results use Vortex, Parquet,
Arrow IPC, Avro, JSON and JSONL; CSV writes quoted JSON text without preserving
the nested logical dtype, and ORC rejects nested output. Existing 128-field,
collection and memory limits still apply. See the [scalar dynamic pivot
contract](../docs/architecture/native-dynamic-pivot-composition-2026-10-03.md)
and [nested pivot state contract](../docs/architecture/native-nested-pivot-state-2026-10-06.md).

v0.5.1 admits scalar-value subqueries through
SQL `(SELECT ...)` and `sl.scalar_subquery(frame_or_sql_workflow)`. For example:

```python
ctx = sl.context(memory_gb=16, max_parallelism=8)
inner = ctx.sql("SELECT outer.value + 10 AS adjusted")
result = ctx.range(1, 4).with_column("adjusted", sl.scalar_subquery(inner)).collect()
# result.result_rows: value 1, 2, 3 paired with adjusted 11, 12, 13
```

The equivalent SQL is
`SELECT value, (SELECT outer.value + 10 AS adjusted) AS adjusted FROM range(1, 4)`.
The inner query must bind exactly one static output column. Zero rows return a
typed NULL; one row returns its value; multiple rows raise a cardinality error,
even when their values are equal. Correlation uses explicit `outer.<column>`
references. CASE/COALESCE execute only selected branches, while every branch
still requires syntax, source, type and schema admission. Dynamic-pivot-dependent
scalar schemas and lateral relations remain unsupported. Existing dtype, writer
and resource limits apply. See the [scalar-subquery contract and acceptance](../docs/architecture/native-scalar-subqueries-2026-10-05.md).

For explicit preparation, use `LazyFrame.prepare_vortex(...)` or
`ctx.prepare_vortex(source_path, target_path, ...)` with their documented arguments. These are
preparation APIs; ordinary query execution uses the shared workflow below.

Engine intent is explicit. `engine="auto"` selects the current bounded snapshot
batch path when allowed; `live` selects the CG-22 in-memory fixture path for
bounded/unbounded change streams; `hybrid` selects the CG-22 declared Vortex-base
plus in-memory hot-delta fixture for snapshot/bounded base overlays:

```python
import shardloom as sl

ctx = sl.context(engine="live", memory_gb=16, max_parallelism=8)
selection = ctx.engine_selection(
    boundedness="unbounded",
    update_mode="append-only",
    output_mode="changelog",
)
matrix = ctx.engine_capability_matrix()

print(ctx.engine)
print(selection.selection_status)
print(selection.selected_engine_mode)
print(selection.rejection_reasons)
print(matrix.engine_modes)
print(matrix.live_hybrid_claim_blocked_count)
print(matrix.live_hybrid_fabric_gate_rows)
print(matrix.live_hybrid_fabric_gate_claim_gate_status)
print(matrix.live_hybrid_fabric_gate_no_fallback_no_external_engine)
```

These calls do not execute workloads, probe brokers, write checkpoints, invoke
external engines, or attempt fallback. They expose the same CG-22 contract as
`shardloom engine-selection-plan`, `shardloom engine-capability-matrix`, and
`shardloom capabilities engines`.

`ctx.engine_capability_matrix()` also exposes the GAR-0034-A live/hybrid fabric
freshness gate. The gate keeps broker, state-store, object-store, catalog,
production freshness, and exactly-once claims blocked unless future
workload-scoped evidence promotes them, while preserving
`fallback_attempted=false`, `external_engine_invoked=false`, and
`claim_gate_status=not_claim_grade`.

The executable live surface is intentionally narrower: a deterministic
in-memory fixture for filter, project, count, count_where, and group_count. It
does not read brokers or files and does not write checkpoints, but it does emit
freshness, state, continuous-view, execution, and Native I/O certificate fields:

```python
contract = ctx.live_change_contract_plan()
fixture = ctx.live_fixture_run("group-count", "metric")

print(contract.change_record_fields)
print(contract.operations)
print(fixture.output_rows)
print(fixture.all_certified)
print(fixture.fallback_attempted)
```

Equivalent CLI commands:

```powershell
shardloom live-change-contract-plan --format json
shardloom live-fixture-run group-count metric --format json
```

The executable hybrid surface is also fixture-scoped. It merges declared local
Vortex base rows with deterministic hot deltas, applies tombstones/deletion
vectors in memory, and emits delta-overlay, hot/cold contribution,
micro-segment flush, layout-health, freshness, execution, and Native I/O
evidence without reading or writing data:

```python
hybrid = sl.context(engine="hybrid", memory_gb=16, max_parallelism=8).hybrid_overlay_run("group-count", "metric")

print(hybrid.output_rows)
print(hybrid.layout_health_status)
print(hybrid.all_certified)
print(hybrid.write_io)
```

Equivalent CLI command:

```powershell
shardloom hybrid-overlay-run group-count metric --format json
```

The first CG-23 REST/API surface is contract-first. It checks the versioned
OpenAPI `/v1` contract and the discovery-mode `serve` contract without starting
a server, opening a listener, probing datasets, touching object stores, or
executing queries:

```python
api = ctx.rest_api_contract_plan()
discovery = ctx.serve_discovery_contract()
preview = ctx.rest_api_plan_preview("certified-local-batch")
lifecycle = ctx.rest_api_local_lifecycle("certified-local-batch")
events = ctx.rest_api_event_stream("certified-live-fixture")
security = ctx.rest_api_security_governance("safe-local-default")
data_plane = ctx.rest_api_data_plane("standards-matrix")

print(api.openapi_contract_path)
print(api.represented_resources)
print(api.discovery_endpoint_paths)
print(api.rest_runtime_unsupported_rows)
print(api.rest_runtime_unsupported_claim_gate_status)
print(api.rest_runtime_no_server_no_fallback_no_external_engine)
print(api.server_started)
print(discovery.server_mode)
print(discovery.contract_only)
print(preview.plan_handle)
print(preview.stage_statuses)
print(preview.problem_details_emitted)
print(lifecycle.lifecycle_status)
print(lifecycle.result_ref)
print(lifecycle.result_policies)
print(lifecycle.arrow_ipc_materialization)
print(lifecycle.fallback_attempted)
print(events.event_stream_status)
print(events.delivery_protocols)
print(events.event_types)
print(events.asyncapi_contract_path)
print(events.broker_io)
print(security.governance_status)
print(security.auth_postures)
print(security.api_scopes)
print(security.mcp_tools)
print(security.evidence_model_signals)
print(security.secrets_redacted)
print(data_plane.transfer_modes)
print(data_plane.preferred_large_payload_modes)
print(data_plane.standards_names)
print(data_plane.flight_adbc_required_for_basic_local_use)
```

Equivalent CLI commands:

```powershell
shardloom rest-api-contract-plan --format json
shardloom rest-api-plan-preview certified-local-batch --format json
shardloom rest-api-plan-preview unsupported-operator --format json
shardloom rest-api-local-lifecycle certified-local-batch --format json
shardloom rest-api-local-lifecycle blocked-uncertified --format json
shardloom rest-api-event-stream certified-live-fixture --format json
shardloom rest-api-event-stream broker-requested --format json
shardloom rest-api-security-governance safe-local-default --format json
shardloom rest-api-security-governance destructive-policy-required --format json
shardloom rest-api-security-governance agent-mcp-discovery --format json
shardloom rest-api-data-plane artifact-reference-default --format json
shardloom rest-api-data-plane flight-ticket-requested --format json
shardloom rest-api-data-plane adbc-endpoint-requested --format json
shardloom rest-api-data-plane standards-matrix --format json
shardloom serve --mode discovery --format json
```

The GAR-0035-A REST runtime unsupported gate keeps HTTP listener, remote execution, Flight/ADBC
transport, external broker integration, and dependency-expanded server claims blocked. The REST
contract remains a checked-in OpenAPI/reporting surface until separate workload, server lifecycle,
security, Native I/O, execution-certificate, and no-fallback evidence exists.

Lazy workflow planning is also available without adding pandas, Polars, Spark,
DataFusion, or any other execution dependency:

```python
import shardloom as sl

ctx = sl.context()
workflow = (
    ctx.read_vortex("orders.vortex")
    .filter("gte:value:3")
    .select("order_id", "amount")
    .limit(10)
)

plan = workflow.plan()
explain = workflow.explain()
estimate = workflow.estimate()
certification = workflow.certify()
unsupported = workflow.unsupported_report()

print(workflow.operation_summary)
print(plan.field("plan_only"))
print(explain.status)
print(estimate.status)
print(certification.fallback_attempted)
print(unsupported.fallback_attempted)
```

The same top-level helpers are exported as `sl.read_vortex`, `sl.read_csv`,
`sl.read_json`, `sl.read_parquet`, `sl.read_arrow_ipc`, `sl.read_avro`, and
`sl.read_orc`. Most helper chains
still declare sources and transformations only. `plan()`, `explain()`,
`estimate()`, `certify()`, and
`unsupported_report()` are explicit report calls over CLI JSON surfaces; they do
not read input files, infer schemas, materialize rows, probe object stores,
write output, or invoke fallback engines.

## Public Local Runtime: Universal Ingest Into A Vortex Middle

ShardLoom's Python front door is format-neutral at the execution boundary. `ctx.read(path)` and
the explicit `ctx.read_csv(...)`, `ctx.read_json(...)`, `ctx.read_parquet(...)`,
`ctx.read_arrow_ipc(...)`, `ctx.read_avro(...)`, `ctx.read_orc(...)`, and
`ctx.read_vortex(...)` helpers are input adapters. They do not create separate CSV, JSON,
Parquet, Arrow, Avro, ORC, SQL, or DataFrame execution stacks.

Local compatibility inputs enter the shared ShardLoom workflow, which converts them to the common
Vortex-native execution representation before native computation. Source format, SQL, and the
Python query builder do not create separate execution engines. `collect()` returns the complete
typed result for admitted work; `write(...)` runs that same workflow to the declared sink.

The invariant on admitted public local workflows is:

```text
input adapter -> shared Vortex-native execution -> typed result or declared sink
fallback_attempted=false
external_engine_invoked=false
```

Feature-gated structured adapters such as Parquet, Arrow IPC, Avro, and ORC still require the
matching build/runtime feature. When an adapter, operator, or sink is not enabled or not admitted,
the Python client returns the CLI unsupported envelope with a stable blocker id and next action.
That is intentional: unsupported work fails closed instead of using pandas, Polars, DuckDB, Spark,
DataFusion, or another engine.

A normal local Python use looks like this:

```python
import shardloom as sl

ctx = sl.context(memory_gb=16, max_parallelism=8)
orders = ctx.read("target/orders.csv")

result = (
    orders
    .filter(sl.col("amount") >= 10)
    .select("id", "amount", "status")
    .limit(10)
    .collect()
)

print(result.status)
print(result.result_rows)
print(result.fallback_attempted, result.external_engine_invoked)
```

The equivalent scoped SQL front door uses the same lifecycle after source parsing:

```python
sql_result = ctx.sql(
    "SELECT id, amount, status FROM 'target/orders.csv' "
    "WHERE amount >= 10 LIMIT 10"
).collect()

print(sql_result.status, sql_result.result_rows)
print(sql_result.fallback_attempted, sql_result.external_engine_invoked)
```

Direct native Vortex input skips compatibility preparation and starts at the Vortex boundary:

```python
vortex_result = (
    ctx.read_vortex("target/orders.vortex")
    .filter(sl.col("amount") >= 10)
    .select("id", "amount", "status")
    .limit(10)
    .collect()
)

print(vortex_result.status, vortex_result.result_rows)
print(vortex_result.fallback_attempted, vortex_result.external_engine_invoked)
```

Output adapters accept the selected workflow result when the input, operations, sink, and build
features are admitted. Vortex remains the native persistence target; compatibility formats are
explicit output translations. Unsupported combinations return a deterministic report. For example:

```python
result = orders.write_jsonl("target/orders.jsonl", check=False)
print(result.output_path)
print(result.output_commit_status)
print(result.native_io_certificate_status)
print(result.fallback_attempted, result.external_engine_invoked)
```

Use `write_json(...)` when a single top-level JSON array is preferred:

```python
result = orders.write_json("target/orders.json", check=False)
print(result.output_path)
print(result.output_commit_status)
```

Evidence-aware optimizer traces are planned as `GAR-PERF-2B`, not current Python runtime support. A
future Python `explain()` trace should expose optimizer rule status, before/after plan digests,
rewrite safety, evidence preservation, no-fallback fields, and claim gates without implying broad
SQL/DataFrame execution or Polars/DataFusion optimizer parity.

Reusable I/O state and broad cross-format fanout are separate capability/evidence questions. The
public Python query surface uses one shared native workflow for local files, typed-memory inputs,
and source-free SQL. Input formats and output adapters meet at that workflow; no format selects an
external execution engine. Capability reports describe their own scope and do not establish runtime
support or performance evidence.

Unsupported workflow operations return explicit diagnostics. Wrapper-level operations such as
an undeclared row UDF expose a blocker and the evidence needed to admit it:

```python
import shardloom as sl

ctx = sl.context(memory_gb=16, max_parallelism=8)
workflow = ctx.read_csv("events.csv").filter("amount > 0")
blocked = workflow.apply("row_udf", check=False)
print(blocked.blocker_id)
print(blocked.required_evidence)
print(blocked.suggested_next_action)
print(blocked.fallback_attempted, blocked.external_engine_invoked)

native_rejection = ctx.sql("SELECT CALL_API('https://example.invalid/score') AS score").collect(check=False)
print(native_rejection.status, native_rejection.diagnostics)
```

Unsupported reports above are generated through `workflow-unsupported-plan` and return
`status="unsupported"` with `fallback_attempted=false`; admitted reports preserve the same
no-fallback fields on their success evidence. The methods do not
use pandas, pyarrow, or numpy as execution engines, parse SQL, execute
unsupported DataFrame expressions, render broad notebook runtime output, invoke Foundry/model
services, or use another engine as fallback. Valid pandas/Arrow inputs are treated as explicit
materialized snapshots that lower to generated-source user rows, not as hidden external execution.

The DataFrame-style surface also has a typed method capability matrix. Use it
when a wrapper, notebook, or agent needs to know which familiar method names are
lazy declarations, which have scoped runtime-smoke support, which are unsupported diagnostics, and
which evidence gates bound each method:

```python
import shardloom as sl

ctx = sl.context()
matrix = ctx.capabilities().dataframe_method_matrix

print(matrix.row_order)
print(matrix.plan_only_methods)
print(matrix.unsupported_methods)
print(matrix.all_no_fallback_no_external_engine)

join = matrix.row("join")
print(join.support_status)
print(join.blocker_id)
print(join.required_evidence)
print(join.claim_boundary)
```

This matrix is still claim-safe, but its statuses should be read through the Vortex-middle contract.
Local compatibility rows are not successful public runtime routes merely because a lower-level smoke
command exists. Terminal methods are one of: side-effect-free lazy declarations, production-admitted
local workflows that normalize through Vortex preparation or native Vortex input, source-free
GeneratedSource local-output rows, internal smoke safeguards, or deterministic unsupported reports.

For local compatibility inputs, admitted `collect()`, `count()`, `preview()`, `head()`, `take()`,
schema/data-quality summaries, bounded decoded materialization, local compatibility writes,
compatibility fanout, quarantine sinks, and exact benchmark-family provider shapes enter the same
Vortex-prepared/native route described above. Profile summaries and broad production/export
semantics require an admitted route contract: native `.vortex` metadata profiles are admitted for
base read/select/limit shapes, and scoped `describe(...)` lowers to that same metadata-first
profile route. Transformed row profiling, pandas-style percentile/options summaries, and broad
production profiling remain blocked until a native Vortex materialization/profile contract admits
them. Alias rows such as
`project`, `where`, `groupby`, `order_by`,
`sort_values`, `merge`, `nlargest`, scoped `tail`, and scoped deterministic `sample` are useful only when their normalized operation shape maps to
an admitted native route; otherwise they return the matching unsupported report before data is read.

Generated-source rows such as `ctx.from_rows(...)`, `ctx.range(...)`, `ctx.sequence(...)`, and
source-free SQL have their own local output contracts. Those are not proof that local CSV/JSON/etc.
compatibility files can use direct decoded sinks as a product runtime.

`schema_contract(...)` and `validate_schema(...)` are bounded local schema evidence surfaces after
Vortex preparation. They are not broad schema registry, table constraint manager, or object-store/
lakehouse enforcement surfaces.
`profile(...)` is admitted for metadata-first native `.vortex` base read/select/limit profiles and
otherwise returns deterministic blockers until a route-specific profile/materialization contract
exists. It is not a hidden pandas/Polars profiler, resource tracer, performance claim, or
production observability surface.
`quarantine(...)` is admitted for bounded local checks and optional local sink replay evidence. It is
not object-store/table quarantine, production remediation, or a broad data-governance engine.

When the question is broader than one DataFrame method, use the front-door parity matrix. It
separates workflows that already lower SQL, Python, and DataFrame-style code to the same ShardLoom
runtime path from the gaps that still block arbitrary SQL/Python/DataFrame flexibility and
performance-equivalence claims. The scoped v1 boundary is owned by
`docs/architecture/v1-front-door-runtime-scope.md`:

```python
parity = ctx.front_door_parity_matrix()

print(parity.scoped_local_front_door_parity_supported)
print(parity.flexible_anything_claim_allowed)
print(parity.performance_equivalence_claim_allowed)
print(parity.row("local_file_filter_project_limit").shared_runtime_path)
print(parity.row("arbitrary_sql_python_dataframe_breadth").blocker_id)
```

Use the semantic surface matrix when the question is "which API/SQL semantic family is covered?"
instead of "which route is selected?" It is the agent-facing companion to the human parity doc:

```python
semantic = ctx.front_door_semantic_surface_matrix()

print(semantic.dataframe_subset_claim_statement)
print(semantic.sql_claim_statement)
print(semantic.pandas_compatible_claim_allowed)
print(semantic.ansi_sql_compliant_claim_allowed)
print(semantic.row("dataframe_materialization").claim_boundary)
```

Scoped local-file rows are admitted only when they normalize through Vortex preparation or start
from native Vortex input and then match an admitted primitive/provider route. Generated-output rows
remain separate source-free local-output contracts. Bounded schema/data-quality previews and decoded
Python/pandas/Arrow/NumPy materialization are explicit gap rows until native Vortex-derived evidence
and export/materialization contracts close them. General Vortex workflows, object-store/lakehouse/
table I/O, arbitrary SQL/Python/DataFrame breadth, and cross-front-door performance equivalence
remain explicit gap rows until correctness, Native I/O, execution-certificate, no-fallback, and
benchmark evidence closes them.

The v1 Vortex runtime scope is owned by `docs/architecture/v1-vortex-runtime-scope.md`. Use
`ctx.local_vortex_primitive_route_report()` for the feature-gated local Vortex primitive route
ids, CLI commands, materialization boundaries, and no-fallback evidence posture; broad object-store
Vortex, table/catalog Vortex, generalized Source/Sink, and broad Vortex SQL/DataFrame support remain
outside that scope.
The v1 SourceState/prepared-state scope is owned by
`docs/architecture/v1-source-prepared-state-scope.md`. Use
`ctx.source_prepared_state_scope_report()` to inspect the
`UniversalIngress -> SourceState -> vortex_ingest -> VortexPreparedState` route, the direct
transient boundary, reuse/invalidation case ids, golden fixture refs, and required benchmark
evidence fields. This report is local and claim-gated; it is not a global hidden cache, external
cache service, object-store/table prepared-state reuse, broad non-local preparation, or performance
claim.

Package, DataFrame, and notebook readiness are also exposed as a separate typed
matrix so local install smoke is not confused with public package publication or
broad runtime support:

```python
readiness = ctx.dataframe_notebook_package_readiness()

print(readiness.schema_version)
print(readiness.local_install_smoke_supported)
print(readiness.package_publication_ready)
print(readiness.dataframe_runtime_supported)
print(readiness.notebook_runtime_supported)
print(readiness.all_rows_no_fallback_no_external_engine)

publication = readiness.row("public_package_publication")
print(publication.support_status)
print(publication.blocker_id)
print(publication.required_evidence)
print(publication.claim_boundary)
```

This readiness matrix is report-only capability posture. It does not publish to
PyPI/TestPyPI/Conda/Homebrew, import notebook or DataFrame dependencies, render
rich notebook output, execute broad DataFrame plans, call package repositories,
or invoke external engines. Public package publication, broad DataFrame runtime,
and notebook runtime remain blocked until release and execution evidence gates
pass.

The CG-21 ETL workflow surface also has a compact typed matrix for current local
workflow posture. Use it when a wrapper, notebook, or agent needs one place to
show which user workflows are ready or smoke-supported, which APIs are
report-only, and which production/runtime claims remain blocked:

```python
matrix = ctx.etl_workflow_matrix()

print(matrix.schema_version)
print(matrix.supported_local_rows)
print(matrix.report_only_rows)
print(matrix.blocked_rows)
print(matrix.all_no_fallback_no_external_engine)

blocked = matrix.row("object_store_runtime")
print(blocked.status)
print(blocked.blocker_id)
print(blocked.claim_boundary)
```

This matrix is side-effect-free capability posture. It does not run production
ETL, SQL/DataFrame execution, object-store/lakehouse runtime, Foundry runtime,
external engine execution, or package publication, and it does not create
performance or Spark-displacement claims.

`GAR-0037-A` adds a wrapper/connector implementation registry on the API-surface
capability view. Use it when a client, adapter, agent, or public docs page needs
to distinguish the current source-tree Python wrapper from planned or blocked
ecosystem connectors:

```python
caps = ctx.capabilities()
registry = caps.wrapper_connector_registry
# Or: registry = ctx.wrapper_connector_registry()

print(registry.schema_version)
print(registry.ready_local_count)
print(registry.report_only_count)
print(registry.blocked_count)
print(registry.all_rows_no_fallback_no_external_engine)

python = registry.row("python_cli_json_client")
sqlalchemy = registry.row("sqlalchemy")

print(python.support_status)
print(python.explicit_execution_available)
print(sqlalchemy.support_status)
print(sqlalchemy.deterministic_diagnostic_code)
print(sqlalchemy.claim_boundary)
```

The registry is capability posture, not connector implementation. It does not
add generated clients, DB-API, SQLAlchemy, Ibis, dbt, Airflow, Dagster, Prefect,
MCP, Flight SQL, ADBC, JDBC/ODBC, BI, Grafana, Foundry package, REST server,
dependency expansion, network listener, external engine execution, or fallback.
Rows preserve `fallback_attempted=false`, `external_engine_invoked=false`, and
`claim_gate_status=not_claim_grade`.

Source-free generated-output APIs are tracked under `GAR-GEN-1`. The full
contract is exposed through capability views as `generated_source_contract`, and
the per-API admission matrix is exposed as `generated_source_api_admission`.
`GAR-NOVEL-1A` also exposes `generated_source_evidence_alignment`, which ties the same
GeneratedSourceCertificate rows to report-only OpenLineage, OpenTelemetry, Bayesian-confidence,
and Foundry generated-output boundary refs without enabling exporters or platform runtime.
Scoped local JSONL/CSV smoke paths are runtime-supported for caller-provided rows,
Python literal tables, Python calendar/date dimensions, ShardLoom-native
range/sequence generators, SQL `VALUES`, SQL literal `SELECT`, and SQL
`generate_series`/`range`. Broader SQL/DataFrame
forms remain report-only unless a later evidence-backed slice admits them:

```python
caps = ctx.capabilities()
contract = caps.python.generated_source_contract
admission = caps.python.generated_source_api_admission
alignment = caps.python.generated_source_evidence_alignment
lineage = ctx.observability().openlineage_facet_mapping
telemetry = ctx.observability().opentelemetry_trace_export_contract

print(contract.schema_version)
print(contract.case_order)
print(contract.no_dataset_smoke_separate_from_generated_output)
print(contract.all_no_fallback_no_external_engine)
print(admission.row("python_ctx_from_rows").support_status)
print(admission.row("python_ctx_range").runtime_execution)
print(admission.row("python_ctx_sequence").runtime_execution)
print(admission.row("python_ctx_literal_table").support_status)
print(admission.row("python_ctx_calendar").runtime_execution)
print(admission.row("sql_values").support_status)
print(admission.row("sql_literal_select").runtime_execution)
print(admission.row("sql_generate_series_range").runtime_execution)
print(admission.all_no_fallback_no_external_engine)
print(alignment.schema_version)
print(alignment.openlineage_export_enabled)
print(alignment.opentelemetry_network_exporter_enabled)
print(alignment.row("foundry_generated_output").foundry_boundary_ref)
print(lineage.schema_version)
print(lineage.row("generated_source").facet_name)
print(lineage.all_rows_report_only)
print(lineage.all_no_fallback_no_external_engine)
print(telemetry.schema_version)
print(telemetry.row("operator_compute").timing_fields)
print(telemetry.network_exporter_enabled)
print(telemetry.no_export_side_effects)
```

The universal compatibility view also projects the same source-free generated-output posture so
callers do not need to join GAR-GEN docs by hand:

```python
compatibility = ctx.compatibility_scoreboard()
generated = compatibility.source_free_generated_output_contract

print(generated.schema_version)
print(generated.no_dataset_smoke_separate)
print(generated.local_output_only)
print(generated.output_certificate_required)
print(generated.row("python_ctx_from_rows").support_status)
print(generated.row("sql_values").support_status)
print(generated.row("local_output_only_generated_source_posture").blocker_id)
print(generated.all_no_fallback_no_external_engine)
```

This compatibility contract is a capability map, not a runtime report. Its generated-output rows
describe declared posture only. Use the shared workflow execution report to inspect a real
`collect()` or write request; unsupported shapes return deterministic diagnostics.

Source-free constructors such as `ctx.from_rows(...)`, `ctx.literal_table(...)`, `ctx.range(...)`,
`ctx.sequence(...)`, and `ctx.sql_values(...)` return the same `LazyFrame` used by file-backed
queries. Use `.collect()` for the complete typed result or a `write_*()` method for an admitted
local sink. For example:

```python
import shardloom as sl

ctx = sl.context(memory_gb=16, max_parallelism=8)
frame = ctx.from_rows([{"id": 1, "label": "alpha"}, {"id": 2, "label": "beta"}])
collected = frame.collect()
written = frame.write_jsonl("target/generated-reference.jsonl")

print(collected.status, collected.result_rows)
print(written.status, written.output_path, written.output_commit_status)
print(written.native_io_certificate_status)
print(written.fallback_attempted, written.external_engine_invoked)
```

Source-free SQL expressions, `VALUES`, and range constructors use the same query path. A generated
input does not imply support for every operation or sink: dtype, operation, adapter, and build
feature admission still apply. The `generated_source_*` capability views are declarative maps; they
do not constitute execution reports. Consult the live workflow report for `status`, and sink reports
for `output_commit_status` and `native_io_certificate_status`.

The client also exposes the P7 claim gate closeout report:

```python
from shardloom import ShardLoomClient

client = ShardLoomClient.from_repo()
closeout = client.claim_gate_closeout()

print(closeout.claim_gate_status)
print(closeout.release_readiness_status)
print(closeout.allowed_claims)
print(closeout.blocked_claims)
print(closeout.out_of_scope_claims)
print(closeout.no_runtime, closeout.no_fallback, closeout.no_effects)
```

This maps to `shardloom claim-gate-closeout --format json`. It is report-only:
it does not run workloads, publish packages, probe APIs, run benchmarks, invoke
Foundry, or permit external-engine fallback.

For P7.4 compute-engine closeout, the client exposes the report-only compute
capability matrix and operator-family ladder:

```python
from shardloom import ShardLoomClient

client = ShardLoomClient.from_repo()
matrix = client.compute_capability_matrix()

for row in matrix.rows:
    print(row.row_id, row.support_status, row.provider_kind, row.blocker_id)

for family in matrix.operator_families:
    print(family.family_id, family.support_status, family.next_evidence)

print(matrix.matrix_status)
print(matrix.claim_grade_status)
print(matrix.no_runtime, matrix.no_fallback, matrix.no_effects)
```

This maps to `shardloom compute-capability-matrix --format json`. It performs
no runtime execution, data reads, writes, benchmark execution, external effects,
external engine invocation, or fallback execution.

The first ShardLoomNative semantic conformance surface is executable, but only
over side-effect-free in-memory fixtures. It records passed, planned, and
blocked semantic dimensions before any broad SQL/DataFrame runtime claims:

```python
from shardloom import ShardLoomClient

client = ShardLoomClient.from_repo()
suite = client.semantic_conformance_suite()

print(suite.semantic_profile)
print(suite.suite_status)
print(suite.executed_fixture_count, suite.passed_fixture_count)

for row in suite.rows:
    print(row.row_id, row.fixture_status, row.blocker_id)
```

This maps to `shardloom semantic-conformance-suite --format json`. Current
fixtures cover the supported in-memory semantic dimensions and keep external
oracles, dataset reads, SQL parsing, runtime execution, writes, and fallback
disabled.

Artifact-rich top-level execution result envelopes can be inspected with
`ExecutionResultEnvelopeView` when a command returns a `shardloom.output.v2`
execution envelope:

```python
from shardloom import ExecutionResultEnvelopeView

def inspect_execution_envelope(envelope):
    result = ExecutionResultEnvelopeView(envelope)

    print(result.plan_id)
    print(result.provider_version)
    print(result.result_refs)
    print(result.artifact_refs)
    print(result.inline_artifact_ids)
    print(result.execution_certificate_refs)
    print(result.native_io_certificate_refs)
    print(result.representation_transitions)
    print(result.evidence_completeness_status)
    print([slot.kind for slot in result.incomplete_evidence_slots])
    print(result.fallback_attempted, result.external_engine_invoked)
```

The view is a typed reader over the CLI protocol. It does not execute unsupported
work, create benchmark rows, write outputs, invoke external engines, or convert
report-only surfaces into runtime support.

## Package Build Smoke

The current source package version is owned by `shardloom.__version__` and the shared workspace
version sources. It is a Python client surface over ShardLoom's CLI, with bundled CLI resources in
supported platform wheels.
Bundled platform-wheel readiness can be checked locally without publishing:

```powershell
python -m pip install build
python scripts/release_dry_run_proof.py --rows 64 --iterations 1
```

That proof builds the CLI, stages it under `shardloom/bin/<system-arch>/` in a temporary package
tree, builds a platform-specific wheel/sdist, installs the wheel in a clean environment, and asserts
that `ShardLoomClient().binary_command()` resolves the bundled CLI without `SHARDLOOM_BIN` or
`SHARDLOOM_REPO_ROOT`.

For a client-only wheel smoke without bundled CLI proof:

```powershell
python -m build python
python -m venv $env:TEMP\shardloom-wheel-smoke
$wheel = Get-ChildItem python\dist\shardloom-*.whl | Select-Object -First 1
& $env:TEMP\shardloom-wheel-smoke\Scripts\python -m pip install $wheel.FullName
& $env:TEMP\shardloom-wheel-smoke\Scripts\python -c "import shardloom; print(shardloom.__version__)"
```

Conda packaging should stay split so the pure Python wrapper can remain
`noarch: python` while the Rust CLI binary is built as a platform-specific
package. Local recipe scaffolds live under `packaging/conda/`:

- `shardloom-cli`: compiled Rust `shardloom` binary.
- `shardloom-python`: pure Python wrapper/import surface.
- Optional `shardloom` metapackage: depends on both the wrapper and CLI for a
  one-command install path.

The recipes are not published packages. A release pass must align versions,
replace local sources with tagged source archives and hashes, review license
metadata, build packages in clean Conda environments, and receive explicit
human approval before publication.

Spark, DataFusion, Polars, DuckDB, pandas, and Dask belong only in optional
benchmark environments; they are not ShardLoom runtime dependencies or fallback
engines.

## Local Analytics Benchmark

Use the parameterized benchmark harness at `benchmarks/traditional_analytics/run.py` for local
analytics comparisons. The example wrapper in `examples/local-vortex-benchmark/` forwards its
arguments to that harness and selects the public ShardLoom workflow. Supply a built CLI binary and
workspace explicitly; the harness owns fixture generation, resource limits, and output handling.
Benchmark results are workload- and host-specific evidence, not a general performance claim.

For application queries, use `ctx.read(...)` or a source-free constructor, then call `collect()` or
write to a declared output with the same `LazyFrame`. See `docs/getting-started/examples.md` for
runnable SQL and Python examples.

## Quickstart Proof

The quickstart proof script stitches the local user flow together: import and
CLI smoke, capability discovery, lazy source planning, unsupported
explain/estimate diagnostics, compatibility-source planning, workflow
readiness, and optional certified local Vortex primitive execution.

```powershell
$env:PYTHONPATH = "python\src"
python python\examples\quickstart_proof.py --repo-root .
```

To include the currently certified fixture execution path, build the CLI with
the local primitive feature and opt in explicitly:

```powershell
python scripts\write_ci_version_env.py --format powershell | Invoke-Expression
$env:RUSTUP_TOOLCHAIN = $env:SHARDLOOM_RUST_MSRV_TOOLCHAIN
cargo build -p shardloom-cli --features vortex-local-primitives --bin shardloom

$env:PYTHONPATH = "python\src"
python python\examples\quickstart_proof.py --repo-root . --run-local-vortex --memory-gb 16 --max-parallelism 8
```

The optional execution path runs only the checked-in
`local_primitive_struct_five.vortex` fixture through explicit local Vortex
primitive flags. The planning portions remain no-write/no-probe, and the script
exits nonzero if fallback is attempted, planning writes occur, or requested
local primitive evidence is not certified.

Universal I/O is broader than local compatibility files. The current adapter
registry also makes object-store, catalog, effectful, and unstructured queues
visible from Python:

```python
adapters = client.input_adapters()
print(adapters.field("common_structured_adapter_order"))
print(adapters.field("critical_structured_adapter_order"))
print(adapters.field("object_store_adapter_order"))
print(adapters.field("catalog_adapter_order"))
print(adapters.field("database_adapter_order"))
print(adapters.field("parquet_status"))
print(adapters.field("sqlite_status"))

plan = client.input_plan("file://tmp/example.parquet")
print(plan.field("source_kind"))
print(plan.field("capability_status"))
print(plan.field("plan_only"))
```

Common structured inputs are tracked as `native_vortex`, `parquet`,
`arrow_ipc`, `csv`, JSON/NDJSON through `jsonl`, `avro`, and `orc`.
Database adapters are visible separately: SQLite has a local import/export
fixture smoke, while Postgres/MySQL, JDBC/ODBC, Snowflake, BigQuery, and
Databricks SQL remain credential/network-gated. Lakehouse/table, object-store,
catalog, effectful, and unstructured/media families are also represented in the
registry. The current implemented live paths are scoped local fixture/evidence
paths only: feature-gated local compatibility-file-to-Vortex benchmark smokes,
native `.vortex` replay, public/local object-store fixture smokes, local table
commit rehearsal, local SQLite import/export smoke, and the built-in
deterministic scalar UDF fixture. Production adapter certification, live
object-store runtime, catalogs, broad SQL/DataFrame runtime, arbitrary UDFs, and
network connectors remain future work.

For a single source/sink compatibility view, use the typed scoreboard instead
of scraping architecture prose:

```python
matrix = ctx.compatibility_scoreboard()
print(matrix.schema_version)
print(matrix.row("vortex").support_status)
print(matrix.row("object_store_s3_gcs_adls").support_status)
print(matrix.all_rows_no_fallback_no_external_engine)

object_store = matrix.object_store_admission_ladder
print(object_store.schema_version)
print(object_store.provider_scope)
print(object_store.runtime_supported)
for row in object_store.rows:
    print(
        row.row_id,
        row.support_status,
        row.credential_policy_status,
        row.no_effects_no_fallback,
    )
```

The scoreboard maps local files, Vortex, generated outputs, Python rows,
SQL literals, databases, object stores, table/lakehouse formats, remote APIs,
and Foundry to `runtime-supported`, `smoke-supported`, `report-only`,
`blocked`, or `not-planned`. It is a capability map only, not a production,
performance, SQL/DataFrame, object-store/lakehouse, Foundry, or package claim.
The `object_store_admission_ladder` keeps S3/GCS/ADLS URI recognition,
credential policy, public reads, authenticated reads, byte-range reads,
full-file reads, local cache, write staging, and commit protocol as separate
gates. Current rows keep credential resolution, provider probes, network
probes, object-store I/O, writes, commits, external engines, and fallback
disabled.
Important row IDs include `object_store_uri_parse`, `credential_policy`,
`public_no_credential_read`, `authenticated_read`, `byte_range_read`,
`full_file_read`, `local_cache`, `write_staging`, and `commit_protocol`.

For the first explicit object-store read runtime proof, use the local-emulator
smoke. It reads a local fixture file through an object-store-style profile and
emits SourceState, byte-range/full-file read, Native I/O, and no-fallback
evidence.

```python
client = ShardLoomClient.from_repo(memory_gb=16, max_parallelism=8)
read = client.object_store_read_smoke(
    "target/object-store-fixture.bin",
    byte_range=(0, 16),
)
print(read.field("object_store_read_status"))
print(read.field("source_state_id"))
print(read.field_bool("network_probe_performed"))
print(read.field_bool("fallback_attempted"))
```

For the public no-credential fixture profile, pass a supported S3/GCS/ADLS URI
and an explicit local fixture file. ShardLoom parses the provider URI and reads
the fixture bytes only; it does not resolve credentials, probe the provider, or
open a network connection.

```python
public_read = client.object_store_read_smoke(
    "s3://shardloom-public-fixtures/orders.vortex",
    profile="public-no-credential-fixture",
    public_fixture_path="target/object-store-public-fixture.vortex",
    fixture_listing=True,
    byte_range=(0, 16),
)
print(public_read.field("object_store_uri_parse_status"))
print(public_read.field("native_io_certificate_status"))
print(public_read.field_bool("public_no_credential_fixture_claim_allowed"))
print(public_read.field_bool("network_probe_performed"))
```

For the first explicit object-store write runtime proof, use the separate
local-emulator write smoke. It stages a local source file into a local-emulator
target path, commits a sidecar manifest, emits idempotency and digest evidence,
and can immediately roll back the object plus manifest for cleanup proof.

```python
write = client.object_store_write_smoke(
    "target/source.bin",
    "target/object-store-fixture.bin",
    idempotency_key="orders-batch-001",
    rollback_after_commit=True,
)
print(write.field("object_store_write_status"))
print(write.field("commit_protocol_status"))
print(write.field("rollback_status"))
print(write.field_bool("object_store_write_io"))
print(write.field_bool("fallback_attempted"))
```

Object-store read/write smokes remain fixture-scoped. Live real S3/GCS/ADLS
network reads, credentials, provider probes, signed URLs, authenticated cloud
reads or writes, cache writes, table/lakehouse commits, catalog interaction,
distributed runtime, and production object-store claims remain blocked.

For the local SQLite adapter fixture, create or point at a local SQLite file and
use the import/export smoke. The command table-scans a named table, writes a
workspace-safe JSONL export, and creates a roundtrip SQLite artifact. It does not
accept arbitrary SQL, push queries down, connect to network databases, resolve
credentials, load extensions, or use SQLite as a fallback engine. `order_by` is
post-scan fixture ordering in ShardLoom, and BLOB schemas/values are rejected.

```python
sqlite = client.sqlite_local_import_export_smoke(
    "target/orders.sqlite",
    table="orders",
    export_jsonl="target/orders-sqlite.jsonl",
    roundtrip_db="target/orders-roundtrip.sqlite",
    order_by="id",
    allow_overwrite=True,
)
print(sqlite.field("sqlite_sql_execution_scope"))
print(sqlite.field_bool("sqlite_query_pushdown_allowed"))
print(sqlite.field("sqlite_ordering_execution_scope"))
print(sqlite.field_bool("roundtrip_replay_verified"))
```

For the built-in deterministic scalar UDF fixture, use the nullable-int64
fixture smoke. It proves UDF metadata, determinism, null propagation, overflow
blocking, and effect policy for one built-in fixture only. It is not Python,
WASM, Rust plugin, SQL-defined, table-function, or external-service UDF support.

```python
registry = client.udf_registry()
print(registry.field("typed_udf_registry_support_status"))
print(registry.field_int("typed_udf_registry_admitted_local_fixture_count"))
print(registry.field_bool("typed_udf_registry_arbitrary_runtime_bridge_available"))

udf = client.udf_local_scalar_fixture_smoke([1, None, 3])
print(udf.field("udf_id"))
print(udf.field("output_values"))
print(udf.field_bool("external_effect_executed"))
print(udf.field_bool("fallback_attempted"))
```

Extension metadata and UDF runtime posture remain inspectable without executing
extension code. A local extension manifest can be inspected as bounded metadata;
the CLI does not load extension code, resolve credentials, probe networks, or
enable plugin runtime support. The same helpers are available on
`ShardLoomContext` when you want one high-level workflow surface:

```python
extensions = client.extension_registry()
extension_dir = client.extension_registry(manifest_dir="target/extensions")
manifest = client.extension_inspect(manifest_path="target/extension.json")
typed_udfs = client.udf_registry()
fixture_plan = client.udf_runtime_plan("fixture")
python_plan = client.udf_runtime_plan("python")
print(extensions.field("extension_manifest_effect_all_runtime_blocked"))
print(extension_dir.field("extension_registry_manifest_count"))
print(extension_dir.field_bool("extension_registry_extension_code_executed"))
print(manifest.field("extension_manifest_inspection_status"))
print(manifest.field_bool("extension_manifest_execution_contract_complete"))
print(manifest.field_bool("extension_manifest_extension_code_executed"))
print(typed_udfs.field("typed_udf_registry_row_order"))
print(typed_udfs.field_bool("typed_udf_registry_external_engine_invoked"))
print(fixture_plan.field("udf_runtime_kind"))
print(python_plan.field_bool("udf_runtime_sandboxing_required"))

ctx_extensions = ctx.extension_registry()
ctx_extension_dir = ctx.extension_registry(manifest_dir="target/extensions")
ctx_manifest = ctx.extension_inspect(manifest_path="target/extension.json")
ctx_typed_udfs = ctx.udf_registry()
ctx_udf = ctx.udf_local_scalar_fixture_smoke([1, None, 3])
print(ctx_extensions.field_bool("extension_code_executed"))
print(ctx_extension_dir.field_bool("extension_registry_runtime_execution"))
print(ctx_manifest.field_bool("extension_manifest_external_effect_executed"))
print(ctx_typed_udfs.field_bool("typed_udf_registry_fallback_attempted"))
print(ctx_udf.field_bool("fallback_attempted"))
```

For the scoped local table metadata read proof, use the local-manifest smoke.
It emits a typed metadata summary and digest evidence from ShardLoom's local
manifest fixture without reading data files, touching object stores, resolving
credentials, invoking table-format dependencies, or using fallback engines.

```python
metadata = client.local_table_metadata_read_smoke()
print(metadata.field("support_status"))
print(metadata.field("claim_gate_status"))
print(metadata.field_bool("table_metadata_read_performed"))
print(metadata.field_bool("object_store_io_performed"))
print(metadata.field_bool("fallback_attempted"))
```

For the first fixture-scoped table append commit rehearsal, use the local
manifest smoke. It writes a staged committed manifest plus sidecar table commit
record, reports base/append/committed snapshot ids and digest evidence, and can
immediately roll both artifacts back for cleanup proof.

```python
table = client.local_table_append_commit_rehearsal_smoke(
    "target/table-commit/metadata-v2.json",
    idempotency_key="orders-table-commit-001",
    rollback_after_commit=True,
)
print(table.field("table_append_commit_status"))
print(table.field("committed_snapshot_id"))
print(table.field("commit_protocol_status"))
print(table.field_bool("table_catalog_commit_performed"))
print(table.field_bool("object_store_io"))
print(table.field_bool("fallback_attempted"))
```

The table metadata and append-commit smokes are `local-manifest` fixtures only.
They are not Iceberg/Delta/Hudi production metadata/runtime support, catalog
transactions, object-store-backed table commits, merge/update/delete runtime,
distributed runtime, or performance claims.

The same scoreboard exposes table-format boundaries:

```python
tables = matrix.table_format_boundary_matrix
print(tables.schema_version)
print(tables.format_scope)
print(tables.local_metadata_smoke_available)
print(tables.runtime_supported)
for row in tables.rows:
    print(row.row_id, row.support_status, row.no_io_no_fallback)
```

The `table_format_boundary_matrix` keeps Iceberg, Delta, and Hudi metadata
reads, table scans, snapshot/time-travel, partition evolution, delete/tombstone,
append, merge/update/delete, commit, rollback, catalog interaction, and
object-store coupling as separate gates. Local manifest metadata, delete/
tombstone, and append commit rehearsal smokes are related evidence only; they
are not production table-format runtime, lakehouse runtime, catalog runtime,
object-store runtime, or commit support.
Important row IDs include `table_metadata_read`, `table_scan`,
`snapshot_time_travel`, `partition_evolution`, `delete_tombstone`, `append`,
`merge_update_delete`, `commit`, `rollback`, `catalog_interaction`, and
`object_store_coupling`.

The same scoreboard exposes database and warehouse import/export boundaries:

```python
endpoints = matrix.database_warehouse_boundary_matrix
print(endpoints.schema_version)
print(endpoints.endpoint_scope)
print(endpoints.runtime_supported)
for row in endpoints.rows:
    print(
        row.row_id,
        row.support_status,
        row.credential_required,
        row.network_required,
        row.no_effects_no_fallback,
    )
```

The `database_warehouse_boundary_matrix` keeps SQLite, Postgres, MySQL,
JDBC/ODBC, Snowflake, BigQuery, and Databricks SQL separate. SQLite is the only
admitted fixture exception: `sqlite_file` is smoke-supported for local named
table import/export through `sqlite-local-import-export-smoke`, with query
pushdown disabled and no credentials/network probes. Postgres/MySQL, JDBC/ODBC,
Snowflake, BigQuery, and Databricks SQL remain blocked as connectors and cannot
serve as fallback engines. Important row IDs include `sqlite_file`, `postgres`,
`mysql`, `jdbc_odbc`, `snowflake`, `bigquery`, and `databricks_sql`.

The client also exposes advisory optimization reports:

```python
dynamic = client.dynamic_work_shaping_plan("memory-pressure")
sizing = client.sizing_feedback_plan(8, ["task-too-large", "memory-pressure-high"])
```

These commands report planned/advisory state only; they do not mutate runtime
policy yet.

Planning and evidence commands may return `status="success"` while including
error-severity diagnostics that describe missing evidence or blocked future
work. The Python client preserves those diagnostics for inspection instead of
raising unless the CLI exits nonzero or the envelope status is `error` or
`unsupported`.

The example script wires the same calls together:

```powershell
$env:PYTHONPATH = "python\src"
python examples\local-vortex-benchmark\run.py `
  --shardloom-binary target\release\shardloom.exe `
  --workspace "$HOME\LocalData\shardloom\traditional-benchmarks" `
  --input-state raw --output-format collect --reference-engine pandas
```

## Test

```powershell
$env:PYTHONPATH = "python\src"
python -m unittest discover python\tests
```
