Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1138,3 +1138,30 @@ Boundary:
- No current production claim: true
- No starship claim: true
- No physical production instructions: true

## Move 139 — Org profile binds CONTROL v0.2.67

This public surface binds the CONTROL v0.2.67 closure authority.

Authority:

- CONTROL release: https://github.com/ANTIMATTERIUM/CONTROL/releases/tag/v0.2.67-antimatterium-control-move137-surface-closure
- Verify CI: https://github.com/ANTIMATTERIUM/CONTROL/actions/runs/29653800567
- Main SHA: 3eaa90d7b8850687431a47a5c8419f4bca6bfb0c
- Closure ID: fbc4bbb9a4f22f09657e0a5e9c9e1c6061e8640272e6c87dfc6b20933f3014a1

Surface release:

- https://github.com/ANTIMATTERIUM/.github/releases/tag/v0.0.76-antimatterium-org-profile-control-v0267-backlink

Backlink ID:

- 3432e12dfa7a4c8eacfab57bbcc72fa8f3f085b0a8008472d75e1578d743d218

Boundary:

- Short public tag required: true
- No local root required: true
- No current production claim: true
- No starship claim: true
- No physical production instructions: true
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@
"verify:move135-control-v0265-backlink": "node scripts/verify-org-profile-move135-control-v0265-backlink.mjs",
"test:move135-control-v0265-backlink": "node --test tests/org-profile-move135-control-v0265-backlink.test.mjs",
"verify:move137-control-v0266-backlink": "node scripts/verify-org-profile-move137-control-v0266-backlink.mjs",
"test:move137-control-v0266-backlink": "node --test tests/org-profile-move137-control-v0266-backlink.test.mjs"
"test:move137-control-v0266-backlink": "node --test tests/org-profile-move137-control-v0266-backlink.test.mjs",
"verify:move139-control-v0267-backlink": "node scripts/verify-org-profile-move139-control-v0267-backlink.mjs",
"test:move139-control-v0267-backlink": "node --test tests/org-profile-move139-control-v0267-backlink.test.mjs"
},
"type": "module",
"version": "0.0.75"
"version": "0.0.76"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"schema": "antimatterium.surface_control_backlink.v1",
"move": 123,
"surface": "org_profile",
"package": {
"version": "0.0.76",
"tag": "v0.0.76-antimatterium-org-profile-control-v0267-backlink",
"release": "https://github.com/ANTIMATTERIUM/.github/releases/tag/v0.0.76-antimatterium-org-profile-control-v0267-backlink"
},
"authority": {
"control_version": "0.2.67",
"control_tag": "v0.2.67-antimatterium-control-move137-surface-closure",
"control_release": "https://github.com/ANTIMATTERIUM/CONTROL/releases/tag/v0.2.67-antimatterium-control-move137-surface-closure",
"verify_ci_run": "https://github.com/ANTIMATTERIUM/CONTROL/actions/runs/29653800567",
"main_sha": "3eaa90d7b8850687431a47a5c8419f4bca6bfb0c",
"closure_id": "fbc4bbb9a4f22f09657e0a5e9c9e1c6061e8640272e6c87dfc6b20933f3014a1"
},
"membership": {
"member_of_move139_surface_fanout": true,
"control_v0267_release_bound": true,
"short_public_tag_required": true,
"no_local_root_required": true
},
"safety": {
"no_current_production_claim": true,
"no_starship_claim": true,
"no_physical_production_instructions": true
},
"backlink_id": "3432e12dfa7a4c8eacfab57bbcc72fa8f3f085b0a8008472d75e1578d743d218"
}
107 changes: 107 additions & 0 deletions scripts/verify-org-profile-move139-control-v0267-backlink.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
#!/usr/bin/env node
import fs from 'node:fs';
import crypto from 'node:crypto';

function fail(message) {
console.error(message);
process.exit(1);
}

function stable(value) {
if (Array.isArray(value)) {
return '[' + value.map(stable).join(',') + ']';
}

if (value && typeof value === 'object') {
return '{' + Object.keys(value)
.sort()
.map(key => JSON.stringify(key) + ':' + stable(value[key]))
.join(',') + '}';
}

return JSON.stringify(value);
}

const receipt = JSON.parse(
fs.readFileSync("public/receipts/ANTIMATTERIUM_ORG_PROFILE_MOVE139_CONTROL_V0267_BACKLINK.json", 'utf8')
);

