Proposal: Closed-world economy invariants and harm gates - #118
Draft
Natoshi-moto wants to merge 1 commit into
Draft
Proposal: Closed-world economy invariants and harm gates#118Natoshi-moto wants to merge 1 commit into
Natoshi-moto wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal only — no implementation, no live economy
This is a proposal, not an implementation. It:
mainbeyond adding this one reviewed directory;Natoshi-moto/Experimental-Sandboxin any way (change_origin: LAB_INTERNAL, all Sandbox fieldsNOT_APPLICABLE);operations/merge_authorizations/PR-<number>.jsonby explicit, separate operator action;A passing validator run or a passing test suite does not prove safety, legality, completeness, or real-world closure. See
CLAIMS_AND_NONCLAIMS.mdin the package for the full, explicit list of non-claims.What this package is
operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/— a proposed framework translating this Lab's existing anti-value doctrine (STATUS.json's permanentNO_REAL_WORLD_TOKEN_OR_ECONOMIC_VALUEred, the Beneficial Genesis canonical checkpoint's "never endorse real-world economic value," andoperations/LANGUAGE_STANDARD.md'sSTRICT NO SALErule) into mechanical invariants, for any future internal economy, reputation system, or recognition mechanism the Lab might build:CONTRADICTION_REGISTER.mdCR-02/CR-03);See
HANDOFF_ANY_AI.mdin the package for full re-entry and verification instructions for any future seat, andRECEIPT.jsonfor this operation's own sanitized receipt.Promotion contract
{ "schema": "nexus.experimental-sandbox-promotion/v1", "change_origin": "LAB_INTERNAL", "sandbox_repository": "NOT_APPLICABLE", "sandbox_commit": "NOT_APPLICABLE", "sandbox_tag": "NOT_APPLICABLE", "sandbox_record_url": "NOT_APPLICABLE", "sandbox_context": "NOT_APPLICABLE", "task_or_route_id": "CLOSED_WORLD_ECONOMY_INVARIANTS_001", "baseline_lab_commit": "6c3a1e806baba1183553221f5c2f00125ce2be29", "authority_used": "Bounded operator task: recover and complete an interrupted bounded Lab operation, proposal-only, operator-directed throughout.", "allowed_write_scope": ["operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/**"], "files_proposed_for_lab": [ {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/README.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/SOURCE_AND_CANON_MAP.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/THREAT_MODEL.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/INVARIANTS.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/PROHIBITED_CAPABILITIES.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/ALLOWED_INTERNAL_PRIMITIVES.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/EARNING_AND_RECOGNITION_MODEL.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/SECONDARY_MARKET_AND_LEAKAGE_MODEL.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/USER_HARM_AND_POWER_MODEL.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/HALT_AND_ESCALATION_RULES.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/CLAIMS_AND_NONCLAIMS.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/IMPLEMENTATION_GATES.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/CONTRADICTION_REGISTER.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/HANDOFF_ANY_AI.md", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/RECEIPT.json", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/schema/closed_world_economy.schema.json", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/TEST_VECTORS.json", "disposition": "EVIDENCE_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/tools/validate_closed_world_economy.py", "disposition": "INDEPENDENT_REIMPLEMENTATION"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/tests/__init__.py", "disposition": "DOCUMENTATION_ONLY"}, {"path": "operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/tests/test_closed_world_economy.py", "disposition": "INDEPENDENT_REIMPLEMENTATION"} ], "claim": "This package is an internally consistent proposed framework (closed-world invariants, a 21-key prohibited-capability list, a 10-category allowed-primitive list, an earning/recognition model, a threat and secondary-market/leakage model, a user-harm and operator-power model, a halt/escalation ladder, a machine-readable manifest schema, a stdlib-only fail-closed validator, deterministic test vectors, and unit tests) for any future closed-world internal economy the Lab might build. The validator behaves exactly as declared against 4 valid and 50 hostile/invalid manifest vectors, and the doctrine documents, schema, validator constants, and test suite agree on the same key sets (checked mechanically, not just asserted).", "falsifier": "This claim is false if: any documented valid vector in TEST_VECTORS.json is rejected by tools/validate_closed_world_economy.py; any documented hostile/invalid vector is accepted; tests/test_closed_world_economy.py fails on a clean checkout; or any of the five schema/validator/doctrine-doc parity tests in that suite fails, indicating the schema, validator constants, and doctrine prose have drifted apart.", "evidence_class": "SYNTHETIC_DETERMINISTIC_TEST_VECTORS_AND_UNIT_TESTS", "tests_run": [ { "command": "python3 -m unittest discover -s operations/proposals/CLOSED_WORLD_ECONOMY_INVARIANTS_001/tests -v", "result": "PASS", "details": "Ran 22 tests, 22 passed. Covers: all 4 valid vectors pass; all 50 hostile vectors rejected for the exact stated reason; malformed-JSON raw-text handling (duplicate key, syntax error, non-object top level); CLI entry point parity with the library, in-process and via one real subprocess invocation; 5 schema/validator/doctrine-doc parity checks; the worked-example vector matches EARNING_AND_RECOGNITION_MODEL.md's declared defaults." }, { "command": "Independent re-check of validate_manifest() against every TEST_VECTORS.json entry, outside the unittest harness", "result": "PASS", "details": "4/4 valid vectors passed; 50/50 hostile vectors rejected for the exact declared reason, run a second time directly against the committed blob bytes as part of an independent read-only commit verification pass." }, { "command": "python3 -m py_compile tools/validate_closed_world_economy.py tests/test_closed_world_economy.py tests/__init__.py", "result": "PASS", "details": "All three committed Python files compile cleanly, checked directly against the committed blob bytes." }, { "command": "JSON parse of every committed *.json file in the package", "result": "PASS", "details": "RECEIPT.json, TEST_VECTORS.json, and schema/closed_world_economy.schema.json all parse cleanly from their committed blob bytes." }, { "command": "./nexus doctor", "result": "PASS", "details": "All 7 checks green (required_paths, symlink_policy, json_parse, secret_patterns, privacy_ignore_rules, seed_handoff_binding, git_repository) against the clean committed working tree." }, { "command": "./nexus verify", "result": "BLOCKED_BY_MISSING_DEPENDENCY", "details": "Independent R013 verifier fails with Node ERR_MODULE_NOT_FOUND for @noble/ed25519 in experiments/R013_PCX_CONSERVED_CLAIM/independent_verifier.mjs. Confirmed node_modules/@noble is absent from this environment; pre-existing and unrelated to this package. Not installed or repaired." }, { "command": "git diff --check HEAD^ HEAD", "result": "PASS", "details": "Clean, no whitespace or conflict-marker errors across the full commit range." }, { "command": "python3 -m unittest discover -s tests -v (repo-wide suite)", "result": "PARTIAL_PRE_EXISTING_FAILURE", "details": "179 of 190 repo-wide tests passed. 9 failures and 2 errors, all confined to test_r013_pcx_convergence.py, test_r015_independent_durability_verifier.py, and test_r016_independent_verifier.py, all tracing to the same missing @noble/ed25519 Node dependency as ./nexus verify above. None of the 11 failing tests touch this package's files." }, { "command": "python3 -m unittest tests.test_control_plane -v", "result": "PASS", "details": "Ran 5 tests, 5 passed." } ], "test_results": [ "22/22 dedicated package tests passed", "4/4 valid vectors passed and 50/50 hostile vectors rejected for the exact stated reason, independently cross-checked", "All committed JSON and Python files parse and compile cleanly from their committed blob bytes", "nexus doctor: 7/7 checks passed", "nexus verify: BLOCKED_BY_MISSING_DEPENDENCY (@noble/ed25519 absent; pre-existing environment gap, unrelated to this package; not installed or repaired)", "repo-wide suite: 179/190 passed; the 11 failing cases are pre-existing and confined to unrelated R013/R015/R016 files sharing the same missing dependency", "test_control_plane: 5/5 passed", "git diff --check: clean across the full commit range" ], "known_failures": [ "./nexus verify is BLOCKED_BY_MISSING_DEPENDENCY due to the pre-existing absence of @noble/ed25519 in this environment; unrelated to this package and not remediated here", "9 failures and 2 errors in the unrelated, pre-existing test_r013_pcx_convergence.py / test_r015_independent_durability_verifier.py / test_r016_independent_verifier.py files, all tracing to the same missing dependency" ], "known_unknowns": [ "No age-verification mechanism for minors is proposed anywhere in this package (USER_HARM_AND_POWER_MODEL.md's Minors row names this as an open gap)", "Independent, non-operator review capacity does not exist in this Lab's structure; every operator-power abuse risk in this package is named against that limit, not solved by it", "The 50-vector hostile catalog is a representative, doctrine-anchored sample, not an exhaustive combinatorial sweep of all 21 prohibited capabilities times 10 primitive categories times 11 properties", "CONTRADICTION_REGISTER.md's CR-13 finds no single canonical STRICT_NO_SALE.md doctrine document under that exact name anywhere in the repository" ], "non_claims": [ "Not legal advice.", "Not regulatory clearance.", "Not token-launch authorization.", "Not permission to accept real money or create redeemable assets.", "Not evidence that a closed-world economy already exists anywhere in this Lab.", "Not proof that users cannot build external markets around any future system anyway.", "Not a harm guarantee.", "Not permission to deploy anything to real users.", "Not permission to weaken STATUS.json's NO_REAL_WORLD_TOKEN_OR_ECONOMIC_VALUE red or any other existing Lab invariant.", "A passing run of tools/validate_closed_world_economy.py against a manifest does not prove legal, social, or economic safety, and by itself makes no future system safe, legal, or harmless." ], "adversarial_review": { "performed": true, "summary": "50 hostile/invalid manifest vectors were authored and self-checked against the validator before commit, then independently re-verified a second time against the exact committed blob bytes, outside the unittest harness, during a separate read-only commit-verification pass.", "findings": [ "The validator correctly rejects, among 50 hostile cases: enabled official redemption, enabled operator facilitation of external exchange, enabled OTC matching, enabled account-sale tooling, enabled loot boxes and wagering, chance combined with purchasable or transferable properties, market-or-export-shaped transfer policies (OPEN_ORDER_BOOK, ASSET_EXPORT), an out-of-order or truncated leakage-response ladder, minors-reachable declared alongside a chance-obtainable category, and vague placeholder text (TBD/TODO) in load-bearing fields.", "SOURCE_AND_CANON_MAP.md and CONTRADICTION_REGISTER.md's own review of the existing repository found a live, shipped counter-example (a Wallet_v4_nexus.html surface already using doctrine-banned wallet/balance/earn language), which this proposal treats as evidence the doctrine it translates is not yet architecturally enforced, not as something this package fixes." ], "limitations": [ "No external security specialist, economist, lawyer, or harm-reduction specialist has reviewed this package; that review is listed as required, not performed, in IMPLEMENTATION_GATES.md gates 2, 3, and 12", "The hostile-vector catalog is representative rather than an exhaustive combinatorial sweep", "Independent, non-operator review capacity does not exist in this Lab's structure, a limit this package names rather than resolves" ] }, "rights_and_licences": { "original_author_or_source": "Claude Code (Sonnet 5), operator-directed; all 20 files are original authorship produced for this Lab operation, including recovery and completion of files begun in an interrupted prior session of the same operation", "source_repository": "Natoshi-moto/Lab", "source_commit": "6c3a1e806baba1183553221f5c2f00125ce2be29", "source_licence": "MIT as declared by the repository", "files_modified": "No third-party source file was copied, ported, or modified. Existing Lab doctrine (STATUS.json, operations/LANGUAGE_STANDARD.md, the Beneficial Genesis canonical checkpoint, constitution/*) is cited and quoted only in short attributed excerpts for doctrinal translation, never reproduced wholesale.", "third_party_material": "None.", "submitter_rights": "Operator-directed Lab-internal proposal work produced entirely within this repository; no external contributor rights are implicated.", "lab_mit_compatibility": "All new files are original text and code, compatible with the repository's declared licensing.", "exceptions": "None declared." }, "security_and_privacy_impact": { "summary": "This package is inert documentation, a JSON Schema, a standard-library-only Python validator, deterministic test vectors, and unit tests. It defines no running service, opens no network port, stores no user data, and is not wired into any live system anywhere in the Lab.", "secrets_checked": "The exact committed blob bytes (exported via git archive, not the working tree) were scanned for API-key, password, PEM/private-key, and common cloud-credential patterns. No genuine hits; the only two pattern matches are RECEIPT.json's own prose describing this scan, not a leaked secret.", "personal_data_checked": "The committed blob bytes were scanned for email addresses and similar personal-data patterns. No hits.", "external_systems": "None are contacted by anything in this package. The validator and its test suite are standard-library-only Python with no network calls; the one subprocess test invokes the committed validator script itself, locally, on a temporary file.", "risks": "The primary residual risk is scope creep: a future reader could mistake a passing validator run for safety or legal clearance, which CLAIMS_AND_NONCLAIMS.md and this contract both explicitly disclaim. Merging this documentation-and-tooling package as-is introduces no security or privacy risk, since nothing in it executes against real user data, real funds, or any live system." }, "known_lab_red_impact": "NONE. This package does not touch, reinterpret, or weaken STATUS.json's permanent NO_REAL_WORLD_TOKEN_OR_ECONOMIC_VALUE red or any other standing Lab red. It is proposal-only, with a NONE status authority throughout, and CLAIMS_AND_NONCLAIMS.md explicitly disclaims any permission to weaken any existing Lab invariant.", "operator_decision_requested": { "action": "REVIEW ONLY. No merge is requested. Keep this pull request in draft status pending operator and adversarial review; do not mark it ready for review as part of this action.", "rationale": "This is a Lab-internal proposal package (doctrine translation, schema, validator, test vectors, and tests) governing any future closed-world internal economy. Per CLAUDE.md and AGENTS.md, a proposal carries a NONE status authority unless main separately records human authorization, and that authorization is recorded only at operations/merge_authorizations/PR-<number>.json by explicit, separate operator action, never inferred from CI, draft-PR state, or this contract.", "reversible": true, "stop_conditions": "Stop and route back to review if: any test in tests_run fails on re-run; a reviewer constructs a hostile manifest this validator wrongly accepts or a valid manifest it wrongly rejects; CONTRADICTION_REGISTER.md's CR-02/CR-03 live-code finding is treated as resolved by this package (it is not, and remains out of this package's scope); or anyone proposes marking this draft ready for review or merging it without a separate, explicit operator merge-authorization record." }, "status_authority": "NONE" }Central doctrine this package translates
Known open items (not fixed by this package, by design)
CONTRADICTION_REGISTER.mdCR-02/CR-03: a shippedproducts/noted-host/public/nexus/os/blocks/system/Wallet_v4_nexus.htmlsurface already uses doctrine-banned wallet/balance/earn language and a "battle stakes" mechanic. This package documents that as evidence; it does not remediate it — that is a separate, differently-scoped task.USER_HARM_AND_POWER_MODEL.md's Minors row)../nexus verifyisBLOCKED_BY_MISSING_DEPENDENCY(@noble/ed25519absent from this environment) — pre-existing and unrelated to this package; not installed or repaired as part of this work.Requested action
Review only. Please read
README.md,CLAIMS_AND_NONCLAIMS.md, andCONTRADICTION_REGISTER.mdin the package first. This PR should remain a draft until you decide otherwise; no merge authorization exists or is requested by opening it.