contract-trace.json

{
  "source_base": "86a7d39ad4492a624d43ba89001f2d7dbe28f594",
  "scope": "read-only source contract and offline Cell02 fixture; FR40 working changes affect masking only",
  "findings": [
    {
      "path": "src/cells/cell02/Cell2.py",
      "symbols": [
        "Cell2Config.enable_cell4_cache",
        "SchemaService._cached_validate",
        "SchemaService.validate_with_ontology"
      ],
      "fact": "default True; lru_cache placeholder always True,[]; bypasses provider entirely"
    },
    {
      "path": "src/cells/cell02/Cell2.py",
      "symbols": [
        "SchemaService._uncached_validate",
        "Cell2Config.cell4_api_key"
      ],
      "fact": "sends cmd.ontology.validate_schema.v1 without configuredAPIkeyheader; response expects success/data/is_valid/errors"
    },
    {
      "path": "src/cells/cell04/Cell4.py",
      "symbols": [
        "handle_a2a_task",
        "verify_api_key",
        "SchemaValidationRequest",
        "EnhancedOntologyService.validate_schema"
      ],
      "fact": "actualA2A accepts query.ontology.validate_schema.v1; X-API-Key dependency conditionalonapi_key_secret; schema JSONobjectvalidatedasinstanceagainstontology androotfieldnamescheckedstrictly"
    },
    {
      "path": "src/cells/cell02/Cell2.py",
      "symbols": [
        "SchemaService._hash_schema",
        "SchemaService._preprocess_schema"
      ],
      "fact": "schemahash includes inferred_at; cachekey no tenantcontext/TTL/invalidation; outbound schema fields/version/inferred_at wrapper doesnotmatch fieldinstance expectation"
    }
  ],
  "safe_proposal": "Treat nonexistent cache as explicit miss and always use existing uncachedvalidation; preserveconfigliteral/default and failure semantics. No cache implementation or positiveproviderclaim. Any typed/cachecontract change needs focusedtests and ownerreview. Protocol/auth/schema issues remainOPEN.",
  "reproduction": "/tmp/fr41-cache-probe.json",
  "source_mutations": false,
  "external_calls": false
}
← All docsView source on GitHub →