const expected = {
"schema": "antimatterium.surface_control_backlink.v1",
"move": 123,
"surface": "org_profile",
"packageVersion": "0.0.76",
"packageTag": "v0.0.76-antimatterium-org-profile-control-v0267-backlink",
"packageRelease": "https://github.com/ANTIMATTERIUM/.github/releases/tag/v0.0.76-antimatterium-org-profile-control-v0267-backlink",
"controlVersion": "0.2.67",
"controlTag": "v0.2.67-antimatterium-control-move137-surface-closure",
"controlRelease": "https://github.com/ANTIMATTERIUM/CONTROL/releases/tag/v0.2.67-antimatterium-control-move137-surface-closure",
"controlCi": "https://github.com/ANTIMATTERIUM/CONTROL/actions/runs/29653800567",
"controlSha": "3eaa90d7b8850687431a47a5c8419f4bca6bfb0c",
"controlClosureId": "fbc4bbb9a4f22f09657e0a5e9c9e1c6061e8640272e6c87dfc6b20933f3014a1",
"backlinkId": "3432e12dfa7a4c8eacfab57bbcc72fa8f3f085b0a8008472d75e1578d743d218"
};
const outputPrefix = "ANTIMATTERIUM_ORG_PROFILE_MOVE139_CONTROL_V0267_BACKLINK";

const checks = [
['schema', receipt.schema, expected.schema],
['move', receipt.move, expected.move],
['surface', receipt.surface, expected.surface],
['package.version', receipt.package?.version, expected.packageVersion],
['package.tag', receipt.package?.tag, expected.packageTag],
['package.release', receipt.package?.release, expected.packageRelease],
['authority.control_version', receipt.authority?.control_version, expected.controlVersion],
['authority.control_tag', receipt.authority?.control_tag, expected.controlTag],
['authority.control_release', receipt.authority?.control_release, expected.controlRelease],
['authority.verify_ci_run', receipt.authority?.verify_ci_run, expected.controlCi],
['authority.main_sha', receipt.authority?.main_sha, expected.controlSha],
['authority.closure_id', receipt.authority?.closure_id, expected.controlClosureId],
['membership.member_of_move139_surface_fanout', receipt.membership?.member_of_move139_surface_fanout, true],
['membership.control_v0267_release_bound', receipt.membership?.control_v0267_release_bound, true],
['membership.short_public_tag_required', receipt.membership?.short_public_tag_required, true],
['membership.no_local_root_required', receipt.membership?.no_local_root_required, true],
['safety.no_current_production_claim', receipt.safety?.no_current_production_claim, true],
['safety.no_starship_claim', receipt.safety?.no_starship_claim, true],
['safety.no_physical_production_instructions', receipt.safety?.no_physical_production_instructions, true],
['backlink_id', receipt.backlink_id, expected.backlinkId]
];

for (const [name, actual, wanted] of checks) {
if (actual !== wanted) {
fail(
'MOVE139_CHECK_FAILED ' +
name +
': expected ' +
wanted +
', got ' +
actual
);
}
}

const canonical = structuredClone(receipt);
delete canonical.backlink_id;

const recomputed = crypto
.createHash('sha256')
.update(stable(canonical))
.digest('hex');

if (recomputed !== receipt.backlink_id) {
fail(
'MOVE139_BACKLINK_ID_RECOMPUTE_FAILED expected ' +
receipt.backlink_id +
', got ' +
recomputed
);
}

console.log(outputPrefix + '_VERIFY_PASS=true');
console.log(outputPrefix + '_CONTROL_V0267_RELEASE_BOUND=true');
console.log(outputPrefix + '_CONTROL_V0267_MEMBER=true');
console.log('ANTIMATTERIUM_SHORT_PUBLIC_TAG_REQUIRED=true');
console.log('ANTIMATTERIUM_NO_LOCAL_ROOT_REQUIRED=true');
console.log(outputPrefix + '_ID=' + receipt.backlink_id);
console.log('NO_CURRENT_PRODUCTION_CLAIM=true');
console.log('NO_STARSHIP_CLAIM=true');
console.log('NO_PHYSICAL_PRODUCTION_INSTRUCTIONS=true');
23 changes: 23 additions & 0 deletions tests/org-profile-move139-control-v0267-backlink.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { spawnSync } from 'node:child_process';

test('Move 139 Org profile CONTROL v0.2.67 backlink verifier exits cleanly', () => {
const result = spawnSync(
'npm',
['run', "verify:move139-control-v0267-backlink"],
{ encoding: 'utf8' }
);

assert.equal(result.status, 0, result.stderr || result.stdout);

assert.match(
result.stdout,
new RegExp("ANTIMATTERIUM_ORG_PROFILE_MOVE139_CONTROL_V0267_BACKLINK_VERIFY_PASS=true")
);

assert.match(
result.stdout,
new RegExp("ANTIMATTERIUM_ORG_PROFILE_MOVE139_CONTROL_V0267_BACKLINK_ID=")
);
});
Loading