GAL2_RC5_REJOIN_DEADBAND_TRIGGER_REPRODUCTION_V0_1
run_utc=2026-06-11T12:35:17Z
build=/Users/franciscotorres/GAL2_RC5_PRODUCT_SOURCE_FROM_RC31_20260610T185133Z
src=/Users/franciscotorres/GAL2_RC5_PRODUCT_SOURCE_FROM_RC31_20260610T185133Z/src/gal2d.py
tmp=/tmp/gal2_rc5_rejoin_repro_j2BXwy

SOURCE_HASH
88e905b024ae4649ee45e668f0fe90f4d182ce848cb57cc9a3e34fad4e8bf07e  /Users/franciscotorres/GAL2_RC5_PRODUCT_SOURCE_FROM_RC31_20260610T185133Z/src/gal2d.py

RUN_NEGATIVE_CASE_LOW_OFFSET_EXPECT_NO_REJOIN
{
    "api_key_present": true,
    "cache_present": true,
    "config_present": true,
    "config_source": "/tmp/gal2_rc5_rejoin_repro_j2BXwy/negative/mock.env",
    "last_error": null,
    "last_sync": "2026-06-11T12:35:23.482781+00:00",
    "next_poll_seconds": 5.0,
    "poll_interval_seconds": 5.0,
    "quota_status": "ok",
    "requests_limit": 100000,
    "requests_used": 2,
    "status": "live",
    "usage_period_start": "2026-06-01T00:00:00+00:00",
    "version": "1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix"
}
{
    "api_latency_ms": 4.278,
    "cache_age_seconds": 2.88,
    "daemon_mode": "live",
    "gal2_time": "2026-06-11T12:35:26.361963Z",
    "health": "green",
    "holdover_age_sec": null,
    "holdover_policy_version": "rc5_ixoye_witness_holdover_policy_v0_1_derived_from_rc4_72h",
    "last_good_sync": "2026-06-11T12:35:23.482781+00:00",
    "last_recovery_holdover_age_sec": null,
    "last_sync_delta_ms": -0.627,
    "last_sync_trigger": "scheduled",
    "last_upstream_anchor_hash": "528979f17b0a546022d287f8ab83f95db8989f7a8b32919b587ecddd416feb7c",
    "last_upstream_anchor_time": "2026-06-11T12:35:23.482781+00:00",
    "local_receive_time": "2026-06-11T12:35:23.482577+00:00",
    "local_serve_time": "2026-06-11T12:35:26.362280+00:00",
    "max_holdover_sec": 259200.0,
    "mode": "LIVE",
    "monotonic_sequence": 1,
    "monotonic_sequence_semantics": "per_contract_serve",
    "operational_bound_ms": 4.358,
    "oscillator_class_declared": "unspecified_consumer_hardware",
    "policy": {
        "contract_holdover_hard_sec": 259200.0,
        "contract_holdover_soft_sec": 21600.0,
        "contract_live_valid_sec": 45.0,
        "contract_max_api_latency_ms": 5000.0,
        "contract_rejoin_guard_sec": 10.0
    },
    "policy_profile": "rc5_ixoye_witness_policy_v0_1_derived_from_rc4_72h",
    "quota_status": "ok",
    "reason": "fresh_api_sync",
    "rejoin_guard_active": false,
    "rejoin_state": "none",
    "request_id": "local-0000000000000001",
    "safe_to_consume": true,
    "schema": "gal2-daemon-time-contract-v1",
    "service": "gal2d-rc5-ixoye-witness",
    "slew_remaining_sec": 0.0,
    "slew_threshold_ms": 250.0,
    "source_lineage": [
        "gal2_api",
        "gal2_daemon_rc3_base",
        "rc4_72h_holdover_policy",
        "rc5_ixoye_witness_contract"
    ],
    "uncertainty_growth_rate_ms_per_hour": 100.0,
    "uncertainty_ms": 4.358,
    "uncertainty_ms_basis": "conservative_model_v1_not_external_metrology_validated",
    "utc_time": "2026-06-11T12:35:26.361963Z",
    "valid_until": "2026-06-11T12:36:08.482781Z",
    "valid_until_basis": "last_good_sync_plus_contract_live_valid_sec",
    "version": "1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix",
    "witness_ref": {
        "discovery": "/witness",
        "effect_on_safe_to_consume": "none",
        "enabled": true,
        "layer": "IXOYE",
        "policy": "advisory_only",
        "role": "out_of_band_attestation"
    }
}

NEGATIVE_LOGS
{"api_latency_ms":3.492,"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"api_sync_success","level":"INFO","local_role":"contract_enforcement_layer","mode":"live","quota_status":"ok","requests_limit":100000,"requests_used":1,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:18.472087+00:00"}
{"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"api_sync_delta_within_deadband","level":"INFO","local_role":"contract_enforcement_layer","service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","sync_trigger":"scheduled","threshold_applied_ms":250.0,"timestamp":"2026-06-11T12:35:23.482662+00:00","trigger_offset_ms":-0.627}
{"api_latency_ms":4.278,"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"api_sync_success","level":"INFO","local_role":"contract_enforcement_layer","mode":"live","quota_status":"ok","requests_limit":100000,"requests_used":2,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:23.482801+00:00"}
{"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"mode_transition","level":"INFO","local_role":"contract_enforcement_layer","mode":"LIVE","previous_mode":null,"previous_reason":null,"reason":"fresh_api_sync","safe_to_consume":true,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:26.362371+00:00"}
{"api_latency_ms":4.278,"cache_age_seconds":2.88,"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"contract_served","level":"INFO","local_role":"contract_enforcement_layer","mode":"LIVE","reason":"fresh_api_sync","request_id":"local-0000000000000001","safe_to_consume":true,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:26.362437+00:00"}

RUN_POSITIVE_CASE_INJECTED_OFFSET_EXPECT_REJOIN
{
    "api_key_present": true,
    "cache_present": true,
    "config_present": true,
    "config_source": "/tmp/gal2_rc5_rejoin_repro_j2BXwy/positive/mock.env",
    "last_error": null,
    "last_sync": "2026-06-11T12:35:32.596394+00:00",
    "next_poll_seconds": 5.0,
    "poll_interval_seconds": 5.0,
    "quota_status": "ok",
    "requests_limit": 100000,
    "requests_used": 2,
    "status": "slewing",
    "usage_period_start": "2026-06-01T00:00:00+00:00",
    "version": "1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix"
}
{
    "api_latency_ms": 3.795,
    "cache_age_seconds": 2.909,
    "daemon_mode": "slewing",
    "gal2_time": "2026-06-11T12:35:36.231961Z",
    "health": "yellow",
    "holdover_age_sec": 2.909,
    "holdover_policy_version": "rc5_ixoye_witness_holdover_policy_v0_1_derived_from_rc4_72h",
    "last_good_sync": "2026-06-11T12:35:32.596394+00:00",
    "last_recovery_holdover_age_sec": null,
    "last_sync_delta_ms": 999.479,
    "last_sync_trigger": "scheduled",
    "last_upstream_anchor_hash": "26965a5353a4e71e0ed271bfc81e3d1645a317c0c88e9ede13318be032b18720",
    "last_upstream_anchor_time": "2026-06-11T12:35:32.596394+00:00",
    "local_receive_time": "2026-06-11T12:35:32.596200+00:00",
    "local_serve_time": "2026-06-11T12:35:35.505114+00:00",
    "max_holdover_sec": 259200.0,
    "mode": "REJOIN",
    "monotonic_sequence": 1,
    "monotonic_sequence_semantics": "per_contract_serve",
    "operational_bound_ms": 3.876,
    "oscillator_class_declared": "unspecified_consumer_hardware",
    "policy": {
        "contract_holdover_hard_sec": 259200.0,
        "contract_holdover_soft_sec": 21600.0,
        "contract_live_valid_sec": 45.0,
        "contract_max_api_latency_ms": 5000.0,
        "contract_rejoin_guard_sec": 10.0
    },
    "policy_profile": "rc5_ixoye_witness_policy_v0_1_derived_from_rc4_72h",
    "quota_status": "ok",
    "reason": "controlled_rejoin_slew_active",
    "rejoin_guard_active": false,
    "rejoin_state": "slewing",
    "request_id": "local-0000000000000001",
    "safe_to_consume": true,
    "schema": "gal2-daemon-time-contract-v1",
    "service": "gal2d-rc5-ixoye-witness",
    "slew_remaining_sec": 1.089,
    "slew_threshold_ms": 250.0,
    "source_lineage": [
        "gal2_api",
        "gal2_daemon_rc3_base",
        "rc4_72h_holdover_policy",
        "rc5_ixoye_witness_contract"
    ],
    "uncertainty_growth_rate_ms_per_hour": 100.0,
    "uncertainty_ms": 3.876,
    "uncertainty_ms_basis": "conservative_model_v1_not_external_metrology_validated",
    "utc_time": "2026-06-11T12:35:36.231961Z",
    "valid_until": "2026-06-11T12:36:17.596394Z",
    "valid_until_basis": "min_local_serve_window_and_last_good_sync_live_valid_sec",
    "version": "1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix",
    "witness_ref": {
        "discovery": "/witness",
        "effect_on_safe_to_consume": "none",
        "enabled": true,
        "layer": "IXOYE",
        "policy": "advisory_only",
        "role": "out_of_band_attestation"
    }
}

POSITIVE_LOGS
{"api_latency_ms":3.516,"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"api_sync_success","level":"INFO","local_role":"contract_enforcement_layer","mode":"live","quota_status":"ok","requests_limit":100000,"requests_used":1,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:27.586173+00:00"}
{"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"controlled_slew_started","level":"INFO","local_role":"contract_enforcement_layer","service":"gal2d-rc5-ixoye-witness","slew_duration_sec":3.998,"slew_target_ms":999.479,"source_authority":"gal2_api_core","sync_trigger":"scheduled","threshold_applied_ms":250.0,"timestamp":"2026-06-11T12:35:32.596283+00:00","trigger_offset_ms":999.479}
{"api_latency_ms":3.795,"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"api_sync_success","level":"INFO","local_role":"contract_enforcement_layer","mode":"slewing","quota_status":"ok","requests_limit":100000,"requests_used":2,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:32.596414+00:00"}
{"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"mode_transition","level":"INFO","local_role":"contract_enforcement_layer","mode":"REJOIN","previous_mode":null,"previous_reason":null,"reason":"controlled_rejoin_slew_active","safe_to_consume":true,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:35.505209+00:00"}
{"api_latency_ms":3.795,"cache_age_seconds":2.909,"contract_version":"1.1.3-contract-rc5-ixoye-witness-validity-deadband-observability-fix","daemon_version":"1.1.3-rc5-ixoye-witness-validity-deadband-observability-fix","event":"contract_served","level":"INFO","local_role":"contract_enforcement_layer","mode":"REJOIN","reason":"controlled_rejoin_slew_active","request_id":"local-0000000000000001","safe_to_consume":true,"service":"gal2d-rc5-ixoye-witness","source_authority":"gal2_api_core","timestamp":"2026-06-11T12:35:35.505274+00:00"}

ASSERTIONS
{
  "checks": {
    "negative_deadband_logged": true,
    "negative_delta_populated": true,
    "negative_delta_under_threshold": true,
    "negative_no_rejoin": true,
    "negative_threshold_visible": true,
    "negative_two_syncs": true,
    "positive_delta_over_threshold": true,
    "positive_delta_populated": true,
    "positive_rejoin": true,
    "positive_slew_logged": true,
    "positive_threshold_visible": true,
    "positive_two_syncs": true,
    "sequence_semantics_declared": true,
    "validity_basis_still_sync": true,
    "witness_still_advisory": true
  },
  "negative": {
    "last_sync_delta_ms": -0.627,
    "mode": "LIVE",
    "requests_used": 2,
    "slew_threshold_ms": 250.0
  },
  "positive": {
    "last_sync_delta_ms": 999.479,
    "mode": "REJOIN",
    "requests_used": 2,
    "slew_threshold_ms": 250.0
  }
}

GAL2_RC5_REJOIN_DEADBAND_TRIGGER_REPRODUCTION_V0_1=PASS
