agent-harness 0.17.0 → 0.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3de614caae7f2e65904c6118c209a2e149769e518e4a200c3efb77e8424db93
4
- data.tar.gz: 8bd46e4f308b5de943554bd1dc3a4b31ab9180e2d1a2b61fd126840de6ff9029
3
+ metadata.gz: 68dcb8a37c35c6ded8f4d01e0f0d6d14e1588ac41a88f2b613fa2fbab9decc79
4
+ data.tar.gz: 6317ce0f0ef2aaadf13dfa39b6897d67a4b453bbb7b7b09db348366d33b8d993
5
5
  SHA512:
6
- metadata.gz: 4981d9c872f63e2739f7bda8f182387aac3218f7522e66cdc137aa1d34dfb51516b4e82e3193b8ee4b983c5a19cb68185d7bab5b630ace98a6b9bfad1b2ffb8d
7
- data.tar.gz: d84d943eccbc10258eafbd60f53b6aad796cc2f2b9b663addb6c178cc29934ef3ee2d0c92925d627edb4c875c39a912915f0f7f04ed273be451a4a0a314bc047
6
+ metadata.gz: 59989e7197cf596e87ae4ffb87f252419d72f3c9c119de4f210fc4a41c7b3777187a69f1745e65f7a1cefb0010b87f316cd375c673de56e906e4b223364dac44
7
+ data.tar.gz: a691c948ee1fb9f3f6777b3624863b42024ecf85c84b5b320a0e258cf4f7467db7832e703048cee42272cd3e946c020321873788d48de225acaf00eaa8bee757
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.17.0"
2
+ ".": "0.17.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.17.1](https://github.com/viamin/agent-harness/compare/agent-harness/v0.17.0...agent-harness/v0.17.1) (2026-05-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 173: Smoke test contract timeout (30s) overrides caller timeout, breaking slow models ([#205](https://github.com/viamin/agent-harness/issues/205)) ([3a1e301](https://github.com/viamin/agent-harness/commit/3a1e301e36ef8957fd440f2782b3b8e4687b473c))
9
+
3
10
  ## [0.17.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.16.1...agent-harness/v0.17.0) (2026-05-03)
4
11
 
5
12
 
@@ -324,7 +324,18 @@ module AgentHarness
324
324
  # contract[:timeout]. When the provider overrides #smoke_test without
325
325
  # publishing a contract, forward the validated health-check timeout so
326
326
  # the override can honour it instead of running without any limit.
327
- smoke_timeout = smoke_contract ? nil : timeout
327
+ # However, when the caller explicitly provides a timeout that exceeds
328
+ # the contract timeout, honour the caller's intent so slow models
329
+ # are not prematurely killed by the contract default.
330
+ contract_timeout = smoke_contract&.dig(:timeout)
331
+ valid_contract_timeout = contract_timeout.is_a?(Numeric) && contract_timeout.positive?
332
+ smoke_timeout = if valid_contract_timeout && timeout && timeout > contract_timeout
333
+ timeout
334
+ elsif smoke_contract
335
+ nil
336
+ else
337
+ timeout
338
+ end
328
339
  smoke = provider_instance.smoke_test(timeout: smoke_timeout, provider_runtime: provider_runtime)
329
340
  unless smoke[:ok]
330
341
  return build_result(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentHarness
4
- VERSION = "0.17.0"
4
+ VERSION = "0.17.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agent-harness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan