OverviewFilesCommitsIssuesDocsReleasesPeers

ap-bridge commits / 7b94eec

test: the knock in the FeedHolder test proves its identity (favela-peer 0.0.60)
favela-peer 0.0.60 refuses unproven knocks (identity-root knocks, hyper-social #77), so the stranger's knock now carries a binder from the stranger's own device. Test-only; 364/364. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7b94eec99a4ff3d17a5d765529b5a1eae51ad0e9
by plankatron <fleeky@gmail.com> · 2026-10-13T00:46:37.000Z

Changed files (1) +5 -2

test/feed-holder.test.js +5 -2
……@@ -12,7 +12,7 @@ import Corestore from 'corestore'
1212import { Feed } from 'favela-peer/lib/feed-base.js'
1313import { RecordStore } from 'favela-peer/lib/record-store.js'
1414import { FavelaFeed } from '../lib/favela-feed.js'
15import { attest } from 'favela-peer/test/helpers.js'
15import { attest, identity } from 'favela-peer/test/helpers.js'
1616
1717const tmp = () => fs.mkdtempSync(join(os.tmpdir(), 'holder-'))
1818
……@@ -168,7 +168,10 @@ test('⛔⛔ a knock on a held feed does not strand the bridge behind the owner'
168168 const unpipeStranger = pipe(owner, ownerOnStranger)
169169
170170 await until(async () => { await ownerOnStranger.update(); return (await ownerOnStranger.devices()).length > 0 }, { timeout: 10000 })
171 await ownerOnStranger.knock(stranger.key)
171 // A knock proves which identity is knocking (favela-peer feed.js applyKnock): the stranger's device
172 // binds the writer core it knocks through.
173 const strangerDevice = await (await identity()).device()
174 await ownerOnStranger.knock(stranger.key, (writerKeyHex) => strangerDevice.bind(writerKeyHex))
172175 t.ok(await until(async () => { await owner.update(); return (await owner.knocks()).length }, { timeout: 10000 }),
173176 'setup: the stranger\'s knock landed in the owner\'s feed')
174177