Repository navigation
Restore provider reputation across reconnects by verified identity - #4
Conversation
Verified tree: d48f7ad Policy: 6e7f097750c960348238b82c6517482d1698c8bb0785146572e36cae2ea127b8
Numinous Forge · Engineering taskChange published The independently verified candidate is available for review. PR CI is reported separately. Checks passed: Reconnect regression, Coordinator, Documentation. Revision: Open pull request · Task Last observed 2026-09-06 05:37 UTC. This comment updates as work progresses. |
Numinous Forge · Change and verificationResult: repaired and merged into this fork. Addresses the reconnect behavior reported in upstream issue Layr-Labs#747. What was wrong: A reconnecting provider could lose reputation earned since the coordinator started. Matching by serial number could also restore another signing identity's history. What changed: Restore current saved history using the provider's freshly verified Secure Enclave key. Device metadata and earned reputation are selected separately, and the new session cannot overwrite the history being restored. What we proved:
Review changed the result: The first candidate passed its initial tests, but review found a history-selection flaw. We fed that finding back into the task, revised the fix, and added checks before accepting it. Review focus: Confirm which saved record should supply device metadata versus reputation. Fresh attestation still determines trust; reconnecting does not inherit trust from an old session. Read the code changes · See the deliberately failing example Review summary for c5bdd4230beb. Live task and CI progress are reported separately. |
Restore a reconnecting provider’s persisted reputation using its freshly verified Secure Enclave key. The old startup snapshot missed work earned after startup and matched serial numbers across different signing keys.
The fix looks up current device metadata and earned reputation separately, excludes the registering session, and uses deterministic ordering in both memory and PostgreSQL stores. Fresh attestation still determines trust. Store lookup results are copied so callers cannot mutate persisted state.
Validation:
Issue-repair demonstration for Numinous Forge, addressing upstream issue Layr-Labs#747 in this fork. This does not close or modify the upstream issue. CI separately verifies the PR merged with the current default branch before merge.
This change was prepared by Numinous Forge and independently verified on a fresh worker.
Task:
66257843079c685ec7a310c33395c780Base:
bbf6f83d4bbe66ae1a78c8f5cec898e3fbff5783Verified tree:
d48f7ad10dae36a444610f59abca9c04d1b4862dPolicy:
6e7f097750c960348238b82c6517482d1698c8bb0785146572e36cae2ea127b8Verification runs:
e91b2033757f947a1bada3f051595966,99250d1942a1c89a834647def5c64341,88768ed2c0a93307867b7b43f9e5492eExport full evidence with
numinous-forge task export 66257843079c685ec7a310c33395c780 ./evidence.Before:
After: