Files
bare-operating-system/packages/bare-os-seeder/test/replication-operator-surface-corestore.test.mjs
T
Raven Scott f79db04313 POSIX / synthetic syscalls
- Bump /proc/bare_os/syscalls.json to schema 7; socketMsgSurface (sendmsg/recvmsg ENOTSUP)
- POSIX profile 1.0.8; align syscalls.example.json, declared profile, compatibility matrix
- Bridged SOCK_DGRAM recv/recvfrom with bounded queue + poll/select readiness env knobs
- process_table.json schema 7; fdModel.processTableSchema and matrix/dashboard sync
- posix-conformance-matrix bareOsSyscallOps includes recvfrom

P2P / protocol / replication
- Optional Protomux bare-os-app-v1 (BARE_OS_PROTOMUX_APP_CHANNEL)
- Replication: guestReplicationPlan (BARE_OS_REPLICATION_PLAN_JSON), sync_window parallelismHint
- Blind-relay swarm protomuxBackpressure (BARE_OS_SWARM_PROTOMUX_BACKPRESSURE_COUNT)
- Remove bareOsProcBlindPeerRelayHintsStub; strict peer allowlist (BARE_OS_PEER_ALLOWLIST_STRICT)
- Kernel multisig gate before kernel.ext.d; Pear updater integrationHints + audit env docs

Tooling / tests / hygiene
- Default holepunch clone drift in pretest; document BARE_OS_HOLEPUNCH_DRIFT_CHECK=0
- Widen bare holepunch catalog overrides; Mermaid architecture in docs hub + README link
- Fix tests: corestore_snapshot proc schema 2, posixXsh schema 2, awk-engine export strip in xcu sweep
- pear-updater-bridge: shared integration hints; identity-session import order
- Handbook ch.3/7/9 + environment appendix updates; scripts README drift script behavior
2026-04-05 00:45:17 -04:00

24 lines
1.0 KiB
JavaScript

/**
* Aligns seeder env (`BARE_OS_SEED_*`) with booter `/proc` operator JSON builder.
*/
import assert from 'node:assert'
import test from 'node:test'
import { buildBareOsReplicationOperatorSurfaceProcJson } from '../../bare-os-booter/lib/bare-os-proc-replication-operator-surface.js'
import { buildSeederSnapshotHintsJson } from '../lib/build-seeder-snapshot-hints-json.js'
test('corestore_snapshot proc JSON matches seeder snapshot hints env', () => {
const env = {
BARE_OS_SEED_CORESTORE_SNAPSHOT_TAG: 'rel-9',
BARE_OS_SEED_SNAPSHOT_HINTS_JSON: buildSeederSnapshotHintsJson({
BARE_OS_SEED_CORESTORE_SNAPSHOT_TAG: 'rel-9'
})
}
const hints = JSON.parse(env.BARE_OS_SEED_SNAPSHOT_HINTS_JSON)
const proc = buildBareOsReplicationOperatorSurfaceProcJson('corestore_snapshot', env)
assert.strictEqual(proc.schema, 2)
assert.strictEqual(proc.snapshotTag, 'rel-9')
assert.ok(proc.snapshotHintsJson)
assert.strictEqual(proc.snapshotHintsJson.schema, hints.schema)
assert.strictEqual(proc.snapshotHintsJson.corestoreSnapshotTag, 'rel-9')
})