bitfab 0.71.1 → 0.72.1
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.
- checksums.yaml +4 -4
- data/lib/bitfab/assertions.rb +15 -0
- data/lib/bitfab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 750acbbb2c4ff46221148021fd6cfe9d159dbfc0d4c1c7020c705b6f703a09c1
|
|
4
|
+
data.tar.gz: 7d6d64ec6afc5e8d78df539fa1f25cf4633d07469d59e75a33f2aa0118f4f3ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68bed12848716050b8a5a9229af72f7c946e126adae28588207069731750cdeab6850ce15f6a0e5e77fa0a29c7df7321b96465fd5f31c6fac879eaaed03e28d2
|
|
7
|
+
data.tar.gz: 8d436252fb328617a0b40e4e26e6d6a3641baf9b64faf1884cf806d0554d313bd3f720210cb4e9567e7b1c0e33827335593e52291946ca56e2690de712c67796
|
data/lib/bitfab/assertions.rb
CHANGED
|
@@ -29,6 +29,21 @@ module Bitfab
|
|
|
29
29
|
# pass nil to clear it. The deprecated "category_assertion_id" is still
|
|
30
30
|
# accepted and sent as "category_id"; "category_id" wins when both are set.
|
|
31
31
|
#
|
|
32
|
+
# "kind" says who decides the assertion: "judge" (the LLM judge), "code"
|
|
33
|
+
# ("code" decides every replay), or "hybrid" ("code" decides what it can
|
|
34
|
+
# and returns "defer" for the rest). Send "code" or "hybrid" together with
|
|
35
|
+
# "code", {"source" => ..., "spanNames" => [...]}. "source" is the body of
|
|
36
|
+
# an async TypeScript (or plain JavaScript) function called with spans
|
|
37
|
+
# (each {name, index, hasData}, in start order, without its data), input,
|
|
38
|
+
# and output. It reads span data with await named("span name") or await
|
|
39
|
+
# span.data(), and returns "pass", "fail", or "defer" (hybrid only), or
|
|
40
|
+
# {result, reason}, with one second of compute and the data of at most 50
|
|
41
|
+
# spans loaded within ten seconds. "spanNames" lists every span a correct run is
|
|
42
|
+
# expected to produce. Code that cannot run on the trace, or that returns
|
|
43
|
+
# "defer" for a "code" assertion, is refused. Omit both to keep them, or
|
|
44
|
+
# pass "kind" => "judge" to remove the code. Returned assertions carry
|
|
45
|
+
# "kind", "code", and "codeBrokenReason".
|
|
46
|
+
#
|
|
32
47
|
# By default, after the save, Bitfab checks each assertion's text against its
|
|
33
48
|
# trace. When the text bundles two claims, adds a condition, points at a
|
|
34
49
|
# value instead of stating it, names an id from the recorded run, or cannot
|
data/lib/bitfab/version.rb
CHANGED