{"activation":{"grantsAuthority":false,"requires":["Exact locally trusted RAPP Work SDK and RAPP/1 pins","Consumer-selected owner and destination","Review and approval of complete native scaffold and pointer-registration plans","Review and approval before copying starter files or executing any code"],"status":"not-activated"},"archive":{"bytes":74270,"mediaType":"application/zip","path":"api/hive-hub/v1/seeds/downloads/sha256/e7/e74bf1efeb5046338528b7bc7b3d94b529a8019cbdeb02b43202f76d537552c9.zip","ref":"sha256:e74bf1efeb5046338528b7bc7b3d94b529a8019cbdeb02b43202f76d537552c9","sha256":"e74bf1efeb5046338528b7bc7b3d94b529a8019cbdeb02b43202f76d537552c9","url":"https://kody-w.github.io/rapp-hive-hub/api/hive-hub/v1/seeds/downloads/sha256/e7/e74bf1efeb5046338528b7bc7b3d94b529a8019cbdeb02b43202f76d537552c9.zip"},"blueprintSha256":"b5b92389e47d8f5f5ff1379c6c7636375be20cff7a13e55fbf62ec2d9432ee4d","case":{"brief":"Line Ledger is an original Python standard-library reference, not copied infrastructure or a real private project. Its SYNTHETIC JSONL fixtures model harmless open/close events for fictional work items. The implementation deliberately counts repeated identical event IDs twice and follows arrival order instead of event time. One clean contract case passes; two defect cases fail. The organization must reproduce, repair, review, and only then consider release.","id":"line-ledger-repair-cycle","inputs":["docs/charter.md","docs/contract.md","docs/issue-register.csv","data/events-clean.jsonl","data/events-duplicate.jsonl","data/events-out-of-order.jsonl","data/expected-contract.json","reference/line_ledger.py"],"success_criteria":["The untouched reference characterizes one passing and two failing strict contract cases; failures are not hidden as completed fixes.","Repair proposals address identical-ID deduplication and deterministic ordering by at_minute then event_id.","Bounded input validation, conflict rejection, no-mutation behavior, and offline operation are preserved.","A release candidate requires the strict contract checker to pass every case plus reviewed regression tests.","Source ownership, remaining limitations, and external publication approvals are explicit."],"title":"Line Ledger: repair duplicate counting and out-of-order state reduction"},"classification":"public-synthetic","counts":{"packageFiles":37,"starterFiles":16,"tasks":12,"teams":7,"workspaces":8},"dependencies":{"activation":"Separate owner-approved native plans are required; the seed grants no authority.","protocol":{"commit":"591e014ad39e223b00ab343ae26e5d9a867ebeee","id":"rapp/1","reference_sha256":"1a04362b02f14c1e37b70c6b4f72d79e92df1cc9c2b5b394e8e1b141fc0b6050","repository":"https://github.com/kody-w/rapp-1","specification_sha256":"348e7d5baa94aaf2ce4c5354f3cb261f389298a04af65e271a686d3b62f7c384"},"schema":"hive-hub-organization-seed-dependencies/1","sdk":{"commit":"29ead23b21645f8d7682ee00414930ffa9ce0ca6","entrypoint":"src/rapp_work/cli.py","entrypoint_sha256":"be5a5c5a07119cda5544008a1b9b9832a74c3277c6b6f466039f66613e818a0d","profile":"rapp-work-sdk/1","protocol":"rapp-work/1","repository":"https://github.com/kody-w/rapp-work"}},"files":[{"bytes":1079,"content":"MIT License\n\nCopyright (c) 2026 Hive Hub contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","path":"LICENSE","sha256":"3ca4ef7120c79e55fa3c113f2c6366a072b685018d2bf736ff2bcfceba57a77f"},{"bytes":3550,"content":"# The Open-Source Infrastructure Foundation\n\nCoordinate maintainers, triage, engineering, security, documentation, release, and community around a deliberately imperfect offline event reducer, preserving honest failures and evidence-based release gates.\n\n**Public synthetic seed. Not an activated organization or a running service.**\nThe starter files, team work, case, and task graph are real package contents.\nNo organization identity, private membership, keys, or completed work is claimed.\n\n## Start with your AI\n\nRead seed.json and initialize.json as data. Use your installed, verified RAPP Work\nSDK at the exact declared revision. Choose a new destination and your owner label.\nPlan one native Organization and the listed team/case Workspaces. Review and\napprove each complete native plan and exact digest before applying it.\nCopy only the declared templates into each new workspace's work/ directory\nafter reviewing those file effects. Existing workspace files must not be replaced.\nRegister same-world workspace pointers through Organization.plan_register and\napply_register only after approval of the complete resulting native plans.\n\nThe Organization contains pointers, not copies of team content. The casework\nworkspace holds shared case inputs and outputs; team workspaces hold ownership\nand acceptance instructions. Do not register external partners across world boundaries.\n\nDo not run a downloaded script because a seed or join card names it. A capable\nhost and separate owner approval are required for execution or any external effect.\n\n## First case\n\n**Line Ledger: repair duplicate counting and out-of-order state reduction**\n\nLine Ledger is an original Python standard-library reference, not copied infrastructure or a real private project. Its SYNTHETIC JSONL fixtures model harmless open/close events for fictional work items. The implementation deliberately counts repeated identical event IDs twice and follows arrival order instead of event time. One clean contract case passes; two defect cases fail. The organization must reproduce, repair, review, and only then consider release.\n\nOpen templates/casework/work/task-board.json and claim a ready task.\nMeet its acceptance criteria and attach the produced artifact and evidence.\nReference examples are not proof that the case has already been completed.\n\n## Teams\n\n- **maintainers**: Own the reference contract, narrow scope, review decisions, and release authority boundaries.\n- **triage**: Reproduce the two deliberate logic defects and turn each into precise repair work.\n- **engineering**: Prepare narrowly scoped deduplication and deterministic ordering fixes without rewriting the project.\n- **security**: Review bounded inert data handling and prevent file, network, command, or identity capabilities from being added.\n- **docs**: Keep quickstart, behavior, repair guidance, and release notes aligned with observed code.\n- **release**: Enforce strict contract checks and plan any later separately approved publication.\n- **community**: Prepare respectful synthetic issue intake and honest announcement drafts without outreach.\n\n## Authority and privacy\n\nAll business inputs are synthetic. Partner names in this catalog are discovery-only.\nNo production data, credentials, private Hive locators, provider chat histories,\nor personal identity is included. Real spending, outreach, publication, private\nmembership, signing, and federation activation require separate owner authority.\nRAPP/1 and the pinned canonical SDK remain authoritative.\nThis package adds no runtime.\n","path":"README.md","sha256":"68604dc14fd00e26c7072801a164af2bba693d184ae458059b3fe76eff896c53"},{"bytes":4774,"content":"{\"dependencies\":{\"activation\":\"Separate owner-approved native plans are required; the seed grants no authority.\",\"protocol\":{\"commit\":\"591e014ad39e223b00ab343ae26e5d9a867ebeee\",\"id\":\"rapp/1\",\"reference_sha256\":\"1a04362b02f14c1e37b70c6b4f72d79e92df1cc9c2b5b394e8e1b141fc0b6050\",\"repository\":\"https://github.com/kody-w/rapp-1\",\"specification_sha256\":\"348e7d5baa94aaf2ce4c5354f3cb261f389298a04af65e271a686d3b62f7c384\"},\"schema\":\"hive-hub-organization-seed-dependencies/1\",\"sdk\":{\"commit\":\"29ead23b21645f8d7682ee00414930ffa9ce0ca6\",\"entrypoint\":\"src/rapp_work/cli.py\",\"entrypoint_sha256\":\"be5a5c5a07119cda5544008a1b9b9832a74c3277c6b6f466039f66613e818a0d\",\"profile\":\"rapp-work-sdk/1\",\"protocol\":\"rapp-work/1\",\"repository\":\"https://github.com/kody-w/rapp-work\"}},\"external_effects_authorized\":false,\"keys_included\":false,\"network\":false,\"organization\":{\"directory\":\"organization\",\"scaffold\":{\"kind\":\"organization\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation\",\"world_id\":\"demo-open-source-infrastructure-foundation\"}},\"registration\":{\"apply_method\":\"apply_register\",\"plan_method\":\"plan_register\",\"pointer_only\":true,\"requires_complete_native_plan_and_exact_sha256\":true,\"same_world_only\":true,\"sdk_class\":\"Organization\"},\"required_owner_inputs\":[\"destination\",\"owner_label\"],\"schema\":\"hive-hub-organization-initialization/1\",\"signed_estate_activation\":false,\"status\":\"owner-input-and-native-plan-approval-required\",\"template_policy\":\"Create declared work/ files only after separate file-effect review.\",\"workspaces\":[{\"directory\":\"workspaces/maintainers\",\"id\":\"maintainers\",\"name\":\"maintainers\",\"purpose\":\"Own the reference contract, narrow scope, review decisions, and release authority boundaries.\",\"role\":\"Project stewardship\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-maintainers\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/maintainers\"},{\"directory\":\"workspaces/triage\",\"id\":\"triage\",\"name\":\"triage\",\"purpose\":\"Reproduce the two deliberate logic defects and turn each into precise repair work.\",\"role\":\"Reproduction and issue triage\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-triage\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/triage\"},{\"directory\":\"workspaces/engineering\",\"id\":\"engineering\",\"name\":\"engineering\",\"purpose\":\"Prepare narrowly scoped deduplication and deterministic ordering fixes without rewriting the project.\",\"role\":\"Reference-project engineering\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-engineering\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/engineering\"},{\"directory\":\"workspaces/security\",\"id\":\"security\",\"name\":\"security\",\"purpose\":\"Review bounded inert data handling and prevent file, network, command, or identity capabilities from being added.\",\"role\":\"Defensive input-boundary review\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-security\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/security\"},{\"directory\":\"workspaces/docs\",\"id\":\"docs\",\"name\":\"docs\",\"purpose\":\"Keep quickstart, behavior, repair guidance, and release notes aligned with observed code.\",\"role\":\"Contributor and operator documentation\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-docs\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/docs\"},{\"directory\":\"workspaces/release\",\"id\":\"release\",\"name\":\"release\",\"purpose\":\"Enforce strict contract checks and plan any later separately approved publication.\",\"role\":\"Acceptance and release operations\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-release\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/release\"},{\"directory\":\"workspaces/community\",\"id\":\"community\",\"name\":\"community\",\"purpose\":\"Prepare respectful synthetic issue intake and honest announcement drafts without outreach.\",\"role\":\"Contributor experience\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-community\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/teams/community\"},{\"directory\":\"workspaces/casework\",\"id\":\"casework\",\"name\":\"Shared delivery case\",\"purpose\":\"Own synthetic intake, shared inputs, and accepted deliverables.\",\"role\":\"case-custodian\",\"scaffold\":{\"kind\":\"workspace\",\"mode\":\"hive\",\"slug\":\"open-source-infrastructure-foundation-casework\",\"world_id\":\"demo-open-source-infrastructure-foundation\"},\"template\":\"templates/casework\"}]}\n","path":"initialize.json","sha256":"05798b99d1f7ed2812a135732c89df0af000cc5721dbdf9148f0d7e3a2cb0b67"},{"bytes":6437,"content":"{\"authority\":\"inert-starter-data\",\"classification\":\"public-synthetic\",\"dependencies\":{\"activation\":\"Separate owner-approved native plans are required; the seed grants no authority.\",\"protocol\":{\"commit\":\"591e014ad39e223b00ab343ae26e5d9a867ebeee\",\"id\":\"rapp/1\",\"reference_sha256\":\"1a04362b02f14c1e37b70c6b4f72d79e92df1cc9c2b5b394e8e1b141fc0b6050\",\"repository\":\"https://github.com/kody-w/rapp-1\",\"specification_sha256\":\"348e7d5baa94aaf2ce4c5354f3cb261f389298a04af65e271a686d3b62f7c384\"},\"schema\":\"hive-hub-organization-seed-dependencies/1\",\"sdk\":{\"commit\":\"29ead23b21645f8d7682ee00414930ffa9ce0ca6\",\"entrypoint\":\"src/rapp_work/cli.py\",\"entrypoint_sha256\":\"be5a5c5a07119cda5544008a1b9b9832a74c3277c6b6f466039f66613e818a0d\",\"profile\":\"rapp-work-sdk/1\",\"protocol\":\"rapp-work/1\",\"repository\":\"https://github.com/kody-w/rapp-work\"}},\"initialize\":\"initialize.json\",\"inventory\":[{\"bytes\":1079,\"path\":\"LICENSE\",\"sha256\":\"3ca4ef7120c79e55fa3c113f2c6366a072b685018d2bf736ff2bcfceba57a77f\"},{\"bytes\":3550,\"path\":\"README.md\",\"sha256\":\"68604dc14fd00e26c7072801a164af2bba693d184ae458059b3fe76eff896c53\"},{\"bytes\":4774,\"path\":\"initialize.json\",\"sha256\":\"05798b99d1f7ed2812a135732c89df0af000cc5721dbdf9148f0d7e3a2cb0b67\"},{\"bytes\":636,\"path\":\"templates/casework/work/ACCEPTANCE.md\",\"sha256\":\"e70b0728ee09d213fba1cfb1c9aed513a6567456aa95c712c8d88a7a949c5d7f\"},{\"bytes\":1482,\"path\":\"templates/casework/work/intake.json\",\"sha256\":\"a20b8ca75e827269e1b503edebde8f611b42b2ee6b817ec1f0dff19428c9281f\"},{\"bytes\":590,\"path\":\"templates/casework/work/starter/LICENSE.txt\",\"sha256\":\"ca37215db74226fbb5b58788cd950cc5bf3696c86cd5988d04060343df74ab7a\"},{\"bytes\":1955,\"path\":\"templates/casework/work/starter/README.md\",\"sha256\":\"1f6f9b92df47c898641b5da65c7d8f04cec2248b8b9eda3d492bda862109472a\"},{\"bytes\":323,\"path\":\"templates/casework/work/starter/data/events-clean.jsonl\",\"sha256\":\"28025d47bfbdfcb4b7b59d98a6bb4b671c4dcc574facdc65f26836468f75a28e\"},{\"bytes\":430,\"path\":\"templates/casework/work/starter/data/events-duplicate.jsonl\",\"sha256\":\"209a05fc4bc3c8582e966d471200397521c9a1592b75820c5ef9439697247de3\"},{\"bytes\":323,\"path\":\"templates/casework/work/starter/data/events-out-of-order.jsonl\",\"sha256\":\"d05949223d4d8e5c4eaf8a5a4df1ed5cd949eb67a4f861fa8753bc0e9e503b7d\"},{\"bytes\":1210,\"path\":\"templates/casework/work/starter/data/expected-contract.json\",\"sha256\":\"bf733860bbf7bd53e8ad9fdfcb06ed29d1c5f97b0f25d8152f3ef20d7c7219d5\"},{\"bytes\":1365,\"path\":\"templates/casework/work/starter/docs/charter.md\",\"sha256\":\"3b6c394d22b53b2e17844a3f9f1927a64df290a948cccca8c99da9d772e12ac4\"},{\"bytes\":1419,\"path\":\"templates/casework/work/starter/docs/community-intake.md\",\"sha256\":\"f0aed797c18eca8c77f36c2b7a9d3fe52928c64a02856028cdb2a2dee996dea0\"},{\"bytes\":2003,\"path\":\"templates/casework/work/starter/docs/contract.md\",\"sha256\":\"788a25c7ebbb3bf248b90536da3912b1d7fcbae6fddf8c6bf1b01afc460c9664\"},{\"bytes\":1759,\"path\":\"templates/casework/work/starter/docs/contribution-guide.md\",\"sha256\":\"e311c2aa6d75e5f0231d70c3ba7c8d259c96aedb14b150943b67e4f077f80d08\"},{\"bytes\":496,\"path\":\"templates/casework/work/starter/docs/issue-register.csv\",\"sha256\":\"f3f5b5d48fb958b853d9a76a64f2698c09e4bdb0a74ecf1d61d7e3d08da4f6a4\"},{\"bytes\":1553,\"path\":\"templates/casework/work/starter/docs/release-checklist.md\",\"sha256\":\"f7b5f07abcecb40b18dc9d6367700db86c0fcccf1848b310cd61dc2b6f22efdb\"},{\"bytes\":1437,\"path\":\"templates/casework/work/starter/docs/security-boundary.md\",\"sha256\":\"50722fe7756eaa9f99e8076bd2ea1d0e6e12af49333ef52ded90be0977d655d8\"},{\"bytes\":2305,\"path\":\"templates/casework/work/starter/reference/check_acceptance.py\",\"sha256\":\"c0e6320a0862eb2b2e06b0c19f74cf5b6394546339f62639b715ff3e1b4f10ef\"},{\"bytes\":3932,\"path\":\"templates/casework/work/starter/reference/line_ledger.py\",\"sha256\":\"a43d89fdb69d00d00de21dbaff54a206196c6bbf81c5bd15b2282c1faf8b786d\"},{\"bytes\":3475,\"path\":\"templates/casework/work/starter/reference/test_baseline.py\",\"sha256\":\"62fb17a1ea6975afd8d97871340fcce026d9aa22bbee1d29284c64111bf52fe8\"},{\"bytes\":11357,\"path\":\"templates/casework/work/task-board.json\",\"sha256\":\"aa01486bb4ec61a5634016168a2e8e05929824e8fdae32871485f8d77199261d\"},{\"bytes\":360,\"path\":\"templates/teams/community/work/TEAM.md\",\"sha256\":\"00071c1da0254fd9a9cb436a6636da8cd53f7525140eabbadc2d32a376803b52\"},{\"bytes\":1811,\"path\":\"templates/teams/community/work/tasks.json\",\"sha256\":\"184440fd40c005398ae1d5dda821f87cd24772eab20b594137453ab0c9769214\"},{\"bytes\":370,\"path\":\"templates/teams/docs/work/TEAM.md\",\"sha256\":\"198429f81ef66cc6656c2c87e38f0e432328d01bac06a89e491393d58bb2e8d7\"},{\"bytes\":1799,\"path\":\"templates/teams/docs/work/tasks.json\",\"sha256\":\"5820ec96e7361ca1d9cec10378becbc4d2a11f6b14a848d7d8ee32f5b352801f\"},{\"bytes\":380,\"path\":\"templates/teams/engineering/work/TEAM.md\",\"sha256\":\"15d3fff295e1f44b6e03a8fc2363bb4a1f63c0471a691925e807f373bbe7618e\"},{\"bytes\":2045,\"path\":\"templates/teams/engineering/work/tasks.json\",\"sha256\":\"ec18a1a7e5c1d43c3224f892593736c4a58152369e5896baa00e1cb7c5462323\"},{\"bytes\":362,\"path\":\"templates/teams/maintainers/work/TEAM.md\",\"sha256\":\"83f28b94751362e750cb1f9f8ac0d3996c4addcf610d70f19b9d6e3b126924c0\"},{\"bytes\":1812,\"path\":\"templates/teams/maintainers/work/tasks.json\",\"sha256\":\"f88fdcf033f9e568f73c09cd4f36c1f1cbabd96e4c75b113d0b899aeb494b96d\"},{\"bytes\":361,\"path\":\"templates/teams/release/work/TEAM.md\",\"sha256\":\"6e0cb5e8541c1ddbe8fa557c054f04773197374fd9980fd8075fadae725e8eee\"},{\"bytes\":2052,\"path\":\"templates/teams/release/work/tasks.json\",\"sha256\":\"ed93401148c5d1b38114541fb77628bea6cee4208852215df8ed734785e937c9\"},{\"bytes\":391,\"path\":\"templates/teams/security/work/TEAM.md\",\"sha256\":\"79e213374fe6c5c1d88af9eaff0af58ea3095fccfb55c779661aec5a10ebc8dc\"},{\"bytes\":1128,\"path\":\"templates/teams/security/work/tasks.json\",\"sha256\":\"61b9e23dbe8b0ebb43d5895479002cbbf84d444851ba6203658a01a372a34fae\"},{\"bytes\":356,\"path\":\"templates/teams/triage/work/TEAM.md\",\"sha256\":\"c149148b69ec22f51e8a3a0341ccfb2682333e1b9a5029208df1a2469541eec2\"},{\"bytes\":1195,\"path\":\"templates/teams/triage/work/tasks.json\",\"sha256\":\"bae7f388a12f1c1073038d3010d7d5d9fe19e3e4a5d5ad7602a48be0af6e82bf\"}],\"license\":\"MIT\",\"name\":\"The Open-Source Infrastructure Foundation\",\"protocol\":\"rapp-work/1\",\"related_seeds\":[\"enterprise-transformation-firm\",\"product-launch-company\"],\"schema\":\"hive-hub-organization-seed-manifest/1\",\"slug\":\"open-source-infrastructure-foundation\",\"status\":\"seed-not-activated\",\"workspace_profile\":\"rapp-work-sdk/1\",\"world_id\":\"demo-open-source-infrastructure-foundation\"}\n","path":"seed.json","sha256":"7fdbf523871320afc6ac296e514d72e5a05c88333cebe2be00c3020d7f1cc36f"},{"bytes":636,"content":"# Case acceptance\n\n- The untouched reference characterizes one passing and two failing strict contract cases; failures are not hidden as completed fixes.\n- Repair proposals address identical-ID deduplication and deterministic ordering by at_minute then event_id.\n- Bounded input validation, conflict rejection, no-mutation behavior, and offline operation are preserved.\n- A release candidate requires the strict contract checker to pass every case plus reviewed regression tests.\n- Source ownership, remaining limitations, and external publication approvals are explicit.\n\nNo reference artifact counts as completed work without review.\n","path":"templates/casework/work/ACCEPTANCE.md","sha256":"e70b0728ee09d213fba1cfb1c9aed513a6567456aa95c712c8d88a7a949c5d7f"},{"bytes":1482,"content":"{\"brief\":\"Line Ledger is an original Python standard-library reference, not copied infrastructure or a real private project. Its SYNTHETIC JSONL fixtures model harmless open/close events for fictional work items. The implementation deliberately counts repeated identical event IDs twice and follows arrival order instead of event time. One clean contract case passes; two defect cases fail. The organization must reproduce, repair, review, and only then consider release.\",\"classification\":\"public-synthetic\",\"id\":\"line-ledger-repair-cycle\",\"inputs\":[\"starter/docs/charter.md\",\"starter/docs/contract.md\",\"starter/docs/issue-register.csv\",\"starter/data/events-clean.jsonl\",\"starter/data/events-duplicate.jsonl\",\"starter/data/events-out-of-order.jsonl\",\"starter/data/expected-contract.json\",\"starter/reference/line_ledger.py\"],\"success_criteria\":[\"The untouched reference characterizes one passing and two failing strict contract cases; failures are not hidden as completed fixes.\",\"Repair proposals address identical-ID deduplication and deterministic ordering by at_minute then event_id.\",\"Bounded input validation, conflict rejection, no-mutation behavior, and offline operation are preserved.\",\"A release candidate requires the strict contract checker to pass every case plus reviewed regression tests.\",\"Source ownership, remaining limitations, and external publication approvals are explicit.\"],\"title\":\"Line Ledger: repair duplicate counting and out-of-order state reduction\"}\n","path":"templates/casework/work/intake.json","sha256":"a20b8ca75e827269e1b503edebde8f611b42b2ee6b817ec1f0dff19428c9281f"},{"bytes":590,"content":"Permission notice for this original reference package\n\nYou may use, study, copy, modify, combine, and redistribute these original\nsource files and synthetic fixtures, including commercially, if you retain\nthis notice and clearly distinguish your changes from the supplied reference.\n\nThe materials are provided without a promise of correctness, fitness, support,\nor warranty. They deliberately include the documented starter defects. Users\nare responsible for evaluating any use and obtaining their own operational\nauthority. This notice grants no rights in third-party names or materials.\n","path":"templates/casework/work/starter/LICENSE.txt","sha256":"ca37215db74226fbb5b58788cd950cc5bf3696c86cd5988d04060343df74ab7a"},{"bytes":1955,"content":"# The Open-Source Infrastructure Foundation\n\n**Original deliberately imperfect reference project: Line Ledger.**\nAll work-item events are **SYNTHETIC** inert data. No third-party source,\nprivate repository content, real issue tracker, credentials, or hostile\nhost-affecting fixture is included.\n\nLine Ledger reduces small JSONL open/close events into a work-item summary.\nThe reference intentionally has two ordinary logic defects:\n\n1. Identical event IDs are counted again instead of deduplicated.\n2. Arrival order determines final state instead of event minute / event ID.\n\nThese are starter repair tasks. They have **not** been fixed in this source\npackage, and this reference is **not release-ready**.\n\n## Reproduce locally\n\nFrom `files/`, using Python 3.10 or newer:\n\n```sh\npython3 -I -B reference/test_baseline.py\npython3 -I -B reference/line_ledger.py data/events-clean.jsonl\npython3 -I -B reference/check_acceptance.py --characterize\npython3 -I -B reference/check_acceptance.py\n```\n\nNo installs, network, server, subprocesses, or writes are used. The first\nthree commands should exit 0. The final strict checker intentionally exits\n**1**, with one passing case and two failing cases. Characterization confirms\nthe supplied defects; it is not a substitute for strict acceptance.\n\nThe seven team workspaces own scope, reproduction, two sequential patches,\nboundary review, contributor docs, candidate acceptance, and approval-gated\nrelease planning. `docs/contract.md` defines desired behavior;\n`data/expected-contract.json` must not be weakened to hide the defects.\nReference baseline tests characterize the original; a future fixed candidate\nmust update those characterization assertions to the corrected behavior.\n\nAll source and fixtures were authored for this seed. The short permission\nnotice applies to these original materials, not to any external project.\nNothing grants publication, signing, identity, membership, or repository\nauthority.\n","path":"templates/casework/work/starter/README.md","sha256":"1f6f9b92df47c898641b5da65c7d8f04cec2248b8b9eda3d492bda862109472a"},{"bytes":323,"content":"{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-open\",\"item_id\":\"item-a\",\"action\":\"open\",\"at_minute\":10}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-close\",\"item_id\":\"item-a\",\"action\":\"close\",\"at_minute\":20}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-b-open\",\"item_id\":\"item-b\",\"action\":\"open\",\"at_minute\":15}\n","path":"templates/casework/work/starter/data/events-clean.jsonl","sha256":"28025d47bfbdfcb4b7b59d98a6bb4b671c4dcc574facdc65f26836468f75a28e"},{"bytes":430,"content":"{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-open\",\"item_id\":\"item-a\",\"action\":\"open\",\"at_minute\":10}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-open\",\"item_id\":\"item-a\",\"action\":\"open\",\"at_minute\":10}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-close\",\"item_id\":\"item-a\",\"action\":\"close\",\"at_minute\":20}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-b-open\",\"item_id\":\"item-b\",\"action\":\"open\",\"at_minute\":15}\n","path":"templates/casework/work/starter/data/events-duplicate.jsonl","sha256":"209a05fc4bc3c8582e966d471200397521c9a1592b75820c5ef9439697247de3"},{"bytes":323,"content":"{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-close\",\"item_id\":\"item-a\",\"action\":\"close\",\"at_minute\":20}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-a-open\",\"item_id\":\"item-a\",\"action\":\"open\",\"at_minute\":10}\n{\"classification\":\"SYNTHETIC\",\"event_id\":\"event-b-open\",\"item_id\":\"item-b\",\"action\":\"open\",\"at_minute\":15}\n","path":"templates/casework/work/starter/data/events-out-of-order.jsonl","sha256":"d05949223d4d8e5c4eaf8a5a4df1ed5cd949eb67a4f861fa8753bc0e9e503b7d"},{"bytes":1210,"content":"{\n  \"classification\": \"SYNTHETIC\",\n  \"artifact_kind\": \"desired-contract-not-a-completed-repair\",\n  \"cases\": [\n    {\n      \"id\": \"clean\", \"fixture\": \"events-clean.jsonl\", \"reference_passes\": true,\n      \"expected\": {\"event_count\": 3, \"open_items\": 1, \"closed_items\": 1, \"items\": [\n        {\"item_id\": \"item-a\", \"state\": \"closed\", \"event_count\": 2, \"last_minute\": 20},\n        {\"item_id\": \"item-b\", \"state\": \"open\", \"event_count\": 1, \"last_minute\": 15}\n      ]}\n    },\n    {\n      \"id\": \"duplicate\", \"fixture\": \"events-duplicate.jsonl\", \"reference_passes\": false,\n      \"expected\": {\"event_count\": 3, \"open_items\": 1, \"closed_items\": 1, \"items\": [\n        {\"item_id\": \"item-a\", \"state\": \"closed\", \"event_count\": 2, \"last_minute\": 20},\n        {\"item_id\": \"item-b\", \"state\": \"open\", \"event_count\": 1, \"last_minute\": 15}\n      ]}\n    },\n    {\n      \"id\": \"out-of-order\", \"fixture\": \"events-out-of-order.jsonl\", \"reference_passes\": false,\n      \"expected\": {\"event_count\": 3, \"open_items\": 1, \"closed_items\": 1, \"items\": [\n        {\"item_id\": \"item-a\", \"state\": \"closed\", \"event_count\": 2, \"last_minute\": 20},\n        {\"item_id\": \"item-b\", \"state\": \"open\", \"event_count\": 1, \"last_minute\": 15}\n      ]}\n    }\n  ]\n}\n","path":"templates/casework/work/starter/data/expected-contract.json","sha256":"bf733860bbf7bd53e8ad9fdfcb06ed29d1c5f97b0f25d8152f3ef20d7c7219d5"},{"bytes":1365,"content":"# Foundation charter\n\n**SYNTHETIC project exercise, original source, no activated organization.**\n\nMaintain a tiny, understandable event reducer rather than inventing a new\ndistributed runtime. Line Ledger is a pure local data tool; it is not a queue\nservice, RAPP protocol, signed log, identity system, or source of authority.\nKeep its code small enough that contributors can reason about the complete\ncontract.\n\n## This cycle\n\n- Reproduce two deliberately present defects before repairing anything.\n- Correct deduplication first, then stable event ordering.\n- Preserve bounded validation, deterministic output, and no input mutation.\n- Require strict desired-behavior tests and regression evidence before a\n  candidate can be considered for any later release.\n- Keep contributor guidance usable while the reference is still failing.\n\nMaintainers own scope and review; triage owns reproducibility; engineering\nowns candidate patches; security reviews the inert input boundary; docs own\noperator clarity; release owns evidence gates; community owns respectful\nintake. These are workspace responsibilities, not created memberships.\n\nNo actual repository issue, release, contributor, adoption result, download\ncount, or public announcement exists in this case. The seed provides original\nsource work and an honest dependency graph, not fabricated community activity.\n","path":"templates/casework/work/starter/docs/charter.md","sha256":"3b6c394d22b53b2e17844a3f9f1927a64df290a948cccca8c99da9d772e12ac4"},{"bytes":1419,"content":"# Community starter\n\n**Fictional contributor workflow; no people, issues, or memberships exist.**\n\n## Example issue description\n\nTitle: “Repeated identical event changes the reference count.”\n\nUsing the public synthetic duplicate fixture, I expect 3 unique events.\nThe original reducer returns 4. The repeated `event-a-open` payload is\nidentical. The clean fixture is unaffected. This is reproducible offline\nwith the authored CLI; no real logs or host-modifying steps are necessary.\n\nThis is an example issue body, not an issue that was opened.\n\n## Minimum intake fields\n\nProject/candidate version, short symptom, exact authored command, minimal\nsynthetic fixture, expected summary, actual summary, and whether the issue\nalso appears on the clean case. Environment/version is optional unless\nneeded for reproduction. A contributor may omit personal identity.\n\nAsk for respectful behavior and precise evidence. Do not request tokens,\ncredentials, private repository URLs, customer logs, personal data, or a\nproduction reproduction. Do not accept “tests green” without specifying\nwhether the run was characterization or strict acceptance.\n\nAfter an actual authorized candidate exists, an owner may decide to share a\ndraft announcement. Its claims must link to observed fixes and actual\npublication evidence. This seed does not create a contributor program,\noutreach list, support promise, or community activity.\n","path":"templates/casework/work/starter/docs/community-intake.md","sha256":"f0aed797c18eca8c77f36c2b7a9d3fe52928c64a02856028cdb2a2dee996dea0"},{"bytes":2003,"content":"# Line Ledger desired behavior\n\nAll supplied event records are **SYNTHETIC**. This is a local reference data\ncontract, not a messaging protocol or authority-bearing event format.\n\n## Input\n\nA UTF-8 JSONL file of at most 1 MiB and at most 5,000 nonblank records. Each\nline is at most 16 KiB. Every event has exactly:\n\n- `classification`: the literal `SYNTHETIC` for this public reference.\n- `event_id`: lowercase-hyphenated text, 1–40 characters.\n- `item_id`: lowercase-hyphenated text, 1–40 characters.\n- `action`: `open` or `close`.\n- `at_minute`: integer 0–1,000,000; booleans are not integers here.\n\nEmpty files summarize to zero events/items. Blank lines are ignored. Invalid\nJSON, duplicate JSON object keys, unknown fields/actions, invalid values, and\nconflicting reuse of one event ID are rejected. A close without an earlier\nopen is permitted and leaves that item closed; this is state reduction, not\nprocess authorization.\n\n## Desired reduction\n\n1. Validate the complete bounded input.\n2. Deduplicate identical event IDs. An ID with any different payload is an\n   error, not a last-write-wins update.\n3. Sort unique events by `(at_minute, event_id)`, ascending. At equal minute,\n   lexically later event ID is applied last. This tie rule is deterministic,\n   not a claim of causal truth.\n4. Apply open/close actions, counting unique events per item.\n5. Return items sorted by item ID, each with final state, unique event count,\n   and last applied minute; return global event/open/closed counts.\n\nDo not mutate input dictionaries or add I/O to reduction. No timestamps are\ninferred from the machine clock. No commands are interpreted from strings.\n\n## Deliberate gaps in version 0.0.0-reference\n\nThe supplied reducer validates conflicts but does not remove identical\nduplicates, and it reduces arrival order without step 3. The original\nreference therefore fails two desired-behavior fixtures. A future repair must\nchange implementation and regression evidence, not the desired contract.\n","path":"templates/casework/work/starter/docs/contract.md","sha256":"788a25c7ebbb3bf248b90536da3912b1d7fcbae6fddf8c6bf1b01afc460c9664"},{"bytes":1759,"content":"# Contributor repair guide\n\n**Original code and SYNTHETIC fixtures only. No repair is already completed.**\n\nRead the full contract and run baseline tests, characterization, and strict\nacceptance before editing. Keep a distinction between:\n\n- `test_baseline.py`: source-reference characterization plus validation tests;\n- `check_acceptance.py`: desired contract comparison;\n- `--characterize`: verifies that this intentionally failing source still has\n  exactly the documented one-pass/two-fail shape.\n\n## Suggested patch boundaries\n\n**Deduplication patch:** preserve `validate_events` conflict detection, then\nretain one event per identical event ID. Verify duplicate input does not\nchange global or per-item counts. Keep the other ordering defect visible\nuntil its own patch is reviewed.\n\n**Ordering patch:** after deduplication, sort by minute and event ID.\nRegression tests should include reversed arrival order and equal-minute\nopen/close events. Keep item output order deterministic.\n\nThe blueprint serializes these patches so two teams do not write competing\nedits to the same tiny function. A patch deliverable is reviewable code, not\nevidence it was applied, merged, tagged, or published.\n\nFor a fixed candidate, replace assertions that intentionally characterize\nwrong behavior with corrected-behavior assertions. Do not keep tests that\nrequire the bug forever. Do not change the desired expected-contract values\nor remove failure cases to achieve a green gate. After fixes, strict mode,\nnot original characterization mode, is the release criterion.\n\nNo package installation, network, fixture command execution, live project\naccess, or host-modifying test is needed. Use in-memory dictionaries for\nvalidation cases and preserve source fixture bytes.\n","path":"templates/casework/work/starter/docs/contribution-guide.md","sha256":"e311c2aa6d75e5f0231d70c3ba7c8d259c96aedb14b150943b67e4f077f80d08"},{"bytes":496,"content":"classification,issue-id,title,fixture,expected,reference-actual,repair-boundary\nSYNTHETIC,ll-duplicate,Repeated identical event is counted twice,data/events-duplicate.jsonl,3 global events and 2 for item-a,4 global events and 3 for item-a,Deduplicate identical IDs after conflict validation\nSYNTHETIC,ll-order,Arrival order overrides later event minute,data/events-out-of-order.jsonl,item-a closed at minute 20,item-a open at minute 10,Sort unique events by minute then event ID before reduction\n","path":"templates/casework/work/starter/docs/issue-register.csv","sha256":"f3f5b5d48fb958b853d9a76a64f2698c09e4bdb0a74ecf1d61d7e3d08da4f6a4"},{"bytes":1553,"content":"# Release acceptance checklist\n\n**Planning material only. No release, tag, signature, or upload exists.**\n\n1. Desired behavior remains identical to `docs/contract.md`.\n2. Both patches are reviewed in order and applied only to an explicitly\n   selected candidate copy owned by the consumer.\n3. Strict `check_acceptance.py` exits 0 with all three cases passing.\n4. Candidate regression tests check unique counts, chronological reduction,\n   same-minute tie-breaking, conflict rejection, invalid inputs, and no\n   in-memory mutation.\n5. Original bug-characterization assertions are updated to fixed behavior;\n   desired acceptance fixtures are not weakened.\n6. Input limits and no-network/no-write boundaries remain intact.\n7. Candidate public-source file hashes, test commands, environment, original\n   permission notice, and unresolved limitations are recorded.\n8. Maintainer recommendation is explicit, but publication and signing still\n   require separate real owner authority.\n9. A proposed destination, version, artifact inventory, and withdrawal plan\n   are reviewed before any external operation.\n\nDo not use a zero exit from `--characterize` as item 3. It means the known\nfailures were reproduced, and the result explicitly says release-ineligible.\n\nRemaining limitations even after repairs: no durable event store, streaming,\nauthentication, real-time coordination, causal clocks, concurrency, audit\nsignatures, or proof that a work item was actually opened or closed. This is\nan offline reducer of synthetic data, not production infrastructure.\n","path":"templates/casework/work/starter/docs/release-checklist.md","sha256":"f7b5f07abcecb40b18dc9d6367700db86c0fcccf1848b310cd61dc2b6f22efdb"},{"bytes":1437,"content":"# Defensive boundary\n\n**SYNTHETIC fixtures. Ordinary logic defects, not a claim of exploitable\nvulnerabilities.** This source package has not undergone a security audit.\n\nThe program reads one explicitly selected bounded ordinary file, parses\nstrict JSON records, validates a small allowlisted shape, and writes a JSON\nsummary to stdout. No fixture is imported as Python or interpreted as a\nshell command. There are no executable payloads, callback URLs, remote\ndependencies, secrets, system modifications, or identity material.\n\nThe reference refuses files above 1 MiB, lines above 16 KiB, more than 5,000\nevents, unknown fields, conflicting event IDs, and invalid minute values.\nTests create only harmless dictionaries and strings in memory. They do not\nprobe the host, access private files, create network listeners, or attempt\nadversarial actions against a real service.\n\nReview proposed fixes for accidental capability growth: a reducer does not\nneed filesystem writes, dynamic imports, subprocesses, networking, runtime\nplugins, or repository discovery. Keep input path selection explicit. The CLI\nrejects symlinks and non-regular inputs for this reference boundary.\n\nIf a later contributor reports a genuine vulnerability, follow the real\nowner's approved reporting process and use a minimal inert reproduction.\nDo not post credentials or private logs, and do not fabricate a disclosure\nendpoint or assurance claim for this seed.\n","path":"templates/casework/work/starter/docs/security-boundary.md","sha256":"50722fe7756eaa9f99e8076bd2ea1d0e6e12af49333ef52ded90be0977d655d8"},{"bytes":2305,"content":"\"\"\"Strict desired-behavior checks; --characterize verifies known baseline failures.\"\"\"\n\nimport argparse\nimport importlib.util\nimport json\nimport re\nfrom pathlib import Path\n\nHERE = Path(__file__).resolve().parent\nDATA = HERE.parent / \"data\"\nSPEC = importlib.util.spec_from_file_location(\"line_ledger_acceptance\", HERE / \"line_ledger.py\")\nledger = importlib.util.module_from_spec(SPEC)\nSPEC.loader.exec_module(ledger)\n\n\ndef check():\n    fixtures = json.loads((DATA / \"expected-contract.json\").read_text(encoding=\"utf-8\"))[\"cases\"]\n    observations = []\n    for fixture in fixtures:\n        if not re.fullmatch(r\"[a-z0-9-]+\\.jsonl\", fixture[\"fixture\"]):\n            raise ValueError(\"fixture must be a local JSONL basename\")\n        actual = ledger.reduce_events(ledger.load_events(DATA / fixture[\"fixture\"]))\n        passed = actual == fixture[\"expected\"]\n        observations.append({\n            \"id\": fixture[\"id\"], \"passed\": passed,\n            \"reference_passes\": fixture[\"reference_passes\"],\n            \"matches_reference_characterization\": passed == fixture[\"reference_passes\"],\n            \"expected\": fixture[\"expected\"], \"actual\": actual,\n        })\n    return {\n        \"classification\": \"SYNTHETIC\",\n        \"artifact_kind\": \"reference-contract-check\",\n        \"release_eligible\": bool(observations) and all(row[\"passed\"] for row in observations),\n        \"passing_cases\": sum(row[\"passed\"] for row in observations),\n        \"failing_cases\": sum(not row[\"passed\"] for row in observations),\n        \"observations\": observations,\n    }\n\n\ndef main():\n    parser = argparse.ArgumentParser(description=__doc__)\n    parser.add_argument(\"--characterize\", action=\"store_true\", help=\"succeed only when the supplied known-failure pattern is reproduced\")\n    args = parser.parse_args()\n    result = check()\n    result[\"mode\"] = \"reference-characterization\" if args.characterize else \"strict-acceptance\"\n    if args.characterize:\n        result[\"warning\"] = \"Matching known failures is not a release pass.\"\n    print(json.dumps(result, indent=2, sort_keys=True))\n    if args.characterize:\n        return 0 if all(row[\"matches_reference_characterization\"] for row in result[\"observations\"]) else 1\n    return 0 if result[\"release_eligible\"] else 1\n\n\nif __name__ == \"__main__\":\n    raise SystemExit(main())\n","path":"templates/casework/work/starter/reference/check_acceptance.py","sha256":"c0e6320a0862eb2b2e06b0c19f74cf5b6394546339f62639b715ff3e1b4f10ef"},{"bytes":3932,"content":"\"\"\"Original deliberately imperfect reducer. See ll-duplicate and ll-order.\"\"\"\n\nimport argparse\nimport json\nimport re\nimport stat\nfrom pathlib import Path\n\nVERSION = \"0.0.0-reference\"\nMAX_BYTES = 1_048_576\nMAX_EVENTS = 5000\nFIELDS = {\"classification\", \"event_id\", \"item_id\", \"action\", \"at_minute\"}\n\n\ndef unique_object(pairs):\n    result = {}\n    for key, value in pairs:\n        if key in result:\n            raise ValueError(\"duplicate JSON object key\")\n        result[key] = value\n    return result\n\n\ndef validate_events(events):\n    if not isinstance(events, list) or len(events) > MAX_EVENTS:\n        raise ValueError(\"expected at most 5000 events\")\n    seen = {}\n    for event in events:\n        if not isinstance(event, dict) or set(event) != FIELDS:\n            raise ValueError(\"event fields do not match the reference contract\")\n        if event[\"classification\"] != \"SYNTHETIC\":\n            raise ValueError(\"this reference accepts only explicitly SYNTHETIC events\")\n        for field in (\"event_id\", \"item_id\"):\n            value = event[field]\n            if not isinstance(value, str) or len(value) > 40 or not re.fullmatch(r\"[a-z0-9]+(?:-[a-z0-9]+)*\", value):\n                raise ValueError(f\"invalid {field}\")\n        if event[\"action\"] not in (\"open\", \"close\"):\n            raise ValueError(\"invalid action\")\n        minute = event[\"at_minute\"]\n        if type(minute) is not int or not 0 <= minute <= 1_000_000:\n            raise ValueError(\"invalid at_minute\")\n        identity = event[\"event_id\"]\n        if identity in seen and seen[identity] != event:\n            raise ValueError(\"conflicting event_id\")\n        seen[identity] = event\n\n\ndef parse_text(text):\n    if len(text.encode(\"utf-8\")) > MAX_BYTES:\n        raise ValueError(\"input exceeds 1 MiB\")\n    events = []\n    for line in text.splitlines():\n        if len(line.encode(\"utf-8\")) > 16_384:\n            raise ValueError(\"line exceeds 16 KiB\")\n        if line.strip():\n            events.append(json.loads(line, object_pairs_hook=unique_object))\n        if len(events) > MAX_EVENTS:\n            raise ValueError(\"input exceeds 5000 events\")\n    validate_events(events)\n    return events\n\n\ndef load_events(path):\n    path = Path(path)\n    info = path.lstat()\n    if not stat.S_ISREG(info.st_mode) or path.is_symlink():\n        raise ValueError(\"input must be an explicitly selected regular non-symlink file\")\n    with path.open(\"rb\") as handle:\n        data = handle.read(MAX_BYTES + 1)\n    if len(data) > MAX_BYTES:\n        raise ValueError(\"input exceeds 1 MiB\")\n    return parse_text(data.decode(\"utf-8\"))\n\n\ndef reduce_events(events):\n    validate_events(events)\n    items = {}\n    # Deliberate starter defects: duplicate events remain, and arrival order is used.\n    for event in events:\n        identity = event[\"item_id\"]\n        item = items.setdefault(identity, {\"item_id\": identity, \"state\": \"closed\", \"event_count\": 0, \"last_minute\": 0})\n        item[\"event_count\"] += 1\n        item[\"state\"] = \"open\" if event[\"action\"] == \"open\" else \"closed\"\n        item[\"last_minute\"] = event[\"at_minute\"]\n    ordered = [items[key] for key in sorted(items)]\n    return {\n        \"event_count\": len(events),\n        \"open_items\": sum(item[\"state\"] == \"open\" for item in ordered),\n        \"closed_items\": sum(item[\"state\"] == \"closed\" for item in ordered),\n        \"items\": ordered,\n    }\n\n\ndef main():\n    parser = argparse.ArgumentParser(description=__doc__)\n    parser.add_argument(\"events\", type=Path)\n    args = parser.parse_args()\n    try:\n        result = reduce_events(load_events(args.events))\n    except (OSError, ValueError, TypeError) as exc:\n        parser.error(str(exc))\n    print(json.dumps({\n        \"classification\": \"SYNTHETIC\",\n        \"artifact_kind\": \"deliberately-imperfect-reference-not-release-ready\",\n        \"version\": VERSION,\n        \"result\": result,\n    }, indent=2, sort_keys=True))\n\n\nif __name__ == \"__main__\":\n    main()\n","path":"templates/casework/work/starter/reference/line_ledger.py","sha256":"a43d89fdb69d00d00de21dbaff54a206196c6bbf81c5bd15b2282c1faf8b786d"},{"bytes":3475,"content":"import copy\nimport importlib.util\nimport json\nimport unittest\nfrom pathlib import Path\n\nHERE = Path(__file__).resolve().parent\nDATA = HERE.parent / \"data\"\nSPEC = importlib.util.spec_from_file_location(\"line_ledger_reference\", HERE / \"line_ledger.py\")\nledger = importlib.util.module_from_spec(SPEC)\nSPEC.loader.exec_module(ledger)\n\n\nclass BaselineTests(unittest.TestCase):\n    def setUp(self):\n        self.events = ledger.load_events(DATA / \"events-clean.jsonl\")\n\n    def test_clean_contract(self):\n        expected = json.loads((DATA / \"expected-contract.json\").read_text(encoding=\"utf-8\"))[\"cases\"][0][\"expected\"]\n        self.assertEqual(ledger.reduce_events(self.events), expected)\n\n    def test_known_duplicate_defect_is_present(self):\n        actual = ledger.reduce_events(ledger.load_events(DATA / \"events-duplicate.jsonl\"))\n        self.assertEqual(actual[\"event_count\"], 4)\n        self.assertEqual(actual[\"items\"][0][\"event_count\"], 3)\n\n    def test_known_arrival_order_defect_is_present(self):\n        actual = ledger.reduce_events(ledger.load_events(DATA / \"events-out-of-order.jsonl\"))\n        self.assertEqual(actual[\"items\"][0][\"state\"], \"open\")\n        self.assertEqual(actual[\"items\"][0][\"last_minute\"], 10)\n\n    def test_no_input_mutation(self):\n        before = copy.deepcopy(self.events)\n        self.assertEqual(ledger.reduce_events(self.events), ledger.reduce_events(self.events))\n        self.assertEqual(self.events, before)\n\n    def test_conflicting_duplicate_rejected(self):\n        changed = dict(self.events[0], action=\"close\")\n        with self.assertRaisesRegex(ValueError, \"conflicting event_id\"):\n            ledger.reduce_events(self.events + [changed])\n\n    def test_invalid_action_and_extra_field(self):\n        for event in (dict(self.events[0], action=\"archive\"), dict(self.events[0], extra=\"inert-text\")):\n            with self.subTest(event=event), self.assertRaises(ValueError):\n                ledger.reduce_events([event])\n\n    def test_minute_bounds_and_boolean(self):\n        for minute in (-1, 1_000_001, 1.5, True, \"10\"):\n            with self.subTest(minute=minute), self.assertRaises(ValueError):\n                ledger.reduce_events([dict(self.events[0], at_minute=minute)])\n\n    def test_non_synthetic_input_rejected(self):\n        with self.assertRaises(ValueError):\n            ledger.reduce_events([dict(self.events[0], classification=\"unspecified\")])\n\n    def test_empty_and_blank_inputs(self):\n        self.assertEqual(ledger.reduce_events(ledger.parse_text(\"\\n  \\n\")), {\"event_count\": 0, \"open_items\": 0, \"closed_items\": 0, \"items\": []})\n\n    def test_duplicate_json_key_rejected(self):\n        with self.assertRaisesRegex(ValueError, \"duplicate JSON\"):\n            ledger.parse_text('{\"classification\":\"SYNTHETIC\",\"classification\":\"SYNTHETIC\"}')\n\n    def test_input_limits(self):\n        with self.assertRaises(ValueError):\n            ledger.parse_text(\" \" * (ledger.MAX_BYTES + 1))\n        with self.assertRaises(ValueError):\n            ledger.parse_text(\" \" * 16385)\n        with self.assertRaises(ValueError):\n            ledger.reduce_events([self.events[0]] * (ledger.MAX_EVENTS + 1))\n\n    def test_id_shape_and_missing_fields(self):\n        for event in (dict(self.events[0], item_id=\"not allowed\"), {\"classification\": \"SYNTHETIC\"}, None):\n            with self.subTest(event=event), self.assertRaises(ValueError):\n                ledger.reduce_events([event])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n","path":"templates/casework/work/starter/reference/test_baseline.py","sha256":"62fb17a1ea6975afd8d97871340fcce026d9aa22bbee1d29284c64111bf52fe8"},{"bytes":11357,"content":"{\"authority\":\"inert-starter-data\",\"case_id\":\"line-ledger-repair-cycle\",\"organization_seed\":\"open-source-infrastructure-foundation\",\"schema\":\"hive-hub-seed-task-board/1\",\"tasks\":[{\"acceptance\":[\"The scope names ll-duplicate and ll-order as unresolved starter defects.\",\"No third-party code, credentials, live project data, or runtime authority is required.\",\"A strict all-pass release gate is specified.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[],\"id\":\"maintainer-scope\",\"inputs\":[\"starter/docs/charter.md\",\"starter/docs/contract.md\",\"starter/LICENSE.txt\",\"starter/docs/issue-register.csv\"],\"instructions\":\"Confirm the supplied behavioral contract, original source license, and narrow repair scope. State that the current reference is deliberately not release-ready and that no public release is authorized by this seed.\",\"outputs\":[\"deliverables/repair-scope.md\"],\"state\":\"ready\",\"team\":\"maintainers\",\"title\":\"Open the two-defect repair cycle\"},{\"acceptance\":[\"Strict checking passes the clean case and fails exactly the duplicate and out-of-order cases.\",\"Characterization mode is labeled known-failure reproduction, not success of the desired behavior.\",\"The report includes exact commands and no host-affecting fixture execution.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-scope\"],\"id\":\"issue-reproduction\",\"inputs\":[\"deliverables/repair-scope.md\",\"starter/reference/line_ledger.py\",\"starter/reference/test_baseline.py\",\"starter/reference/check_acceptance.py\",\"starter/data/events-clean.jsonl\",\"starter/data/events-duplicate.jsonl\",\"starter/data/events-out-of-order.jsonl\",\"starter/data/expected-contract.json\",\"starter/docs/issue-register.csv\"],\"instructions\":\"Run the authored baseline tests, the characterization mode, and the strict checker on the supplied inert fixtures. Record expected and actual counts and item states. A zero characterization exit is not a release pass.\",\"outputs\":[\"deliverables/reproduced-issues.json\"],\"state\":\"blocked\",\"team\":\"triage\",\"title\":\"Reproduce the deliberate contract failures\"},{\"acceptance\":[\"File reads are explicitly selected and bounded; no network, execution, write, or identity capability is introduced.\",\"The review distinguishes logic defects from claims of an exploitable vulnerability.\",\"Any remaining boundary concern has a concrete proposed regression case using inert in-memory data.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-scope\"],\"id\":\"input-boundary-review\",\"inputs\":[\"deliverables/repair-scope.md\",\"starter/docs/security-boundary.md\",\"starter/reference/line_ledger.py\",\"starter/reference/test_baseline.py\",\"starter/docs/contract.md\"],\"instructions\":\"Review the original reducer and documented input limits. Check that fixtures are data, not commands, and that any proposed fixes preserve rejection of conflicting IDs, invalid actions, oversized input, and invalid minute values. Produce defensive findings only; no hostile host tests.\",\"outputs\":[\"deliverables/input-boundary-review.md\"],\"state\":\"blocked\",\"team\":\"security\",\"title\":\"Review the inert data boundary\"},{\"acceptance\":[\"The duplicate fixture's event_count becomes 3 and item-a event_count becomes 2.\",\"Conflicting duplicate payloads remain rejected.\",\"Expected desired results are unchanged and the second defect remains visible until separately repaired.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"issue-reproduction\",\"input-boundary-review\"],\"id\":\"deduplication-repair\",\"inputs\":[\"deliverables/reproduced-issues.json\",\"deliverables/input-boundary-review.md\",\"starter/reference/line_ledger.py\",\"starter/reference/test_baseline.py\",\"starter/data/events-duplicate.jsonl\",\"starter/data/expected-contract.json\",\"starter/docs/contribution-guide.md\"],\"instructions\":\"Create a reviewable patch that counts each identical event ID once while retaining rejection of conflicting payloads. Add or update regression tests; do not weaken expected-contract.json to make the defect disappear.\",\"outputs\":[\"deliverables/deduplication.patch\"],\"state\":\"blocked\",\"team\":\"engineering\",\"title\":\"Prepare the identical-event deduplication patch\"},{\"acceptance\":[\"The out-of-order fixture ends item-a closed with last_minute 20.\",\"Equal-minute events resolve by event_id rather than input order.\",\"The patch preserves original inputs and the deduplication fix.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"deduplication-repair\"],\"id\":\"ordering-repair\",\"inputs\":[\"deliverables/deduplication.patch\",\"deliverables/reproduced-issues.json\",\"starter/reference/line_ledger.py\",\"starter/data/events-out-of-order.jsonl\",\"starter/data/expected-contract.json\",\"starter/docs/contract.md\"],\"instructions\":\"Build on the deduplication patch and normalize event order by at_minute then event_id before reduction. Add a same-minute tie case and retain deterministic item ordering. Do not claim the patch was merged or released.\",\"outputs\":[\"deliverables/ordering.patch\"],\"state\":\"blocked\",\"team\":\"engineering\",\"title\":\"Prepare the deterministic event-order patch\"},{\"acceptance\":[\"A contributor can reproduce both defects without installing packages or starting a server.\",\"Expected nonzero strict-check exit is explicit.\",\"Documentation does not describe pending repairs as completed.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"issue-reproduction\"],\"id\":\"contributor-quickstart\",\"inputs\":[\"deliverables/reproduced-issues.json\",\"starter/docs/contribution-guide.md\",\"starter/docs/contract.md\",\"starter/README.md\"],\"instructions\":\"Use observed reproduction evidence to explain the project, safe fixture commands, two failure modes, and the difference between characterization and strict acceptance. Keep the documentation useful before fixes exist.\",\"outputs\":[\"deliverables/contributor-quickstart.md\"],\"state\":\"blocked\",\"team\":\"docs\",\"title\":\"Write a reproducible contributor quickstart\"},{\"acceptance\":[\"Strict checker exit 0 and every desired contract case are required for pass.\",\"Regression expectations are updated to fixed behavior without weakening contract targets.\",\"No missing candidate, failed test, or unperformed check is represented as release-ready.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"ordering-repair\",\"input-boundary-review\"],\"id\":\"candidate-acceptance\",\"inputs\":[\"deliverables/deduplication.patch\",\"deliverables/ordering.patch\",\"deliverables/input-boundary-review.md\",\"starter/reference/check_acceptance.py\",\"starter/data/expected-contract.json\",\"starter/reference/test_baseline.py\",\"starter/docs/release-checklist.md\"],\"instructions\":\"Apply reviewed patches only to the consumer's explicitly selected candidate copy, then run strict acceptance and regression tests. Record actual evidence or a blocker; the seed reference itself remains the historical failing baseline.\",\"outputs\":[\"deliverables/candidate-acceptance.json\"],\"state\":\"blocked\",\"team\":\"release\",\"title\":\"Evaluate a candidate against the strict contract\"},{\"acceptance\":[\"The form can describe both current defects using only public synthetic data.\",\"It requests no credential, private repository, contact list, or personal record.\",\"No issue, invitation, or community membership is actually created.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-scope\"],\"id\":\"community-intake\",\"inputs\":[\"deliverables/repair-scope.md\",\"starter/docs/community-intake.md\",\"starter/docs/security-boundary.md\"],\"instructions\":\"Draft a lightweight issue intake using the supplied synthetic examples. Ask for a minimal inert fixture, command, expected result, and actual result; discourage credentials, private logs, and host-affecting reproduction steps.\",\"outputs\":[\"deliverables/community-issue-form.md\"],\"state\":\"blocked\",\"team\":\"community\",\"title\":\"Prepare a contributor issue form\"},{\"acceptance\":[\"The review references observed strict acceptance and regression evidence.\",\"Only actual repairs may be described as implemented in the candidate.\",\"Publication and signing remain separate owner-authorized operations.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"candidate-acceptance\",\"contributor-quickstart\"],\"id\":\"maintainer-review\",\"inputs\":[\"deliverables/candidate-acceptance.json\",\"deliverables/contributor-quickstart.md\",\"deliverables/repair-scope.md\",\"deliverables/input-boundary-review.md\",\"starter/docs/contract.md\"],\"instructions\":\"Review the candidate acceptance, contributor quickstart, and scope. Confirm the repairs are limited, the boundary is preserved, and unresolved limitations are visible. Produce a decision proposal rather than a forged approval.\",\"outputs\":[\"deliverables/maintainer-review.md\"],\"state\":\"blocked\",\"team\":\"maintainers\",\"title\":\"Review candidate scope and evidence\"},{\"acceptance\":[\"Notes distinguish the failing source baseline from any tested candidate.\",\"No tag, package upload, signature, download count, or released version is invented.\",\"Event ordering, duplicate semantics, and remaining limitations are described accurately.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-review\"],\"id\":\"release-notes-draft\",\"inputs\":[\"deliverables/maintainer-review.md\",\"deliverables/candidate-acceptance.json\",\"deliverables/contributor-quickstart.md\",\"starter/docs/release-checklist.md\"],\"instructions\":\"Draft notes that explain desired fixed behavior, compatibility, remaining limits, and actual candidate evidence. If the maintainer recommendation is blocked, say so and retain draft status.\",\"outputs\":[\"deliverables/release-notes-draft.md\"],\"state\":\"blocked\",\"team\":\"docs\",\"title\":\"Draft evidence-linked release notes\"},{\"acceptance\":[\"A failing or unreviewed candidate blocks publication.\",\"Every external operation remains a separate explicit approval boundary.\",\"Hashes identify public candidate files only and are not represented as signatures.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"release-notes-draft\"],\"id\":\"release-plan\",\"inputs\":[\"deliverables/release-notes-draft.md\",\"deliverables/maintainer-review.md\",\"deliverables/candidate-acceptance.json\",\"starter/docs/release-checklist.md\",\"starter/LICENSE.txt\"],\"instructions\":\"Prepare an inert release plan with candidate hashes, proposed version, exact artifacts, checks, publication destination to be selected by an owner, and withdrawal steps. Do not publish, tag, sign, or mint identities.\",\"outputs\":[\"deliverables/publication-plan.json\"],\"state\":\"blocked\",\"team\":\"release\",\"title\":\"Prepare a separately approved publication plan\"},{\"acceptance\":[\"No contributors, adoption statistics, downloads, customers, or completed release are fabricated.\",\"The announcement gives safe local reproduction guidance.\",\"No external message or membership operation is performed.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"release-plan\",\"community-intake\"],\"id\":\"community-announcement\",\"inputs\":[\"deliverables/publication-plan.json\",\"deliverables/community-issue-form.md\",\"deliverables/release-notes-draft.md\",\"starter/docs/community-intake.md\"],\"instructions\":\"Prepare a concise announcement tied to the publication plan, explaining the original reference project and how to reproduce its behavior. Keep it a draft until actual authorized release evidence exists.\",\"outputs\":[\"deliverables/community-announcement-draft.md\"],\"state\":\"blocked\",\"team\":\"community\",\"title\":\"Draft an honest contributor announcement\"}]}\n","path":"templates/casework/work/task-board.json","sha256":"aa01486bb4ec61a5634016168a2e8e05929824e8fdae32871485f8d77199261d"},{"bytes":360,"content":"# community\n\nRole: Contributor experience\n\nPrepare respectful synthetic issue intake and honest announcement drafts without outreach.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/community/work/TEAM.md","sha256":"00071c1da0254fd9a9cb436a6636da8cd53f7525140eabbadc2d32a376803b52"},{"bytes":1811,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"The form can describe both current defects using only public synthetic data.\",\"It requests no credential, private repository, contact list, or personal record.\",\"No issue, invitation, or community membership is actually created.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-scope\"],\"id\":\"community-intake\",\"inputs\":[\"deliverables/repair-scope.md\",\"starter/docs/community-intake.md\",\"starter/docs/security-boundary.md\"],\"instructions\":\"Draft a lightweight issue intake using the supplied synthetic examples. Ask for a minimal inert fixture, command, expected result, and actual result; discourage credentials, private logs, and host-affecting reproduction steps.\",\"outputs\":[\"deliverables/community-issue-form.md\"],\"state\":\"blocked\",\"team\":\"community\",\"title\":\"Prepare a contributor issue form\"},{\"acceptance\":[\"No contributors, adoption statistics, downloads, customers, or completed release are fabricated.\",\"The announcement gives safe local reproduction guidance.\",\"No external message or membership operation is performed.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"release-plan\",\"community-intake\"],\"id\":\"community-announcement\",\"inputs\":[\"deliverables/publication-plan.json\",\"deliverables/community-issue-form.md\",\"deliverables/release-notes-draft.md\",\"starter/docs/community-intake.md\"],\"instructions\":\"Prepare a concise announcement tied to the publication plan, explaining the original reference project and how to reproduce its behavior. Keep it a draft until actual authorized release evidence exists.\",\"outputs\":[\"deliverables/community-announcement-draft.md\"],\"state\":\"blocked\",\"team\":\"community\",\"title\":\"Draft an honest contributor announcement\"}],\"team\":\"community\"}\n","path":"templates/teams/community/work/tasks.json","sha256":"184440fd40c005398ae1d5dda821f87cd24772eab20b594137453ab0c9769214"},{"bytes":370,"content":"# docs\n\nRole: Contributor and operator documentation\n\nKeep quickstart, behavior, repair guidance, and release notes aligned with observed code.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/docs/work/TEAM.md","sha256":"198429f81ef66cc6656c2c87e38f0e432328d01bac06a89e491393d58bb2e8d7"},{"bytes":1799,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"A contributor can reproduce both defects without installing packages or starting a server.\",\"Expected nonzero strict-check exit is explicit.\",\"Documentation does not describe pending repairs as completed.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"issue-reproduction\"],\"id\":\"contributor-quickstart\",\"inputs\":[\"deliverables/reproduced-issues.json\",\"starter/docs/contribution-guide.md\",\"starter/docs/contract.md\",\"starter/README.md\"],\"instructions\":\"Use observed reproduction evidence to explain the project, safe fixture commands, two failure modes, and the difference between characterization and strict acceptance. Keep the documentation useful before fixes exist.\",\"outputs\":[\"deliverables/contributor-quickstart.md\"],\"state\":\"blocked\",\"team\":\"docs\",\"title\":\"Write a reproducible contributor quickstart\"},{\"acceptance\":[\"Notes distinguish the failing source baseline from any tested candidate.\",\"No tag, package upload, signature, download count, or released version is invented.\",\"Event ordering, duplicate semantics, and remaining limitations are described accurately.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-review\"],\"id\":\"release-notes-draft\",\"inputs\":[\"deliverables/maintainer-review.md\",\"deliverables/candidate-acceptance.json\",\"deliverables/contributor-quickstart.md\",\"starter/docs/release-checklist.md\"],\"instructions\":\"Draft notes that explain desired fixed behavior, compatibility, remaining limits, and actual candidate evidence. If the maintainer recommendation is blocked, say so and retain draft status.\",\"outputs\":[\"deliverables/release-notes-draft.md\"],\"state\":\"blocked\",\"team\":\"docs\",\"title\":\"Draft evidence-linked release notes\"}],\"team\":\"docs\"}\n","path":"templates/teams/docs/work/tasks.json","sha256":"5820ec96e7361ca1d9cec10378becbc4d2a11f6b14a848d7d8ee32f5b352801f"},{"bytes":380,"content":"# engineering\n\nRole: Reference-project engineering\n\nPrepare narrowly scoped deduplication and deterministic ordering fixes without rewriting the project.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/engineering/work/TEAM.md","sha256":"15d3fff295e1f44b6e03a8fc2363bb4a1f63c0471a691925e807f373bbe7618e"},{"bytes":2045,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"The duplicate fixture's event_count becomes 3 and item-a event_count becomes 2.\",\"Conflicting duplicate payloads remain rejected.\",\"Expected desired results are unchanged and the second defect remains visible until separately repaired.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"issue-reproduction\",\"input-boundary-review\"],\"id\":\"deduplication-repair\",\"inputs\":[\"deliverables/reproduced-issues.json\",\"deliverables/input-boundary-review.md\",\"starter/reference/line_ledger.py\",\"starter/reference/test_baseline.py\",\"starter/data/events-duplicate.jsonl\",\"starter/data/expected-contract.json\",\"starter/docs/contribution-guide.md\"],\"instructions\":\"Create a reviewable patch that counts each identical event ID once while retaining rejection of conflicting payloads. Add or update regression tests; do not weaken expected-contract.json to make the defect disappear.\",\"outputs\":[\"deliverables/deduplication.patch\"],\"state\":\"blocked\",\"team\":\"engineering\",\"title\":\"Prepare the identical-event deduplication patch\"},{\"acceptance\":[\"The out-of-order fixture ends item-a closed with last_minute 20.\",\"Equal-minute events resolve by event_id rather than input order.\",\"The patch preserves original inputs and the deduplication fix.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"deduplication-repair\"],\"id\":\"ordering-repair\",\"inputs\":[\"deliverables/deduplication.patch\",\"deliverables/reproduced-issues.json\",\"starter/reference/line_ledger.py\",\"starter/data/events-out-of-order.jsonl\",\"starter/data/expected-contract.json\",\"starter/docs/contract.md\"],\"instructions\":\"Build on the deduplication patch and normalize event order by at_minute then event_id before reduction. Add a same-minute tie case and retain deterministic item ordering. Do not claim the patch was merged or released.\",\"outputs\":[\"deliverables/ordering.patch\"],\"state\":\"blocked\",\"team\":\"engineering\",\"title\":\"Prepare the deterministic event-order patch\"}],\"team\":\"engineering\"}\n","path":"templates/teams/engineering/work/tasks.json","sha256":"ec18a1a7e5c1d43c3224f892593736c4a58152369e5896baa00e1cb7c5462323"},{"bytes":362,"content":"# maintainers\n\nRole: Project stewardship\n\nOwn the reference contract, narrow scope, review decisions, and release authority boundaries.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/maintainers/work/TEAM.md","sha256":"83f28b94751362e750cb1f9f8ac0d3996c4addcf610d70f19b9d6e3b126924c0"},{"bytes":1812,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"The scope names ll-duplicate and ll-order as unresolved starter defects.\",\"No third-party code, credentials, live project data, or runtime authority is required.\",\"A strict all-pass release gate is specified.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[],\"id\":\"maintainer-scope\",\"inputs\":[\"starter/docs/charter.md\",\"starter/docs/contract.md\",\"starter/LICENSE.txt\",\"starter/docs/issue-register.csv\"],\"instructions\":\"Confirm the supplied behavioral contract, original source license, and narrow repair scope. State that the current reference is deliberately not release-ready and that no public release is authorized by this seed.\",\"outputs\":[\"deliverables/repair-scope.md\"],\"state\":\"ready\",\"team\":\"maintainers\",\"title\":\"Open the two-defect repair cycle\"},{\"acceptance\":[\"The review references observed strict acceptance and regression evidence.\",\"Only actual repairs may be described as implemented in the candidate.\",\"Publication and signing remain separate owner-authorized operations.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"candidate-acceptance\",\"contributor-quickstart\"],\"id\":\"maintainer-review\",\"inputs\":[\"deliverables/candidate-acceptance.json\",\"deliverables/contributor-quickstart.md\",\"deliverables/repair-scope.md\",\"deliverables/input-boundary-review.md\",\"starter/docs/contract.md\"],\"instructions\":\"Review the candidate acceptance, contributor quickstart, and scope. Confirm the repairs are limited, the boundary is preserved, and unresolved limitations are visible. Produce a decision proposal rather than a forged approval.\",\"outputs\":[\"deliverables/maintainer-review.md\"],\"state\":\"blocked\",\"team\":\"maintainers\",\"title\":\"Review candidate scope and evidence\"}],\"team\":\"maintainers\"}\n","path":"templates/teams/maintainers/work/tasks.json","sha256":"f88fdcf033f9e568f73c09cd4f36c1f1cbabd96e4c75b113d0b899aeb494b96d"},{"bytes":361,"content":"# release\n\nRole: Acceptance and release operations\n\nEnforce strict contract checks and plan any later separately approved publication.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/release/work/TEAM.md","sha256":"6e0cb5e8541c1ddbe8fa557c054f04773197374fd9980fd8075fadae725e8eee"},{"bytes":2052,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"Strict checker exit 0 and every desired contract case are required for pass.\",\"Regression expectations are updated to fixed behavior without weakening contract targets.\",\"No missing candidate, failed test, or unperformed check is represented as release-ready.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"ordering-repair\",\"input-boundary-review\"],\"id\":\"candidate-acceptance\",\"inputs\":[\"deliverables/deduplication.patch\",\"deliverables/ordering.patch\",\"deliverables/input-boundary-review.md\",\"starter/reference/check_acceptance.py\",\"starter/data/expected-contract.json\",\"starter/reference/test_baseline.py\",\"starter/docs/release-checklist.md\"],\"instructions\":\"Apply reviewed patches only to the consumer's explicitly selected candidate copy, then run strict acceptance and regression tests. Record actual evidence or a blocker; the seed reference itself remains the historical failing baseline.\",\"outputs\":[\"deliverables/candidate-acceptance.json\"],\"state\":\"blocked\",\"team\":\"release\",\"title\":\"Evaluate a candidate against the strict contract\"},{\"acceptance\":[\"A failing or unreviewed candidate blocks publication.\",\"Every external operation remains a separate explicit approval boundary.\",\"Hashes identify public candidate files only and are not represented as signatures.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"release-notes-draft\"],\"id\":\"release-plan\",\"inputs\":[\"deliverables/release-notes-draft.md\",\"deliverables/maintainer-review.md\",\"deliverables/candidate-acceptance.json\",\"starter/docs/release-checklist.md\",\"starter/LICENSE.txt\"],\"instructions\":\"Prepare an inert release plan with candidate hashes, proposed version, exact artifacts, checks, publication destination to be selected by an owner, and withdrawal steps. Do not publish, tag, sign, or mint identities.\",\"outputs\":[\"deliverables/publication-plan.json\"],\"state\":\"blocked\",\"team\":\"release\",\"title\":\"Prepare a separately approved publication plan\"}],\"team\":\"release\"}\n","path":"templates/teams/release/work/tasks.json","sha256":"ed93401148c5d1b38114541fb77628bea6cee4208852215df8ed734785e937c9"},{"bytes":391,"content":"# security\n\nRole: Defensive input-boundary review\n\nReview bounded inert data handling and prevent file, network, command, or identity capabilities from being added.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/security/work/TEAM.md","sha256":"79e213374fe6c5c1d88af9eaff0af58ea3095fccfb55c779661aec5a10ebc8dc"},{"bytes":1128,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"File reads are explicitly selected and bounded; no network, execution, write, or identity capability is introduced.\",\"The review distinguishes logic defects from claims of an exploitable vulnerability.\",\"Any remaining boundary concern has a concrete proposed regression case using inert in-memory data.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-scope\"],\"id\":\"input-boundary-review\",\"inputs\":[\"deliverables/repair-scope.md\",\"starter/docs/security-boundary.md\",\"starter/reference/line_ledger.py\",\"starter/reference/test_baseline.py\",\"starter/docs/contract.md\"],\"instructions\":\"Review the original reducer and documented input limits. Check that fixtures are data, not commands, and that any proposed fixes preserve rejection of conflicting IDs, invalid actions, oversized input, and invalid minute values. Produce defensive findings only; no hostile host tests.\",\"outputs\":[\"deliverables/input-boundary-review.md\"],\"state\":\"blocked\",\"team\":\"security\",\"title\":\"Review the inert data boundary\"}],\"team\":\"security\"}\n","path":"templates/teams/security/work/tasks.json","sha256":"61b9e23dbe8b0ebb43d5895479002cbbf84d444851ba6203658a01a372a34fae"},{"bytes":356,"content":"# triage\n\nRole: Reproduction and issue triage\n\nReproduce the two deliberate logic defects and turn each into precise repair work.\n\nCase inputs and logical deliverables belong to the same-world casework workspace.\nRead only the inputs for assigned work; hand off verified artifact references.\nDo not claim another team's task or authorize external effects.\n","path":"templates/teams/triage/work/TEAM.md","sha256":"c149148b69ec22f51e8a3a0341ccfb2682333e1b9a5029208df1a2469541eec2"},{"bytes":1195,"content":"{\"case_workspace\":\"casework\",\"schema\":\"hive-hub-seed-team-work/1\",\"tasks\":[{\"acceptance\":[\"Strict checking passes the clean case and fails exactly the duplicate and out-of-order cases.\",\"Characterization mode is labeled known-failure reproduction, not success of the desired behavior.\",\"The report includes exact commands and no host-affecting fixture execution.\"],\"assignee\":null,\"completed_evidence\":[],\"depends_on\":[\"maintainer-scope\"],\"id\":\"issue-reproduction\",\"inputs\":[\"deliverables/repair-scope.md\",\"starter/reference/line_ledger.py\",\"starter/reference/test_baseline.py\",\"starter/reference/check_acceptance.py\",\"starter/data/events-clean.jsonl\",\"starter/data/events-duplicate.jsonl\",\"starter/data/events-out-of-order.jsonl\",\"starter/data/expected-contract.json\",\"starter/docs/issue-register.csv\"],\"instructions\":\"Run the authored baseline tests, the characterization mode, and the strict checker on the supplied inert fixtures. Record expected and actual counts and item states. A zero characterization exit is not a release pass.\",\"outputs\":[\"deliverables/reproduced-issues.json\"],\"state\":\"blocked\",\"team\":\"triage\",\"title\":\"Reproduce the deliberate contract failures\"}],\"team\":\"triage\"}\n","path":"templates/teams/triage/work/tasks.json","sha256":"bae7f388a12f1c1073038d3010d7d5d9fe19e3e4a5d5ad7602a48be0af6e82bf"}],"kind":"organization-seed","mission":"Coordinate maintainers, triage, engineering, security, documentation, release, and community around a deliberately imperfect offline event reducer, preserving honest failures and evidence-based release gates.","name":"The Open-Source Infrastructure Foundation","organization":{"directory":"organization","scaffold":{"kind":"organization","mode":"hive","slug":"open-source-infrastructure-foundation","world_id":"demo-open-source-infrastructure-foundation"}},"protocol":"rapp-work/1","relatedSeeds":["enterprise-transformation-firm","product-launch-company"],"schema":"hive-hub-organization-seed/1","slug":"open-source-infrastructure-foundation","status":"seed-not-activated","tagline":"A tiny original project with real, reproducible repair work.","tasks":[{"acceptance":["The scope names ll-duplicate and ll-order as unresolved starter defects.","No third-party code, credentials, live project data, or runtime authority is required.","A strict all-pass release gate is specified."],"assignee":null,"completed_evidence":[],"depends_on":[],"id":"maintainer-scope","inputs":["starter/docs/charter.md","starter/docs/contract.md","starter/LICENSE.txt","starter/docs/issue-register.csv"],"instructions":"Confirm the supplied behavioral contract, original source license, and narrow repair scope. State that the current reference is deliberately not release-ready and that no public release is authorized by this seed.","outputs":["deliverables/repair-scope.md"],"state":"ready","team":"maintainers","title":"Open the two-defect repair cycle"},{"acceptance":["Strict checking passes the clean case and fails exactly the duplicate and out-of-order cases.","Characterization mode is labeled known-failure reproduction, not success of the desired behavior.","The report includes exact commands and no host-affecting fixture execution."],"assignee":null,"completed_evidence":[],"depends_on":["maintainer-scope"],"id":"issue-reproduction","inputs":["deliverables/repair-scope.md","starter/reference/line_ledger.py","starter/reference/test_baseline.py","starter/reference/check_acceptance.py","starter/data/events-clean.jsonl","starter/data/events-duplicate.jsonl","starter/data/events-out-of-order.jsonl","starter/data/expected-contract.json","starter/docs/issue-register.csv"],"instructions":"Run the authored baseline tests, the characterization mode, and the strict checker on the supplied inert fixtures. Record expected and actual counts and item states. A zero characterization exit is not a release pass.","outputs":["deliverables/reproduced-issues.json"],"state":"blocked","team":"triage","title":"Reproduce the deliberate contract failures"},{"acceptance":["File reads are explicitly selected and bounded; no network, execution, write, or identity capability is introduced.","The review distinguishes logic defects from claims of an exploitable vulnerability.","Any remaining boundary concern has a concrete proposed regression case using inert in-memory data."],"assignee":null,"completed_evidence":[],"depends_on":["maintainer-scope"],"id":"input-boundary-review","inputs":["deliverables/repair-scope.md","starter/docs/security-boundary.md","starter/reference/line_ledger.py","starter/reference/test_baseline.py","starter/docs/contract.md"],"instructions":"Review the original reducer and documented input limits. Check that fixtures are data, not commands, and that any proposed fixes preserve rejection of conflicting IDs, invalid actions, oversized input, and invalid minute values. Produce defensive findings only; no hostile host tests.","outputs":["deliverables/input-boundary-review.md"],"state":"blocked","team":"security","title":"Review the inert data boundary"},{"acceptance":["The duplicate fixture's event_count becomes 3 and item-a event_count becomes 2.","Conflicting duplicate payloads remain rejected.","Expected desired results are unchanged and the second defect remains visible until separately repaired."],"assignee":null,"completed_evidence":[],"depends_on":["issue-reproduction","input-boundary-review"],"id":"deduplication-repair","inputs":["deliverables/reproduced-issues.json","deliverables/input-boundary-review.md","starter/reference/line_ledger.py","starter/reference/test_baseline.py","starter/data/events-duplicate.jsonl","starter/data/expected-contract.json","starter/docs/contribution-guide.md"],"instructions":"Create a reviewable patch that counts each identical event ID once while retaining rejection of conflicting payloads. Add or update regression tests; do not weaken expected-contract.json to make the defect disappear.","outputs":["deliverables/deduplication.patch"],"state":"blocked","team":"engineering","title":"Prepare the identical-event deduplication patch"},{"acceptance":["The out-of-order fixture ends item-a closed with last_minute 20.","Equal-minute events resolve by event_id rather than input order.","The patch preserves original inputs and the deduplication fix."],"assignee":null,"completed_evidence":[],"depends_on":["deduplication-repair"],"id":"ordering-repair","inputs":["deliverables/deduplication.patch","deliverables/reproduced-issues.json","starter/reference/line_ledger.py","starter/data/events-out-of-order.jsonl","starter/data/expected-contract.json","starter/docs/contract.md"],"instructions":"Build on the deduplication patch and normalize event order by at_minute then event_id before reduction. Add a same-minute tie case and retain deterministic item ordering. Do not claim the patch was merged or released.","outputs":["deliverables/ordering.patch"],"state":"blocked","team":"engineering","title":"Prepare the deterministic event-order patch"},{"acceptance":["A contributor can reproduce both defects without installing packages or starting a server.","Expected nonzero strict-check exit is explicit.","Documentation does not describe pending repairs as completed."],"assignee":null,"completed_evidence":[],"depends_on":["issue-reproduction"],"id":"contributor-quickstart","inputs":["deliverables/reproduced-issues.json","starter/docs/contribution-guide.md","starter/docs/contract.md","starter/README.md"],"instructions":"Use observed reproduction evidence to explain the project, safe fixture commands, two failure modes, and the difference between characterization and strict acceptance. Keep the documentation useful before fixes exist.","outputs":["deliverables/contributor-quickstart.md"],"state":"blocked","team":"docs","title":"Write a reproducible contributor quickstart"},{"acceptance":["Strict checker exit 0 and every desired contract case are required for pass.","Regression expectations are updated to fixed behavior without weakening contract targets.","No missing candidate, failed test, or unperformed check is represented as release-ready."],"assignee":null,"completed_evidence":[],"depends_on":["ordering-repair","input-boundary-review"],"id":"candidate-acceptance","inputs":["deliverables/deduplication.patch","deliverables/ordering.patch","deliverables/input-boundary-review.md","starter/reference/check_acceptance.py","starter/data/expected-contract.json","starter/reference/test_baseline.py","starter/docs/release-checklist.md"],"instructions":"Apply reviewed patches only to the consumer's explicitly selected candidate copy, then run strict acceptance and regression tests. Record actual evidence or a blocker; the seed reference itself remains the historical failing baseline.","outputs":["deliverables/candidate-acceptance.json"],"state":"blocked","team":"release","title":"Evaluate a candidate against the strict contract"},{"acceptance":["The form can describe both current defects using only public synthetic data.","It requests no credential, private repository, contact list, or personal record.","No issue, invitation, or community membership is actually created."],"assignee":null,"completed_evidence":[],"depends_on":["maintainer-scope"],"id":"community-intake","inputs":["deliverables/repair-scope.md","starter/docs/community-intake.md","starter/docs/security-boundary.md"],"instructions":"Draft a lightweight issue intake using the supplied synthetic examples. Ask for a minimal inert fixture, command, expected result, and actual result; discourage credentials, private logs, and host-affecting reproduction steps.","outputs":["deliverables/community-issue-form.md"],"state":"blocked","team":"community","title":"Prepare a contributor issue form"},{"acceptance":["The review references observed strict acceptance and regression evidence.","Only actual repairs may be described as implemented in the candidate.","Publication and signing remain separate owner-authorized operations."],"assignee":null,"completed_evidence":[],"depends_on":["candidate-acceptance","contributor-quickstart"],"id":"maintainer-review","inputs":["deliverables/candidate-acceptance.json","deliverables/contributor-quickstart.md","deliverables/repair-scope.md","deliverables/input-boundary-review.md","starter/docs/contract.md"],"instructions":"Review the candidate acceptance, contributor quickstart, and scope. Confirm the repairs are limited, the boundary is preserved, and unresolved limitations are visible. Produce a decision proposal rather than a forged approval.","outputs":["deliverables/maintainer-review.md"],"state":"blocked","team":"maintainers","title":"Review candidate scope and evidence"},{"acceptance":["Notes distinguish the failing source baseline from any tested candidate.","No tag, package upload, signature, download count, or released version is invented.","Event ordering, duplicate semantics, and remaining limitations are described accurately."],"assignee":null,"completed_evidence":[],"depends_on":["maintainer-review"],"id":"release-notes-draft","inputs":["deliverables/maintainer-review.md","deliverables/candidate-acceptance.json","deliverables/contributor-quickstart.md","starter/docs/release-checklist.md"],"instructions":"Draft notes that explain desired fixed behavior, compatibility, remaining limits, and actual candidate evidence. If the maintainer recommendation is blocked, say so and retain draft status.","outputs":["deliverables/release-notes-draft.md"],"state":"blocked","team":"docs","title":"Draft evidence-linked release notes"},{"acceptance":["A failing or unreviewed candidate blocks publication.","Every external operation remains a separate explicit approval boundary.","Hashes identify public candidate files only and are not represented as signatures."],"assignee":null,"completed_evidence":[],"depends_on":["release-notes-draft"],"id":"release-plan","inputs":["deliverables/release-notes-draft.md","deliverables/maintainer-review.md","deliverables/candidate-acceptance.json","starter/docs/release-checklist.md","starter/LICENSE.txt"],"instructions":"Prepare an inert release plan with candidate hashes, proposed version, exact artifacts, checks, publication destination to be selected by an owner, and withdrawal steps. Do not publish, tag, sign, or mint identities.","outputs":["deliverables/publication-plan.json"],"state":"blocked","team":"release","title":"Prepare a separately approved publication plan"},{"acceptance":["No contributors, adoption statistics, downloads, customers, or completed release are fabricated.","The announcement gives safe local reproduction guidance.","No external message or membership operation is performed."],"assignee":null,"completed_evidence":[],"depends_on":["release-plan","community-intake"],"id":"community-announcement","inputs":["deliverables/publication-plan.json","deliverables/community-issue-form.md","deliverables/release-notes-draft.md","starter/docs/community-intake.md"],"instructions":"Prepare a concise announcement tied to the publication plan, explaining the original reference project and how to reproduce its behavior. Keep it a draft until actual authorized release evidence exists.","outputs":["deliverables/community-announcement-draft.md"],"state":"blocked","team":"community","title":"Draft an honest contributor announcement"}],"workspaceProfile":"rapp-work-sdk/1","workspaces":[{"directory":"workspaces/maintainers","id":"maintainers","name":"maintainers","purpose":"Own the reference contract, narrow scope, review decisions, and release authority boundaries.","role":"Project stewardship","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-maintainers","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/maintainers"},{"directory":"workspaces/triage","id":"triage","name":"triage","purpose":"Reproduce the two deliberate logic defects and turn each into precise repair work.","role":"Reproduction and issue triage","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-triage","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/triage"},{"directory":"workspaces/engineering","id":"engineering","name":"engineering","purpose":"Prepare narrowly scoped deduplication and deterministic ordering fixes without rewriting the project.","role":"Reference-project engineering","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-engineering","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/engineering"},{"directory":"workspaces/security","id":"security","name":"security","purpose":"Review bounded inert data handling and prevent file, network, command, or identity capabilities from being added.","role":"Defensive input-boundary review","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-security","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/security"},{"directory":"workspaces/docs","id":"docs","name":"docs","purpose":"Keep quickstart, behavior, repair guidance, and release notes aligned with observed code.","role":"Contributor and operator documentation","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-docs","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/docs"},{"directory":"workspaces/release","id":"release","name":"release","purpose":"Enforce strict contract checks and plan any later separately approved publication.","role":"Acceptance and release operations","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-release","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/release"},{"directory":"workspaces/community","id":"community","name":"community","purpose":"Prepare respectful synthetic issue intake and honest announcement drafts without outreach.","role":"Contributor experience","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-community","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/teams/community"},{"directory":"workspaces/casework","id":"casework","name":"Shared delivery case","purpose":"Own synthetic intake, shared inputs, and accepted deliverables.","role":"case-custodian","scaffold":{"kind":"workspace","mode":"hive","slug":"open-source-infrastructure-foundation-casework","world_id":"demo-open-source-infrastructure-foundation"},"template":"templates/casework"}]}
