ctx_driver 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cbdf4bc07bb1aec928d5168708c4ad1e702a7beb02a583c2253a0393220cb4b
4
- data.tar.gz: addb2be4cb980619dc0127646d93cc63d317d4d441e9978c3a04e412fc29dd30
3
+ metadata.gz: 598a02dcecf58f317a71bbd0bb6591eeb00de1a7af012f0b8630a60c409b97f0
4
+ data.tar.gz: c0a6abd65a443d0084e69be5c533a150c31fd037c6c23e6ab5e1663a4e893ca4
5
5
  SHA512:
6
- metadata.gz: c023373b37be733bb5611c503b692fde08ecd0f670746050c46af839525cfb5a1eb6f2058dceac85426a1838f0e3cabfdace6b045772ea9c220f4c6c74c4ec57
7
- data.tar.gz: f303b0d73d071c96e19ecad90194586aeff1ebabf1f4b7e148f2ce2fb7fd77cc2cf644ebb1d285cbb46d887430e9e7e05f6002ca69cf22f3d89b255e848c8331
6
+ metadata.gz: 2b54944316508e0ba40ca5b9b582ea437b2a8e5684e58dbae1b3c7326d5c942e3d36c62e9bf9de2005522e9ad6c531b866faaad56b9f38ea4b64b384ff11b703
7
+ data.tar.gz: 9c7095540378d3d58aea63fbc22710043899a10277e0d068174033898c108ca21fd846db11549e2f9ff4d254b34e429df62caa3fb892fa8c595d7eb94d69700a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Changes to the public contract are recorded here. Versions follow Semantic Versioning.
4
4
 
5
+ ## Unreleased
6
+
7
+ ## 0.2.5 (2026-10-21)
8
+
9
+ - Add repository-specific AGENTS.md guidance for responsibilities, Ruby conventions, evidence boundaries and validation.
10
+ - Reject failed single-query receipts containing multiple completed commands while retaining source evidence.
11
+
5
12
  ## 0.2.4 (2026-10-18)
6
13
 
7
14
  - Clear Bundler bootstrap variables when verifying packages in an isolated gem installation, including calls made through bundle exec.
@@ -70,7 +70,8 @@ module CtxDriver
70
70
 
71
71
  evidence = [ { command: command, sha256: Digest::SHA256.hexdigest(output), bytes: output.bytesize } ]
72
72
  success = receipt.success?
73
- unless [ true, false ].include?(success) && receipt.steps.is_a?(Array) && (!success || receipt.steps.one?)
73
+ steps = receipt.steps
74
+ unless [ true, false ].include?(success) && steps.is_a?(Array) && (success ? steps.one? : steps.size <= 1)
74
75
  raise TypeError, "One query must return one completed command"
75
76
  end
76
77
  if success
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CtxDriver
4
4
  # 公开包版本,供 RubyGems 元数据和运行时调用方共用。
5
- VERSION = "0.2.4"
5
+ VERSION = "0.2.5"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ctx_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gatework contributors