@forwardimpact/libbridge 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/callback-registry.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forwardimpact/libbridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Threaded-channel bridge primitives — relay messages between human channels (GitHub Discussions, Microsoft Teams) and the Kata agent team.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bridge",
|
package/src/callback-registry.js
CHANGED
|
@@ -119,6 +119,12 @@ export class CallbackRegistry {
|
|
|
119
119
|
* route uses this to verify a path-supplied tenant against the binding
|
|
120
120
|
* the dispatcher recorded. Single-pass scan of the entries map; the
|
|
121
121
|
* registry is one entry per in-flight dispatch per bridge process.
|
|
122
|
+
*
|
|
123
|
+
* Scan-by-design (timing-parity): the bounded-n scan is acceptable only
|
|
124
|
+
* while the caller preserves response-shape parity — a miss here and a
|
|
125
|
+
* tenant mismatch must produce the same response (the inbox route
|
|
126
|
+
* collapses both to 404 `Unknown correlation`), so timing or shape never
|
|
127
|
+
* distinguishes "correlation unknown" from "correlation bound elsewhere".
|
|
122
128
|
* @param {string} correlationId
|
|
123
129
|
* @returns {string | null}
|
|
124
130
|
*/
|