{ "schema_version": 1, "target_name": "yams", "reviewed_at": "2026-07-31T02:15:00Z", "reviewer": "opencode-optimization-loop (fold optimization workflow iteration 2; re-baselined after line drift; each finding verified against source)", "target": { "revision": "4d942793534b7b13a1fedcc8d017d98dbe18e72f", "tu_set_fingerprint": "869d21aa24cad532703390cc2865c1101a96b2aae394169e1ab5a8b126790ec7", "configuration_fingerprint": "aca0fdc9e3174bd3b2ef30a3f5a605c0b78b490a1474e6d4cb938887ef3b20c4" }, "notes": "Re-baselined 2026-07-31: 3 clone finding IDs drifted (line moves in document_metadata.h and connection_pool.cpp, verified same code as prior review); 4 high-complexity findings persist with updated locations. Prior review by GitHub Copilot (Fold/Yams source review) 2026-07-31T16:05:20Z.", "findings": [ { "id": "clone:literal-insensitive:12245276909989417956:1098403681163497475", "rule_id": "fold.clone", "status": "accepted-risk", "rationale": "MetadataValueTypeUtils::toStringView/toString pair in document_metadata.h; intentional companion helpers, same pattern previously reviewed as accepted-risk. Line moved 601 -> 600 by comment drift.", "location": { "uri": "../../include/yams/metadata/document_metadata.h", "line": 600 } }, { "id": "clone:literal-insensitive:16723759724016722089:6955619696511760552", "rule_id": "fold.clone", "status": "accepted-risk", "rationale": "MetadataValueTypeUtils::fromString switch block; same reviewed accepted-risk pattern, clone-hash inputs shifted by comment drift (was line 578).", "location": { "uri": "../../include/yams/metadata/document_metadata.h", "line": 623 } }, { "id": "clone:literal-insensitive:14923149845992407203:11191373491611600626", "rule_id": "fold.clone", "status": "actionable", "rationale": "Connection-pool trace helper pattern in connection_pool.cpp (db_lifetime_trace_enabled/trace_pool_lifetime area); same finding previously reviewed as actionable at line 54, now at line 42 after comment drift. Actionable debt retained, not new.", "location": { "uri": "../../src/metadata/connection_pool.cpp", "line": 42 } }, { "id": "high-complexity:6758362663857118858", "rule_id": "fold.high-complexity", "status": "accepted-risk", "rationale": "Unchanged persisting finding (types.h complex declaration); reviewed previously.", "location": { "uri": "../../include/yams/core/types.h", "line": 66 } }, { "id": "high-complexity:6222159599337819923", "rule_id": "fold.high-complexity", "status": "actionable", "rationale": "Unchanged persisting actionable finding; line moved 1138 -> 1145 by comment drift.", "location": { "uri": "../../include/yams/metadata/metadata_repository.h", "line": 1145 } }, { "id": "high-complexity:6282006980449136522", "rule_id": "fold.high-complexity", "status": "actionable", "rationale": "Unchanged persisting actionable finding; line moved 290 -> 271 by comment drift.", "location": { "uri": "../../src/metadata/connection_pool.cpp", "line": 271 } }, { "id": "high-complexity:12503670573337107444", "rule_id": "fold.high-complexity", "status": "actionable", "rationale": "Unchanged persisting actionable finding; line moved 681 -> 662 by comment drift.", "location": { "uri": "../../src/metadata/connection_pool.cpp", "line": 662 } } ] }