Kusshal commited on
Commit
e3144be
·
verified ·
1 Parent(s): a77f8d2

Complete disclosed AI audits: 150 frozen judgments and verified scores

Browse files

P4-AI-AUDIT-2026-10-23; not independently human-validated. No model results changed.

artifacts/audit_c4/audit_labels.csv CHANGED
@@ -1,51 +1,51 @@
1
- id,label,note
2
- f73c5234-001,,
3
- f73c5234-002,,
4
- f73c5234-003,,
5
- f73c5234-004,,
6
- f73c5234-005,,
7
- f73c5234-006,,
8
- f73c5234-007,,
9
- f73c5234-008,,
10
- f73c5234-009,,
11
- f73c5234-010,,
12
- f73c5234-011,,
13
- f73c5234-012,,
14
- f73c5234-013,,
15
- f73c5234-014,,
16
- f73c5234-015,,
17
- f73c5234-016,,
18
- f73c5234-017,,
19
- f73c5234-018,,
20
- f73c5234-019,,
21
- f73c5234-020,,
22
- f73c5234-021,,
23
- f73c5234-022,,
24
- f73c5234-023,,
25
- f73c5234-024,,
26
- f73c5234-025,,
27
- f73c5234-026,,
28
- f73c5234-027,,
29
- f73c5234-028,,
30
- f73c5234-029,,
31
- f73c5234-030,,
32
- f73c5234-031,,
33
- f73c5234-032,,
34
- f73c5234-033,,
35
- f73c5234-034,,
36
- f73c5234-035,,
37
- f73c5234-036,,
38
- f73c5234-037,,
39
- f73c5234-038,,
40
- f73c5234-039,,
41
- f73c5234-040,,
42
- f73c5234-041,,
43
- f73c5234-042,,
44
- f73c5234-043,,
45
- f73c5234-044,,
46
- f73c5234-045,,
47
- f73c5234-046,,
48
- f73c5234-047,,
49
- f73c5234-048,,
50
- f73c5234-049,,
51
- f73c5234-050,,
 
1
+ id,label,note,reviewer_type,amendment_id
2
+ f73c5234-001,not_clone,"A generates a randomized GUID from host/time/randomness and stores pre/post-MD5 values; B hashes a supplied string with a selected algorithm. Digest computation is only a component of GUID generation.",ai,P4-AI-AUDIT-2026-10-23
3
+ f73c5234-002,not_clone,"A tests StraightStreamReader read modes against generated byte values; B downloads and installs worm-database updates with registration/version checks and progress scheduling.",ai,P4-AI-AUDIT-2026-10-23
4
+ f73c5234-003,not_clone,"A reads an HDFS file twice to stdout after seek; B conditionally streams an allowed local resource to a caller output. Different access/side-effect contracts and repeated-read demonstration versus serving.",ai,P4-AI-AUDIT-2026-10-23
5
+ f73c5234-004,not_clone,"A returns fetched URL text; B discovers service descriptors and instantiates input-method classes from their resource entries.",ai,P4-AI-AUDIT-2026-10-23
6
+ f73c5234-005,not_clone,"A copies file bytes unchanged through a mapped buffer; B BZip2-decompresses a file with locking/progress and optional source deletion.",ai,P4-AI-AUDIT-2026-10-23
7
+ f73c5234-006,not_clone,"A generates a randomized FNV-1a/Base64 identifier; B encrypts a password with passphrase-derived PBEWithMD5AndDES and salt. Different transformations and purposes.",ai,P4-AI-AUDIT-2026-10-23
8
+ f73c5234-007,clone,"Both copy source file contents to a destination. A verifies length and optionally preserves time; B checks path permissions and prompts before overwrite then uses a byte buffer.",ai,P4-AI-AUDIT-2026-10-23
9
+ f73c5234-008,not_clone,"A converts input to XML through tidy; B Base64-decodes and GZIP-decompresses input into an output stream using a pipe/thread.",ai,P4-AI-AUDIT-2026-10-23
10
+ f73c5234-009,not_clone,"A imports and token-indexes a selected document; B archives a database record and its topics/attributes/terms with authorization and audit trails.",ai,P4-AI-AUDIT-2026-10-23
11
+ f73c5234-010,not_clone,"A updates a client's password using MD5 and returns a DTO; B persists authorized company contact/name/website fields through SQL.",ai,P4-AI-AUDIT-2026-10-23
12
+ f73c5234-011,not_clone,"A copies one file unchanged; B creates a ZIP containing dataset and metadata entries. Archiving is a different output transformation.",ai,P4-AI-AUDIT-2026-10-23
13
+ f73c5234-012,not_clone,"A tests XML spectrum read-write-read equality; B issues a MusicBrainz query and saves the returned XML text to a response file without testing serialization equivalence.",ai,P4-AI-AUDIT-2026-10-23
14
+ f73c5234-013,not_clone,"A generates an MD5 random GUID; B posts location/radius parameters and parses a JSON response into Mosque objects.",ai,P4-AI-AUDIT-2026-10-23
15
+ f73c5234-014,unsure,"A explicitly converts HTML to XHTML; B wraps file I/O around an unavailable execute(reader,writer,htmlCleanerConfig) implementation. HTML-cleaning context suggests overlap but its exact transformation cannot be established from this fragment.",ai,P4-AI-AUDIT-2026-10-23
16
+ f73c5234-015,not_clone,"A PNG-encodes a rendered image and uploads it to S3; B copies uploaded product images locally and persists the product/image associations without encoding.",ai,P4-AI-AUDIT-2026-10-23
17
+ f73c5234-016,not_clone,"A compresses a file to BZip2 with locking/progress/source policy; B copies or appends file bytes through channels without compression.",ai,P4-AI-AUDIT-2026-10-23
18
+ f73c5234-017,not_clone,"A downloads a game image to disk; B validates and converts uploaded document data through a conversion path and serves ZIP/single-file results.",ai,P4-AI-AUDIT-2026-10-23
19
+ f73c5234-018,not_clone,"A executes SQL updates guarded by affected-row limits; B executes parameterized CachedRowSet commands with paging/query settings and populates rows. Transaction boilerplate does not supply A's bounds or B's rowset function.",ai,P4-AI-AUDIT-2026-10-23
20
+ f73c5234-019,not_clone,"A conditionally installs a bundled weaving JAR; B encodes a rendered image as PNG and uploads it to S3 with metadata.",ai,P4-AI-AUDIT-2026-10-23
21
+ f73c5234-020,not_clone,"A imports an image into a collection with generated ID and persisted metadata; B loads a texture from cache/ZIP/URL and creates a rendering texture.",ai,P4-AI-AUDIT-2026-10-23
22
+ f73c5234-021,not_clone,"A copies a file between explicit paths; B saves an uploaded image under a generated name and inserts its HTML tag into a question description. Copying is only part of B's content-editing operation.",ai,P4-AI-AUDIT-2026-10-23
23
+ f73c5234-022,clone,"Both copy a source file to a destination using byte streams. A preserves the modification time; B adds destination-directory and overwrite checks.",ai,P4-AI-AUDIT-2026-10-23
24
+ f73c5234-023,not_clone,"A reads a database BLOB to an output stream; B serializes and inserts a genomic model with tags and links into PostgreSQL. Retrieval and persistence are different operations.",ai,P4-AI-AUDIT-2026-10-23
25
+ f73c5234-024,not_clone,"A copies a local file via a temporary destination/rename; B downloads remote image data and conditionally processes its image format. Copying alone does not provide B's conversion behavior.",ai,P4-AI-AUDIT-2026-10-23
26
+ f73c5234-025,not_clone,"A retrieves HTTP response text; B consolidates bibliographic metadata using DOI/title/journal Crossref queries with XML parsing and database caching. Retrieval is only a small component of B.",ai,P4-AI-AUDIT-2026-10-23
27
+ f73c5234-026,not_clone,"A extracts PDF pages 3 through 8; B downloads an archive and extracts nested lib/*.jar entries to temporary files returning their URLs.",ai,P4-AI-AUDIT-2026-10-23
28
+ f73c5234-027,not_clone,"A exports local files into a JAR with a manifest; B locates and loads a translation dictionary from filesystem/local or remote JAR with language fallback.",ai,P4-AI-AUDIT-2026-10-23
29
+ f73c5234-028,not_clone,"A exchanges an auth code for a session key; B manages report editing/permissions/upload/compilation/download in a portlet action.",ai,P4-AI-AUDIT-2026-10-23
30
+ f73c5234-029,not_clone,"A tests transaction rollback/commit against a newly created table; B fetches/parses a web page and tracks Last-Modified state in a database.",ai,P4-AI-AUDIT-2026-10-23
31
+ f73c5234-030,not_clone,"A tests rejection of file transfer after encoder completion; B compresses TIFF input to JPEG2000 via an external compressor with platform-specific output handling.",ai,P4-AI-AUDIT-2026-10-23
32
+ f73c5234-031,not_clone,"A loads a remote server list into Host objects and UI choices; B authenticates to a remote console using a digest challenge then executes a command and reads its response.",ai,P4-AI-AUDIT-2026-10-23
33
+ f73c5234-032,not_clone,"A serves a media object selected by content ID/type; B is a general request router handling redirects/binary/XML/view responses. Media streaming covers only one branch of B's dispatcher.",ai,P4-AI-AUDIT-2026-10-23
34
+ f73c5234-033,unsure,"A prints a fixed password's hexadecimal MD5 digest; B returns configurable LDAP-style MD5/SHA/salted Base64 password representations. Both hash passwords but intended task granularity versus differing representation/salt contracts is unresolved.",ai,P4-AI-AUDIT-2026-10-23
35
+ f73c5234-034,not_clone,"A tests quoted-printable encode/decode equivalence; B reads optionally GZIP-compressed tuple bytes and decompresses them without a round-trip assertion.",ai,P4-AI-AUDIT-2026-10-23
36
+ f73c5234-035,not_clone,"A saves an information form with SMS and attachments; B handles library catalog search/display/export/email views with bibliographic/holdings metadata.",ai,P4-AI-AUDIT-2026-10-23
37
+ f73c5234-036,clone,"Both stream content into an HTTP response for download. A uses a local File/content length; B uses a StreamProvider with MIME type/attachment name and display initialization.",ai,P4-AI-AUDIT-2026-10-23
38
+ f73c5234-037,not_clone,"A copies a supplied file stream to a path; B creates a ZIP with separate dataset and metadata entries. Archive construction changes the output contract.",ai,P4-AI-AUDIT-2026-10-23
39
+ f73c5234-038,not_clone,"A copies one file with temporary staging/progress; B inserts inline/external resource tags into an XML/HTML document and copies linked resources. A provides only one component of B's document operation.",ai,P4-AI-AUDIT-2026-10-23
40
+ f73c5234-039,clone,"Both copy a source file to a destination. A verifies complete length and optionally preserves date; B enforces a force-overwrite policy and uses buffered byte streams.",ai,P4-AI-AUDIT-2026-10-23
41
+ f73c5234-040,not_clone,"A constructs a package entry and records stream bytes in its update structure; B uploads stream bytes to a unique disk filename within a validated resource folder. Storage abstraction and resulting operation differ.",ai,P4-AI-AUDIT-2026-10-23
42
+ f73c5234-041,clone,"Both extract ZIP archive entries to a destination directory. B explicitly creates directory entries while A iterates a ZipInputStream and writes entry files.",ai,P4-AI-AUDIT-2026-10-23
43
+ f73c5234-042,not_clone,"A returns the middle 16 hexadecimal MD5 characters of a string; B retrieves a login challenge and constructs an authentication URL with password/challenge digests and additional parameters.",ai,P4-AI-AUDIT-2026-10-23
44
+ f73c5234-043,not_clone,"A registers a chat player using a SHA-256-derived token; B constructs an HTTP/SIP Digest authorization string from challenge parameters. Different authentication operations.",ai,P4-AI-AUDIT-2026-10-23
45
+ f73c5234-044,not_clone,"A refreshes retrieved text and resets price/date state; B JPEG-encodes an image and uploads its bytes through HTTP POST, then logs response lines.",ai,P4-AI-AUDIT-2026-10-23
46
+ f73c5234-045,not_clone,"A returns a SHA-1 hexadecimal digest; B creates and stores an object property with conditional MD5 hashing only for Password fields. Hashing is only one branch of B's persistence operation.",ai,P4-AI-AUDIT-2026-10-23
47
+ f73c5234-046,not_clone,"A copies one file unchanged; B extracts matching source entries from a JAR into destination files and counts them.",ai,P4-AI-AUDIT-2026-10-23
48
+ f73c5234-047,not_clone,"A extracts a multi-part TAR archive with CRC and destination checks; B saves/exports a concept map to selected XML/image/PDF/ZIP/HTML/RDF/archive formats with UI handling.",ai,P4-AI-AUDIT-2026-10-23
49
+ f73c5234-048,not_clone,"A computes a file checksum by discarding consumed bytes; B downloads URL bytes to a local file without calculating a checksum.",ai,P4-AI-AUDIT-2026-10-23
50
+ f73c5234-049,clone,"Both copy a local file's contents to another local file. A uses channels and a basename destination; B validates explicit paths and uses buffered character I/O with encoding/binary limitations.",ai,P4-AI-AUDIT-2026-10-23
51
+ f73c5234-050,not_clone,"A copies bytes between two explicit files; B walks XML image/resource references, copies multiple files and rewrites their paths in the returned XML. Single-file copying is only a component.",ai,P4-AI-AUDIT-2026-10-23
artifacts/audit_c4/audit_result.json CHANGED
@@ -1,18 +1,18 @@
1
  {
2
  "C4": {
3
  "n": 50,
4
- "clone": 15,
5
- "not_clone": 34,
6
- "unsure": 1,
7
- "fn_rate": 0.3,
8
  "fn_rate_ci95": [
9
- 0.191,
10
- 0.438
11
  ],
12
- "fn_rate_upper_incl_unsure": 0.32,
13
  "fn_rate_upper_ci95": [
14
- 0.208,
15
- 0.458
16
  ]
17
  },
18
  "_provenance": {
@@ -23,7 +23,16 @@
23
  "examples": []
24
  }
25
  },
26
- "version": "phase01-v7",
27
- "n_labelled": 100
 
 
 
 
 
 
 
 
 
28
  }
29
  }
 
1
  {
2
  "C4": {
3
  "n": 50,
4
+ "clone": 6,
5
+ "not_clone": 42,
6
+ "unsure": 2,
7
+ "fn_rate": 0.12,
8
  "fn_rate_ci95": [
9
+ 0.056,
10
+ 0.238
11
  ],
12
+ "fn_rate_upper_incl_unsure": 0.16,
13
  "fn_rate_upper_ci95": [
14
+ 0.083,
15
+ 0.285
16
  ]
17
  },
18
  "_provenance": {
 
23
  "examples": []
24
  }
25
  },
26
+ "version": "phase01-v8",
27
+ "n_labelled": 50,
28
+ "reviewer_type": "ai",
29
+ "amendment_id": "P4-AI-AUDIT-2026-10-23",
30
+ "independent_human_validation": false,
31
+ "fully_blind": false,
32
+ "frozen_utc": "2026-10-23T11:38:33Z",
33
+ "label_sha256": "088090b253bcc34c8112d8b9ba03f897795766276cc2a9be63f5fae9b07fa5c2",
34
+ "sheet_sha256": "f50d252c366cbb787be5c1a127f45abf71e81cb89cfa8cae682c05f88eaa2bd8",
35
+ "freeze_sha256": "529b892838c7c5892e9928e9b4590d42fa35ce10323333ef2e1a3abcdb80b7ad",
36
+ "protocol_sha256": "5ecaf65c2c2664eee54256153ac76074b516b09c9f4f8197d42d5ee54d4d1eb5"
37
  }
38
  }
artifacts/audit_c5/audit_labels.csv CHANGED
@@ -1,51 +1,51 @@
1
- id,label,note
2
- 85966eff-001,,
3
- 85966eff-002,,
4
- 85966eff-003,,
5
- 85966eff-004,,
6
- 85966eff-005,,
7
- 85966eff-006,,
8
- 85966eff-007,,
9
- 85966eff-008,,
10
- 85966eff-009,,
11
- 85966eff-010,,
12
- 85966eff-011,,
13
- 85966eff-012,,
14
- 85966eff-013,,
15
- 85966eff-014,,
16
- 85966eff-015,,
17
- 85966eff-016,,
18
- 85966eff-017,,
19
- 85966eff-018,,
20
- 85966eff-019,,
21
- 85966eff-020,,
22
- 85966eff-021,,
23
- 85966eff-022,,
24
- 85966eff-023,,
25
- 85966eff-024,,
26
- 85966eff-025,,
27
- 85966eff-026,,
28
- 85966eff-027,,
29
- 85966eff-028,,
30
- 85966eff-029,,
31
- 85966eff-030,,
32
- 85966eff-031,,
33
- 85966eff-032,,
34
- 85966eff-033,,
35
- 85966eff-034,,
36
- 85966eff-035,,
37
- 85966eff-036,,
38
- 85966eff-037,,
39
- 85966eff-038,,
40
- 85966eff-039,,
41
- 85966eff-040,,
42
- 85966eff-041,,
43
- 85966eff-042,,
44
- 85966eff-043,,
45
- 85966eff-044,,
46
- 85966eff-045,,
47
- 85966eff-046,,
48
- 85966eff-047,,
49
- 85966eff-048,,
50
- 85966eff-049,,
51
- 85966eff-050,,
 
1
+ id,label,note,reviewer_type,amendment_id
2
+ 85966eff-001,not_clone,"A generates a randomized MD5 GUID; B orchestrates distributed graph transformations and spanning-tree/edge-set joins to summarize components. Different functionality.",ai,P4-AI-AUDIT-2026-10-23
3
+ 85966eff-002,not_clone,"A tests StraightStreamReader byte/character reading modes on generated data; B is a signed-PDF verification CLI with certificate/keystore selection and optional revision extraction.",ai,P4-AI-AUDIT-2026-10-23
4
+ 85966eff-003,not_clone,"A reads an HDFS file twice to stdout using seek; B parses a remote question file into numbered Question objects and a hash lookup map.",ai,P4-AI-AUDIT-2026-10-23
5
+ 85966eff-004,not_clone,"A retrieves URL text; B calculates a hexadecimal digest of supplied text. No shared functional output.",ai,P4-AI-AUDIT-2026-10-23
6
+ 85966eff-005,not_clone,"A copies a source file to a destination using a mapped buffer; B downloads versioned SQL patches and applies them transactionally to SQLite.",ai,P4-AI-AUDIT-2026-10-23
7
+ 85966eff-006,not_clone,"A creates a randomized FNV-1a/Base64 identifier; B tests Quickprop neural-network training on XOR data against a mean-squared-error target.",ai,P4-AI-AUDIT-2026-10-23
8
+ 85966eff-007,not_clone,"A copies a file with length checking and optional timestamp preservation; B loads a 3D scene from a URL while managing its base URL.",ai,P4-AI-AUDIT-2026-10-23
9
+ 85966eff-008,not_clone,"A runs tidy to transform input into XML; B transactionally inserts a lesson with its description/author relationships.",ai,P4-AI-AUDIT-2026-10-23
10
+ 85966eff-009,not_clone,"A imports and token-indexes a selected document into a collection with collision handling; B downloads URL bytes into a destination file. Copying is only one component of A's indexing operation.",ai,P4-AI-AUDIT-2026-10-23
11
+ 85966eff-010,not_clone,"A updates a client's MD5-derived password and returns its DTO; B parses remote HTML and traverses tags/text while printing timing information.",ai,P4-AI-AUDIT-2026-10-23
12
+ 85966eff-011,not_clone,"A copies a source file unchanged; B stages image input and determines encoding levels before image compression. File copying is only preparation for B's transformation.",ai,P4-AI-AUDIT-2026-10-23
13
+ 85966eff-012,not_clone,"A tests spectrum XML serialization by a read-write-read equality assertion; B builds audit-trail feed entries and optionally embeds their XML in a ZIP.",ai,P4-AI-AUDIT-2026-10-23
14
+ 85966eff-013,not_clone,"A generates an MD5-based random GUID from host/time/randomness; B copies bytes between two files.",ai,P4-AI-AUDIT-2026-10-23
15
+ 85966eff-014,not_clone,"A converts HTML to XHTML; B creates a database directory and executes bundled schema statements transactionally.",ai,P4-AI-AUDIT-2026-10-23
16
+ 85966eff-015,not_clone,"A PNG-encodes a rendered image and uploads it to S3; B extracts a bundled ZIP into a freshly prepared target directory.",ai,P4-AI-AUDIT-2026-10-23
17
+ 85966eff-016,not_clone,"A compresses a local file into BZip2 with locking/progress and source-retention options; B loads and parses a deployment SDL resource as a DOM document.",ai,P4-AI-AUDIT-2026-10-23
18
+ 85966eff-017,not_clone,"A downloads a game image into a local file; B verifies an HTTP digest-auth response using credentials/method/URI/nonce.",ai,P4-AI-AUDIT-2026-10-23
19
+ 85966eff-018,not_clone,"A executes SQL with transaction rollback when affected-row bounds fail; B reads a classpath text resource into a buffer and computes maximum line width.",ai,P4-AI-AUDIT-2026-10-23
20
+ 85966eff-019,not_clone,"A installs a bundled weaving JAR if absent; B requests a URL and parses its first response line as an integer count.",ai,P4-AI-AUDIT-2026-10-23
21
+ 85966eff-020,not_clone,"A copies an image into a collection and stores its metadata; B resolves missing database class-type references from qualified names.",ai,P4-AI-AUDIT-2026-10-23
22
+ 85966eff-021,not_clone,"A copies a source file through channels; B computes a hexadecimal SHA-1 digest of a string.",ai,P4-AI-AUDIT-2026-10-23
23
+ 85966eff-022,not_clone,"A copies a file and preserves its modification time; B encodes query parameters and parses a remote response list with header/DONE framing.",ai,P4-AI-AUDIT-2026-10-23
24
+ 85966eff-023,not_clone,"A streams a selected database BLOB to an output; B tests BrokenMD4 against known digest vectors and clone-state behavior.",ai,P4-AI-AUDIT-2026-10-23
25
+ 85966eff-024,not_clone,"A copies a file via a temporary file and rename; B issues a configured HTTP API request with headers/body/status checking and optional GZIP decoding.",ai,P4-AI-AUDIT-2026-10-23
26
+ 85966eff-025,not_clone,"A retrieves HTTP text; B interactively chooses a game scenario/variation and loads its saved state from a resource stream.",ai,P4-AI-AUDIT-2026-10-23
27
+ 85966eff-026,not_clone,"A extracts PDF pages 3 through 8 to a file; B retrieves and caches a player's English name parsed from a web page.",ai,P4-AI-AUDIT-2026-10-23
28
+ 85966eff-027,not_clone,"A creates a JAR archive from local files and a manifest; B fetches comparison text from a URL into a returned string.",ai,P4-AI-AUDIT-2026-10-23
29
+ 85966eff-028,not_clone,"A exchanges an auth code for a session key and caches a nickname; B transactionally deletes a user and their stock holdings.",ai,P4-AI-AUDIT-2026-10-23
30
+ 85966eff-029,not_clone,"A exercises database rollback/commit on a test table; B retrieves and parses a remote LOCKSS daemon-status XML table with HTTP failure handling.",ai,P4-AI-AUDIT-2026-10-23
31
+ 85966eff-030,not_clone,"A tests rejection of a file transfer after encoder completion; B executes HTTP requests and changes excessively long GET requests to POST.",ai,P4-AI-AUDIT-2026-10-23
32
+ 85966eff-031,not_clone,"A loads remote server definitions into Host objects/UI choices; B recursively copies directory contents and computes net quota usage.",ai,P4-AI-AUDIT-2026-10-23
33
+ 85966eff-032,not_clone,"A serves requested media via an HTTP servlet; B downloads a compressed anime-title catalog and constructs/cache-merges localized search results.",ai,P4-AI-AUDIT-2026-10-23
34
+ 85966eff-033,not_clone,"A prints an MD5 password digest; B concatenates face-image bytes with custom IMAGE headers into a collected archive file.",ai,P4-AI-AUDIT-2026-10-23
35
+ 85966eff-034,not_clone,"A verifies a quoted-printable encode/decode round trip; B connects and logs in to FTP/FTPS with passive-mode/timeout/directory options.",ai,P4-AI-AUDIT-2026-10-23
36
+ 85966eff-035,not_clone,"A saves an information form with SMS/attachment handling; B selects and parses analysis-command configuration from a file/string/bundled default.",ai,P4-AI-AUDIT-2026-10-23
37
+ 85966eff-036,not_clone,"A sends file bytes through an HTTP response; B constructs a server context with session ID/database handler/timer/server and system metadata.",ai,P4-AI-AUDIT-2026-10-23
38
+ 85966eff-037,not_clone,"A copies file-stream bytes into a destination path; B parses and validates a HashCash token and evaluates its SHA-1 leading-zero value.",ai,P4-AI-AUDIT-2026-10-23
39
+ 85966eff-038,not_clone,"A copies a local file via a temporary file with progress/timestamp handling; B executes CGI and parses its response headers before serving output. Stream copying alone is only a small part of B.",ai,P4-AI-AUDIT-2026-10-23
40
+ 85966eff-039,not_clone,"A copies a source file with size verification; B aggregates parsed content-extension contributions from enabled remote help centers.",ai,P4-AI-AUDIT-2026-10-23
41
+ 85966eff-040,not_clone,"A constructs a package-file object and records stream bytes as an update; B posts XML content to a URL and returns the HTTP response text.",ai,P4-AI-AUDIT-2026-10-23
42
+ 85966eff-041,not_clone,"A extracts ZIP entries to disk; B retrieves an XML document from GeoNetwork with session-cookie handling and parses it into an Element.",ai,P4-AI-AUDIT-2026-10-23
43
+ 85966eff-042,not_clone,"A returns a truncated 16-character MD5 representation; B copies a file with source/destination checks and overwrite confirmation.",ai,P4-AI-AUDIT-2026-10-23
44
+ 85966eff-043,not_clone,"A registers a player in a chat-client map with a generated token; B delegates URL connection opening to an authorized protocol handler through reflection.",ai,P4-AI-AUDIT-2026-10-23
45
+ 85966eff-044,not_clone,"A refreshes URL text and clears derived price/date fields; B initiates a JSTOR citation search and returns a designated citation cookie rather than page text.",ai,P4-AI-AUDIT-2026-10-23
46
+ 85966eff-045,not_clone,"A computes a SHA-1 hexadecimal string digest; B stress-tests database auto-increment insertion in concurrent transaction loops.",ai,P4-AI-AUDIT-2026-10-23
47
+ 85966eff-046,not_clone,"A copies a local file through channels; B sends a remote storage move_file RPC with session cookie and returns its JSON response. Moving remote entries is not copying local file contents.",ai,P4-AI-AUDIT-2026-10-23
48
+ 85966eff-047,not_clone,"A extracts a multi-part TAR archive with destination validation/CRC/progress UI; B decompresses one GZIP stream into one fixed output file. Archive-entry extraction and single-stream decompression have different contracts.",ai,P4-AI-AUDIT-2026-10-23
49
+ 85966eff-048,not_clone,"A computes a file checksum through a checked stream/discard sink; B loads and parses binary/text plotting data from stdin/URL/file.",ai,P4-AI-AUDIT-2026-10-23
50
+ 85966eff-049,not_clone,"A copies a file to its basename in the current directory; B clears and initializes a tutorial database with objects/grammar/dictionary records in a transaction.",ai,P4-AI-AUDIT-2026-10-23
51
+ 85966eff-050,not_clone,"A copies bytes between local files; B executes a CachedRowSet command with parameters/paging/query configuration and populates row data.",ai,P4-AI-AUDIT-2026-10-23
artifacts/audit_c5/audit_result.json CHANGED
@@ -1,18 +1,18 @@
1
  {
2
  "C5": {
3
  "n": 50,
4
- "clone": 15,
5
- "not_clone": 34,
6
- "unsure": 1,
7
- "fn_rate": 0.3,
8
  "fn_rate_ci95": [
9
- 0.191,
10
- 0.438
11
  ],
12
- "fn_rate_upper_incl_unsure": 0.32,
13
  "fn_rate_upper_ci95": [
14
- 0.208,
15
- 0.458
16
  ]
17
  },
18
  "_provenance": {
@@ -24,6 +24,15 @@
24
  }
25
  },
26
  "version": "phase01-v8",
27
- "n_labelled": 100
 
 
 
 
 
 
 
 
 
28
  }
29
  }
 
1
  {
2
  "C5": {
3
  "n": 50,
4
+ "clone": 0,
5
+ "not_clone": 50,
6
+ "unsure": 0,
7
+ "fn_rate": 0.0,
8
  "fn_rate_ci95": [
9
+ 0.0,
10
+ 0.071
11
  ],
12
+ "fn_rate_upper_incl_unsure": 0.0,
13
  "fn_rate_upper_ci95": [
14
+ 0.0,
15
+ 0.071
16
  ]
17
  },
18
  "_provenance": {
 
24
  }
25
  },
26
  "version": "phase01-v8",
27
+ "n_labelled": 50,
28
+ "reviewer_type": "ai",
29
+ "amendment_id": "P4-AI-AUDIT-2026-10-23",
30
+ "independent_human_validation": false,
31
+ "fully_blind": false,
32
+ "frozen_utc": "2026-10-23T11:38:33Z",
33
+ "label_sha256": "0a0e5d1439b6137a8694d4eaa3fb4931fb33e4c1ff6a00d56e75d7a8ea6fd7c2",
34
+ "sheet_sha256": "92faa9dd43e0daaff97cf23fb6c81b3d4725deb83e3c2d625a8470334d326dfa",
35
+ "freeze_sha256": "529b892838c7c5892e9928e9b4590d42fa35ce10323333ef2e1a3abcdb80b7ad",
36
+ "protocol_sha256": "5ecaf65c2c2664eee54256153ac76074b516b09c9f4f8197d42d5ee54d4d1eb5"
37
  }
38
  }
artifacts/audit_c6/audit_labels.csv CHANGED
@@ -1,51 +1,51 @@
1
- id,label,note
2
- 64fd35c5-001,,
3
- 64fd35c5-002,,
4
- 64fd35c5-003,,
5
- 64fd35c5-004,,
6
- 64fd35c5-005,,
7
- 64fd35c5-006,,
8
- 64fd35c5-007,,
9
- 64fd35c5-008,,
10
- 64fd35c5-009,,
11
- 64fd35c5-010,,
12
- 64fd35c5-011,,
13
- 64fd35c5-012,,
14
- 64fd35c5-013,,
15
- 64fd35c5-014,,
16
- 64fd35c5-015,,
17
- 64fd35c5-016,,
18
- 64fd35c5-017,,
19
- 64fd35c5-018,,
20
- 64fd35c5-019,,
21
- 64fd35c5-020,,
22
- 64fd35c5-021,,
23
- 64fd35c5-022,,
24
- 64fd35c5-023,,
25
- 64fd35c5-024,,
26
- 64fd35c5-025,,
27
- 64fd35c5-026,,
28
- 64fd35c5-027,,
29
- 64fd35c5-028,,
30
- 64fd35c5-029,,
31
- 64fd35c5-030,,
32
- 64fd35c5-031,,
33
- 64fd35c5-032,,
34
- 64fd35c5-033,,
35
- 64fd35c5-034,,
36
- 64fd35c5-035,,
37
- 64fd35c5-036,,
38
- 64fd35c5-037,,
39
- 64fd35c5-038,,
40
- 64fd35c5-039,,
41
- 64fd35c5-040,,
42
- 64fd35c5-041,,
43
- 64fd35c5-042,,
44
- 64fd35c5-043,,
45
- 64fd35c5-044,,
46
- 64fd35c5-045,,
47
- 64fd35c5-046,,
48
- 64fd35c5-047,,
49
- 64fd35c5-048,,
50
- 64fd35c5-049,,
51
- 64fd35c5-050,,
 
1
+ id,label,note,reviewer_type,amendment_id
2
+ 64fd35c5-001,not_clone,"A generates an MD5-based random GUID from host/time/randomness; B fetches robots.txt and extracts Disallow paths.",ai,P4-AI-AUDIT-2026-10-23
3
+ 64fd35c5-002,not_clone,"A is a multi-mode regression test of StraightStreamReader using generated byte values; B copies an arbitrary source file to a destination.",ai,P4-AI-AUDIT-2026-10-23
4
+ 64fd35c5-003,not_clone,"A reads an HDFS file twice to stdout with a seek; B creates a ZIP containing dataset and metadata files.",ai,P4-AI-AUDIT-2026-10-23
5
+ 64fd35c5-004,not_clone,"A returns URL text with line separators removed; B downloads URL bytes into a named local audio file and returns success. Different output contracts and text/byte handling.",ai,P4-AI-AUDIT-2026-10-23
6
+ 64fd35c5-005,clone,"Both copy a source file's contents to a destination; A uses a mapped byte channel and B character readers/writers. Binary/encoding and error-handling limitations differ but the core file-copy task is shared.",ai,P4-AI-AUDIT-2026-10-23
7
+ 64fd35c5-006,not_clone,"A generates a randomized FNV-1a/Base64 identifier using a UUID; B deterministically returns a zero-padded MD5 password hash. Different intended functions and outputs.",ai,P4-AI-AUDIT-2026-10-23
8
+ 64fd35c5-007,clone,"Both copy a source file into a destination file. A takes an explicit destination and optionally preserves modification time; B chooses the source basename in the current directory.",ai,P4-AI-AUDIT-2026-10-23
9
+ 64fd35c5-008,not_clone,"A invokes tidy to convert an input stream to XML; B posts a URL-encoded string to an HTTP endpoint and returns its response.",ai,P4-AI-AUDIT-2026-10-23
10
+ 64fd35c5-009,not_clone,"A imports and token-indexes a selected document into a collection with collision handling and file copying; B loads cached map text from a URL. Shared stream operations do not implement the same task.",ai,P4-AI-AUDIT-2026-10-23
11
+ 64fd35c5-010,not_clone,"A updates a client's password to an MD5-derived value and returns its DTO; B uploads node bytes using HTTP PUT and saves node metadata.",ai,P4-AI-AUDIT-2026-10-23
12
+ 64fd35c5-011,clone,"Both copy a source file to a target and return a success boolean; A uses a byte buffer and creates parent directories while B transfers through file channels.",ai,P4-AI-AUDIT-2026-10-23
13
+ 64fd35c5-012,not_clone,"A tests XML spectrum serialization with a read-write-read equality assertion; B downloads a web page through character decoding to a local HTML file.",ai,P4-AI-AUDIT-2026-10-23
14
+ 64fd35c5-013,not_clone,"A generates a random MD5 GUID from host/time/randomness; B deterministically expands a password and salt to a requested-length key using chained MD5 digests.",ai,P4-AI-AUDIT-2026-10-23
15
+ 64fd35c5-014,not_clone,"A converts an HTML file to XHTML through html2xhtml; B copies an input stream verbatim to a file. Copying is not the conversion task.",ai,P4-AI-AUDIT-2026-10-23
16
+ 64fd35c5-015,not_clone,"A PNG-encodes a rendered image and uploads it to S3 with image metadata; B archives dataset and metadata files into a ZIP.",ai,P4-AI-AUDIT-2026-10-23
17
+ 64fd35c5-016,not_clone,"A compresses one source into BZip2 with locking/progress and optional source deletion; B concatenates FASTA files then splits records into bounded partitions.",ai,P4-AI-AUDIT-2026-10-23
18
+ 64fd35c5-017,not_clone,"A downloads a game image into a local file; B reads a numbered SQL resource and executes its statements against a database.",ai,P4-AI-AUDIT-2026-10-23
19
+ 64fd35c5-018,not_clone,"A executes arbitrary SQL with transactional affected-row bounds; B marks an API populated and stores its packages/classes. Generic update handling covers only part of B's domain operation.",ai,P4-AI-AUDIT-2026-10-23
20
+ 64fd35c5-019,clone,"Both copy a source resource/file to a chosen destination path. A conditionally installs a bundled JAR if missing; B exports a local book as a .prc file. Core content-copy functionality is shared despite path and existence policies.",ai,P4-AI-AUDIT-2026-10-23
21
+ 64fd35c5-020,not_clone,"A copies an image into a collection with a generated ID and stores image metadata; B initializes a localized wiki index page from a bundled template. Different domain operations.",ai,P4-AI-AUDIT-2026-10-23
22
+ 64fd35c5-021,clone,"Both copy a file's contents to a target path; B additionally closes its temporary writer and checks that a temporary source exists.",ai,P4-AI-AUDIT-2026-10-23
23
+ 64fd35c5-022,clone,"Both copy file contents from an original path to a destination. A additionally preserves modification time; B uses character I/O for a tutorial and returns the destination name.",ai,P4-AI-AUDIT-2026-10-23
24
+ 64fd35c5-023,not_clone,"A streams a database BLOB selected by file ID to an output stream; B deletes portlet-name records in a transaction.",ai,P4-AI-AUDIT-2026-10-23
25
+ 64fd35c5-024,not_clone,"A copies a source file via a temporary destination then renames it; B builds a ZIP archive from a directory's files. Archival transformation differs from copying one file.",ai,P4-AI-AUDIT-2026-10-23
26
+ 64fd35c5-025,clone,"Both fetch URL text by reading response lines into accumulated content. Cookie support, encoding, newline retention and return conventions differ but the web-text retrieval function is shared.",ai,P4-AI-AUDIT-2026-10-23
27
+ 64fd35c5-026,not_clone,"A extracts PDF pages 3 through 8 and saves the result; B copies an entire character file to the current directory and refreshes its listing.",ai,P4-AI-AUDIT-2026-10-23
28
+ 64fd35c5-027,not_clone,"A packages selected local files and a manifest into a JAR; B downloads and decodes an image with retries and returns both pixels and bytes.",ai,P4-AI-AUDIT-2026-10-23
29
+ 64fd35c5-028,not_clone,"A exchanges an auth code for a parsed session key and caches a visitor nickname; B implements generic basic-authenticated HTTP POST returning raw response text. HTTP exchange is only part of A's specific operation.",ai,P4-AI-AUDIT-2026-10-23
30
+ 64fd35c5-029,not_clone,"A creates a test table and exercises transaction rollback/commit; B resolves a legacy image path and conditionally updates its existing database item.",ai,P4-AI-AUDIT-2026-10-23
31
+ 64fd35c5-030,not_clone,"A verifies that a completed length-delimited encoder rejects a subsequent file transfer; B posts content to a service registry and checks HTTP status.",ai,P4-AI-AUDIT-2026-10-23
32
+ 64fd35c5-031,not_clone,"A parses a remote semicolon-delimited server list into Host objects and UI choices; B extracts matching HTML links with a regex and prints their count.",ai,P4-AI-AUDIT-2026-10-23
33
+ 64fd35c5-032,not_clone,"A serves selected media through a servlet after parameter/type validation; B opens a client HTTP connection with conditional GET caching and basic authentication. Client connection setup is not media serving.",ai,P4-AI-AUDIT-2026-10-23
34
+ 64fd35c5-033,not_clone,"A calculates and prints an MD5 password digest; B decompresses a GZIP file to disk.",ai,P4-AI-AUDIT-2026-10-23
35
+ 64fd35c5-034,not_clone,"A asserts a quoted-printable binary encode/decode round trip; B extracts and saves the first page of a PDF.",ai,P4-AI-AUDIT-2026-10-23
36
+ 64fd35c5-035,not_clone,"A saves an information form with SMS notification and attachment persistence; B checks a remote XML update feed and updates availability indicators.",ai,P4-AI-AUDIT-2026-10-23
37
+ 64fd35c5-036,not_clone,"A streams a local file into an HTTP response with a content length; B returns a buffered text reader for a local path or fallback URL. B does not send response content.",ai,P4-AI-AUDIT-2026-10-23
38
+ 64fd35c5-037,clone,"Both copy source file contents to a destination while creating its parent directories. A receives an existing FileInputStream and compound path; B opens a source File and transfers through channels.",ai,P4-AI-AUDIT-2026-10-23
39
+ 64fd35c5-038,clone,"Both copy a source file to a target. A stages through a temporary file with synchronization events/progress and timestamp preservation; B performs a channel-based backup and returns a boolean.",ai,P4-AI-AUDIT-2026-10-23
40
+ 64fd35c5-039,not_clone,"A copies an entire file with length verification and optional date preservation; B opens and tracks one file channel for a requested read/write/append mode. Channel creation is only a small component of copying.",ai,P4-AI-AUDIT-2026-10-23
41
+ 64fd35c5-040,not_clone,"A constructs a package-file object and records supplied stream bytes as an in-memory update; B downloads a configured remote server list into a cache file.",ai,P4-AI-AUDIT-2026-10-23
42
+ 64fd35c5-041,not_clone,"A extracts entries of a ZIP archive to a destination directory; B detects text encoding and imports a local/remote document through a parser and annotation filter.",ai,P4-AI-AUDIT-2026-10-23
43
+ 64fd35c5-042,not_clone,"A returns the middle 16 hexadecimal characters of a UTF-8 MD5 digest; B retrieves and extracts a noun dictionary page section.",ai,P4-AI-AUDIT-2026-10-23
44
+ 64fd35c5-043,not_clone,"A registers a local chat player using a login-derived token and inserts a ChatClient in a map; B exchanges a one-time token with a remote authenticated endpoint for a session token.",ai,P4-AI-AUDIT-2026-10-23
45
+ 64fd35c5-044,not_clone,"A refreshes stored URL text and resets price/date; B retrieves HTML and optionally discovers and downloads embedded images with retries. Text retrieval is only part of B's larger page-and-images task.",ai,P4-AI-AUDIT-2026-10-23
46
+ 64fd35c5-045,unsure,"Both produce hexadecimal string digests but A uses SHA-1 with a specified encoding while B uses MD5/default encoding. They share a hashing task but are not interchangeable digest contracts; intended equivalence granularity is unresolved.",ai,P4-AI-AUDIT-2026-10-23
47
+ 64fd35c5-046,not_clone,"A copies a file unchanged using channels; B GZIP-compresses its contents into a temporary .gz file.",ai,P4-AI-AUDIT-2026-10-23
48
+ 64fd35c5-047,not_clone,"A validates destinations and extracts a multi-part TAR archive with CRC/progress UI; B reads a remote web page with optional line delays and interruption checks.",ai,P4-AI-AUDIT-2026-10-23
49
+ 64fd35c5-048,not_clone,"A computes a file checksum by consuming bytes into a discard sink; B copies a classpath resource into a real destination file.",ai,P4-AI-AUDIT-2026-10-23
50
+ 64fd35c5-049,clone,"Both copy a local source file to a destination file. A selects its basename in the current directory and returns File; B selects a configured export folder/title with .prc extension.",ai,P4-AI-AUDIT-2026-10-23
51
+ 64fd35c5-050,clone,"Both materialize source bytes in another file. A copies between explicit Files through channels; B opens a source stream and writes it to a generated temporary file whose path is returned.",ai,P4-AI-AUDIT-2026-10-23
artifacts/audit_c6/audit_result.json CHANGED
@@ -1,18 +1,18 @@
1
  {
2
  "C6": {
3
  "n": 50,
4
- "clone": 15,
5
- "not_clone": 34,
6
  "unsure": 1,
7
- "fn_rate": 0.3,
8
  "fn_rate_ci95": [
9
- 0.191,
10
- 0.438
11
  ],
12
- "fn_rate_upper_incl_unsure": 0.32,
13
  "fn_rate_upper_ci95": [
14
- 0.208,
15
- 0.458
16
  ]
17
  },
18
  "_provenance": {
@@ -24,6 +24,15 @@
24
  }
25
  },
26
  "version": "phase01-v8",
27
- "n_labelled": 100
 
 
 
 
 
 
 
 
 
28
  }
29
  }
 
1
  {
2
  "C6": {
3
  "n": 50,
4
+ "clone": 11,
5
+ "not_clone": 38,
6
  "unsure": 1,
7
+ "fn_rate": 0.22,
8
  "fn_rate_ci95": [
9
+ 0.128,
10
+ 0.352
11
  ],
12
+ "fn_rate_upper_incl_unsure": 0.24,
13
  "fn_rate_upper_ci95": [
14
+ 0.143,
15
+ 0.374
16
  ]
17
  },
18
  "_provenance": {
 
24
  }
25
  },
26
  "version": "phase01-v8",
27
+ "n_labelled": 50,
28
+ "reviewer_type": "ai",
29
+ "amendment_id": "P4-AI-AUDIT-2026-10-23",
30
+ "independent_human_validation": false,
31
+ "fully_blind": false,
32
+ "frozen_utc": "2026-10-23T11:38:33Z",
33
+ "label_sha256": "f32648df6541de46ae3729c42acef8422f06fd25ebcda50412dc4203a2060646",
34
+ "sheet_sha256": "54686d09a186975af086aa239eb633ec9dcf5a98e8dcd45419b1c51491365a2b",
35
+ "freeze_sha256": "529b892838c7c5892e9928e9b4590d42fa35ce10323333ef2e1a3abcdb80b7ad",
36
+ "protocol_sha256": "5ecaf65c2c2664eee54256153ac76074b516b09c9f4f8197d42d5ee54d4d1eb5"
37
  }
38
  }
report/measurements.md CHANGED
@@ -811,19 +811,34 @@ Assembled from the run dirs by the Phase-4 notebook — version `phase01-v8`, re
811
 
812
  Trigger = an FN that is simultaneously a functional clone and a J ≥ 0.40 near-duplicate; rate = dose; margin 0.10 = amplifier (§9.4 FINAL). The 40% cut removes ~40% of C2 contamination and 0 audited clean pairs. audit_c4 PASSED (30% ≤ 42%); audit_c5/c6 outcomes: see section 3 — no C5/C6 headline before its branch is recorded.
813
 
814
- ## False-negative audit — C5 (blind; SCOPE P2-9)
815
 
816
  `python -m scripts.audit_sample score` — version `phase01-v8`, conditions C5. Share of mined negatives judged to be clones (functional equivalence). Headline counts `unsure` as not_clone; the upper bound counts it as clone.
 
 
817
 
818
  | condition | n | clone | not_clone | unsure | FN rate [95% CI] | upper bound incl. unsure |
819
  |---|---|---|---|---|---|---|
820
- | C5 | 50 | 15 | 34 | 1 | **30%** [19%, 44%] | 32% [21%, 46%] |
 
821
 
822
- ## False-negative audit — C6 (blind; SCOPE P2-9)
823
 
824
  `python -m scripts.audit_sample score` — version `phase01-v8`, conditions C6. Share of mined negatives judged to be clones (functional equivalence). Headline counts `unsure` as not_clone; the upper bound counts it as clone.
 
 
825
 
826
  | condition | n | clone | not_clone | unsure | FN rate [95% CI] | upper bound incl. unsure |
827
  |---|---|---|---|---|---|---|
828
- | C6 | 50 | 15 | 34 | 1 | **30%** [19%, 44%] | 32% [21%, 46%] |
 
 
 
829
 
 
 
 
 
 
 
 
 
811
 
812
  Trigger = an FN that is simultaneously a functional clone and a J ≥ 0.40 near-duplicate; rate = dose; margin 0.10 = amplifier (§9.4 FINAL). The 40% cut removes ~40% of C2 contamination and 0 audited clean pairs. audit_c4 PASSED (30% ≤ 42%); audit_c5/c6 outcomes: see section 3 — no C5/C6 headline before its branch is recorded.
813
 
814
+ ## False-negative audit — C5 (AI-reviewed; not independently human-validated)
815
 
816
  `python -m scripts.audit_sample score` — version `phase01-v8`, conditions C5. Share of mined negatives judged to be clones (functional equivalence). Headline counts `unsure` as not_clone; the upper bound counts it as clone.
817
+ Amendment `P4-AI-AUDIT-2026-10-23`. Reviewer knew the study and benchmark outcomes; not independent or fully blind. Wilson intervals reflect sampling uncertainty only, not AI-review accuracy/bias. No inter-rater agreement measured.
818
+
819
 
820
  | condition | n | clone | not_clone | unsure | FN rate [95% CI] | upper bound incl. unsure |
821
  |---|---|---|---|---|---|---|
822
+ | C5 | 50 | 0 | 50 | 0 | **0%** [0%, 7%] | 0% [0%, 7%] |
823
+
824
 
825
+ ## False-negative audit — C6 (AI-reviewed; not independently human-validated)
826
 
827
  `python -m scripts.audit_sample score` — version `phase01-v8`, conditions C6. Share of mined negatives judged to be clones (functional equivalence). Headline counts `unsure` as not_clone; the upper bound counts it as clone.
828
+ Amendment `P4-AI-AUDIT-2026-10-23`. Reviewer knew the study and benchmark outcomes; not independent or fully blind. Wilson intervals reflect sampling uncertainty only, not AI-review accuracy/bias. No inter-rater agreement measured.
829
+
830
 
831
  | condition | n | clone | not_clone | unsure | FN rate [95% CI] | upper bound incl. unsure |
832
  |---|---|---|---|---|---|---|
833
+ | C6 | 50 | 11 | 38 | 1 | **22%** [13%, 35%] | 24% [14%, 37%] |
834
+
835
+
836
+ ## False-negative audit — C4 (AI-reviewed; not independently human-validated)
837
 
838
+ `python -m scripts.audit_sample score` — version `phase01-v8`, conditions C4. Share of mined negatives judged to be clones (functional equivalence). Headline counts `unsure` as not_clone; the upper bound counts it as clone.
839
+ Amendment `P4-AI-AUDIT-2026-10-23`. Reviewer knew the study and benchmark outcomes; not independent or fully blind. Wilson intervals reflect sampling uncertainty only, not AI-review accuracy/bias. No inter-rater agreement measured.
840
+
841
+
842
+ | condition | n | clone | not_clone | unsure | FN rate [95% CI] | upper bound incl. unsure |
843
+ |---|---|---|---|---|---|---|
844
+ | C4 | 50 | 6 | 42 | 2 | **12%** [6%, 24%] | 16% [8%, 28%] |
report/phase4_ai_audit_freeze.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "amendment_id": "P4-AI-AUDIT-2026-10-23",
3
+ "frozen_utc": "2026-10-23T11:38:33Z",
4
+ "reviewer_type": "ai",
5
+ "independent_human_validation": false,
6
+ "state_at_freeze": "150 judgments with pair-specific rationales completed; keys not joined and rates not calculated",
7
+ "input_pack_sha256": "371fed22a631f151b53cb6d102fe43d1cb593e18f490acb5972c91666bd40b02",
8
+ "n_per_condition": 50,
9
+ "label_sha256": {
10
+ "C4": "088090b253bcc34c8112d8b9ba03f897795766276cc2a9be63f5fae9b07fa5c2",
11
+ "C5": "0a0e5d1439b6137a8694d4eaa3fb4931fb33e4c1ff6a00d56e75d7a8ea6fd7c2",
12
+ "C6": "f32648df6541de46ae3729c42acef8422f06fd25ebcda50412dc4203a2060646"
13
+ },
14
+ "anchor_reading": "All A fragments were read in the C6 review. Before reusing that reading, byte-identical A fragments across C4/C5/C6 were verified for all 50 positions. Every B fragment was read individually; judgments were not transferred between different pairs.",
15
+ "blinding": "Not fully blind or independent; reviewer knew the study context and benchmark results. No audit_key.csv was opened during labeling.",
16
+ "interval_interpretation": "Wilson intervals quantify sampling uncertainty only; not AI-review accuracy or bias."
17
+ }
report/phase4_ai_audit_protocol.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "amendment_id": "P4-AI-AUDIT-2026-10-23",
3
+ "recorded_utc": "2026-10-23T10:26:15Z",
4
+ "authorization": "Project owner explicitly selected the disclosed AI-reviewed protocol amendment in this chat.",
5
+ "status": "authorized_before_new_labels; judgments_and_scores_pending",
6
+ "conditions": ["C4", "C5", "C6"],
7
+ "reviewer_type": "ai",
8
+ "reviewer": "Codex AI assistant",
9
+ "model_id": null,
10
+ "model_id_note": "Exact serving model identifier is not independently recorded; do not invent one.",
11
+ "independent_human_validation": false,
12
+ "blinding": "Not independent or fully blind: the assistant has prior study context, condition identities and benchmark results.",
13
+ "timing": "Post-results methodological amendment, recorded before filling the 150 new audit labels; not original preregistration.",
14
+ "n_per_condition": 50,
15
+ "sampling_seed": 13,
16
+ "rubric": {
17
+ "clone": "Both fragments implement the same functionality, regardless of syntax.",
18
+ "not_clone": "Different functionality, or one implements only a small part of the other.",
19
+ "unsure": "Insufficient context or unresolved functional-equivalence ambiguity; do not force a binary label."
20
+ },
21
+ "review_requirements": [
22
+ "Keep the existing pairs and IDs; no outcome-driven resampling.",
23
+ "Read both fragments and record a pair-specific functional rationale for every judgment.",
24
+ "Record reviewer_type=ai and this amendment ID with each completed sheet and scored result.",
25
+ "Freeze labels before scoring and before joining the audit key.",
26
+ "Preserve the original blank pack and quarantined invalid evidence.",
27
+ "Retain key-to-triples, complete-label and score-bound outcome checks."
28
+ ],
29
+ "scoring": {
30
+ "point_rate": "clone / 50; unsure contributes zero to the point rate, unchanged from the original instrument",
31
+ "upper_sensitivity_rate": "(clone + unsure) / 50",
32
+ "interval": "Wilson 95% interval; sampling uncertainty only, not AI-label accuracy or reviewer bias",
33
+ "decision_bands": "Retain the recorded C4/C5/C6 numerical bands; report consistency or inconsistency with them, not independent human confirmation."
34
+ },
35
+ "reporting_requirements": [
36
+ "Every C4/C5/C6 audit rate in the table, report and paper must say AI-reviewed, not independently human-validated.",
37
+ "Do not describe the completed AI judgments as human, independent, fully blind, or originally preregistered.",
38
+ "Use the rates as descriptive evidence; do not certify a mechanism or confirmed control solely from the AI audit.",
39
+ "Disclose shared reviewer errors, prior outcome knowledge, missing inter-rater agreement and absent human validation."
40
+ ],
41
+ "input_artifact_commit": "a77f8d2d1f26b5168a88822a7d1138f027eee4af",
42
+ "input_pack": "artifacts/phase4_exports/2026-10-23/phase4_audit_label_pack.zip",
43
+ "input_pack_sha256": "371fed22a631f151b53cb6d102fe43d1cb593e18f490acb5972c91666bd40b02",
44
+ "input_state_at_amendment": {"label_rows": 150, "filled_labels": 0},
45
+ "sheet_sha256": {
46
+ "audit_c4/audit_pairs.md": "f50d252c366cbb787be5c1a127f45abf71e81cb89cfa8cae682c05f88eaa2bd8",
47
+ "audit_c5/audit_pairs.md": "92faa9dd43e0daaff97cf23fb6c81b3d4725deb83e3c2d625a8470334d326dfa",
48
+ "audit_c6/audit_pairs.md": "54686d09a186975af086aa239eb633ec9dcf5a98e8dcd45419b1c51491365a2b"
49
+ }
50
+ }
report/phase4_ai_audit_results.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "amendment_id": "P4-AI-AUDIT-2026-10-23",
3
+ "status": "150_judgments_frozen_and_scored; audit_gates_verified",
4
+ "reviewer_type": "ai",
5
+ "independent_human_validation": false,
6
+ "fully_blind": false,
7
+ "freeze": "report/phase4_ai_audit_freeze.json",
8
+ "source_artifact_commit": "a77f8d2d1f26b5168a88822a7d1138f027eee4af",
9
+ "C4": {
10
+ "n": 50, "clone": 6, "not_clone": 42, "unsure": 2,
11
+ "fn_rate": 0.12, "fn_rate_ci95": [0.056, 0.238],
12
+ "fn_rate_upper_incl_unsure": 0.16, "fn_rate_upper_ci95": [0.083, 0.285]
13
+ },
14
+ "C5": {
15
+ "n": 50, "clone": 0, "not_clone": 50, "unsure": 0,
16
+ "fn_rate": 0.0, "fn_rate_ci95": [0.0, 0.071],
17
+ "fn_rate_upper_incl_unsure": 0.0, "fn_rate_upper_ci95": [0.0, 0.071]
18
+ },
19
+ "C6": {
20
+ "n": 50, "clone": 11, "not_clone": 38, "unsure": 1,
21
+ "fn_rate": 0.22, "fn_rate_ci95": [0.128, 0.352],
22
+ "fn_rate_upper_incl_unsure": 0.24, "fn_rate_upper_ci95": [0.143, 0.374]
23
+ },
24
+ "claim_boundary": "Descriptive AI-review evidence only; C6 point estimate outside predicted band with overlapping interval does not isolate similarity from false-negative dose.",
25
+ "verification": {
26
+ "fixed_ids_match": true,
27
+ "seed13_sample_reproduced": true,
28
+ "key_pairs_in_current_triples": 150,
29
+ "canonical_code_fragments_match": 300,
30
+ "current_hf_main_triples_match_source_commit": true,
31
+ "score_bound_outcomes": "sanitycheck.md section 9.9",
32
+ "focused_tests_passed": 23,
33
+ "test_scope": "audit_sample, AI provenance and closure tests; 3 unrelated evaluation/checkpoint tests deselected locally",
34
+ "prior_colab_full_suite": "165 passed before these audit changes; not a new full-suite run"
35
+ }
36
+ }
report/phase4_ai_review_c4.csv ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ id,label,note,reviewer_type,amendment_id
2
+ f73c5234-001,not_clone,"A generates a randomized GUID from host/time/randomness and stores pre/post-MD5 values; B hashes a supplied string with a selected algorithm. Digest computation is only a component of GUID generation.",ai,P4-AI-AUDIT-2026-10-23
3
+ f73c5234-002,not_clone,"A tests StraightStreamReader read modes against generated byte values; B downloads and installs worm-database updates with registration/version checks and progress scheduling.",ai,P4-AI-AUDIT-2026-10-23
4
+ f73c5234-003,not_clone,"A reads an HDFS file twice to stdout after seek; B conditionally streams an allowed local resource to a caller output. Different access/side-effect contracts and repeated-read demonstration versus serving.",ai,P4-AI-AUDIT-2026-10-23
5
+ f73c5234-004,not_clone,"A returns fetched URL text; B discovers service descriptors and instantiates input-method classes from their resource entries.",ai,P4-AI-AUDIT-2026-10-23
6
+ f73c5234-005,not_clone,"A copies file bytes unchanged through a mapped buffer; B BZip2-decompresses a file with locking/progress and optional source deletion.",ai,P4-AI-AUDIT-2026-10-23
7
+ f73c5234-006,not_clone,"A generates a randomized FNV-1a/Base64 identifier; B encrypts a password with passphrase-derived PBEWithMD5AndDES and salt. Different transformations and purposes.",ai,P4-AI-AUDIT-2026-10-23
8
+ f73c5234-007,clone,"Both copy source file contents to a destination. A verifies length and optionally preserves time; B checks path permissions and prompts before overwrite then uses a byte buffer.",ai,P4-AI-AUDIT-2026-10-23
9
+ f73c5234-008,not_clone,"A converts input to XML through tidy; B Base64-decodes and GZIP-decompresses input into an output stream using a pipe/thread.",ai,P4-AI-AUDIT-2026-10-23
10
+ f73c5234-009,not_clone,"A imports and token-indexes a selected document; B archives a database record and its topics/attributes/terms with authorization and audit trails.",ai,P4-AI-AUDIT-2026-10-23
11
+ f73c5234-010,not_clone,"A updates a client's password using MD5 and returns a DTO; B persists authorized company contact/name/website fields through SQL.",ai,P4-AI-AUDIT-2026-10-23
12
+ f73c5234-011,not_clone,"A copies one file unchanged; B creates a ZIP containing dataset and metadata entries. Archiving is a different output transformation.",ai,P4-AI-AUDIT-2026-10-23
13
+ f73c5234-012,not_clone,"A tests XML spectrum read-write-read equality; B issues a MusicBrainz query and saves the returned XML text to a response file without testing serialization equivalence.",ai,P4-AI-AUDIT-2026-10-23
14
+ f73c5234-013,not_clone,"A generates an MD5 random GUID; B posts location/radius parameters and parses a JSON response into Mosque objects.",ai,P4-AI-AUDIT-2026-10-23
15
+ f73c5234-014,unsure,"A explicitly converts HTML to XHTML; B wraps file I/O around an unavailable execute(reader,writer,htmlCleanerConfig) implementation. HTML-cleaning context suggests overlap but its exact transformation cannot be established from this fragment.",ai,P4-AI-AUDIT-2026-10-23
16
+ f73c5234-015,not_clone,"A PNG-encodes a rendered image and uploads it to S3; B copies uploaded product images locally and persists the product/image associations without encoding.",ai,P4-AI-AUDIT-2026-10-23
17
+ f73c5234-016,not_clone,"A compresses a file to BZip2 with locking/progress/source policy; B copies or appends file bytes through channels without compression.",ai,P4-AI-AUDIT-2026-10-23
18
+ f73c5234-017,not_clone,"A downloads a game image to disk; B validates and converts uploaded document data through a conversion path and serves ZIP/single-file results.",ai,P4-AI-AUDIT-2026-10-23
19
+ f73c5234-018,not_clone,"A executes SQL updates guarded by affected-row limits; B executes parameterized CachedRowSet commands with paging/query settings and populates rows. Transaction boilerplate does not supply A's bounds or B's rowset function.",ai,P4-AI-AUDIT-2026-10-23
20
+ f73c5234-019,not_clone,"A conditionally installs a bundled weaving JAR; B encodes a rendered image as PNG and uploads it to S3 with metadata.",ai,P4-AI-AUDIT-2026-10-23
21
+ f73c5234-020,not_clone,"A imports an image into a collection with generated ID and persisted metadata; B loads a texture from cache/ZIP/URL and creates a rendering texture.",ai,P4-AI-AUDIT-2026-10-23
22
+ f73c5234-021,not_clone,"A copies a file between explicit paths; B saves an uploaded image under a generated name and inserts its HTML tag into a question description. Copying is only part of B's content-editing operation.",ai,P4-AI-AUDIT-2026-10-23
23
+ f73c5234-022,clone,"Both copy a source file to a destination using byte streams. A preserves the modification time; B adds destination-directory and overwrite checks.",ai,P4-AI-AUDIT-2026-10-23
24
+ f73c5234-023,not_clone,"A reads a database BLOB to an output stream; B serializes and inserts a genomic model with tags and links into PostgreSQL. Retrieval and persistence are different operations.",ai,P4-AI-AUDIT-2026-10-23
25
+ f73c5234-024,not_clone,"A copies a local file via a temporary destination/rename; B downloads remote image data and conditionally processes its image format. Copying alone does not provide B's conversion behavior.",ai,P4-AI-AUDIT-2026-10-23
26
+ f73c5234-025,not_clone,"A retrieves HTTP response text; B consolidates bibliographic metadata using DOI/title/journal Crossref queries with XML parsing and database caching. Retrieval is only a small component of B.",ai,P4-AI-AUDIT-2026-10-23
27
+ f73c5234-026,not_clone,"A extracts PDF pages 3 through 8; B downloads an archive and extracts nested lib/*.jar entries to temporary files returning their URLs.",ai,P4-AI-AUDIT-2026-10-23
28
+ f73c5234-027,not_clone,"A exports local files into a JAR with a manifest; B locates and loads a translation dictionary from filesystem/local or remote JAR with language fallback.",ai,P4-AI-AUDIT-2026-10-23
29
+ f73c5234-028,not_clone,"A exchanges an auth code for a session key; B manages report editing/permissions/upload/compilation/download in a portlet action.",ai,P4-AI-AUDIT-2026-10-23
30
+ f73c5234-029,not_clone,"A tests transaction rollback/commit against a newly created table; B fetches/parses a web page and tracks Last-Modified state in a database.",ai,P4-AI-AUDIT-2026-10-23
31
+ f73c5234-030,not_clone,"A tests rejection of file transfer after encoder completion; B compresses TIFF input to JPEG2000 via an external compressor with platform-specific output handling.",ai,P4-AI-AUDIT-2026-10-23
32
+ f73c5234-031,not_clone,"A loads a remote server list into Host objects and UI choices; B authenticates to a remote console using a digest challenge then executes a command and reads its response.",ai,P4-AI-AUDIT-2026-10-23
33
+ f73c5234-032,not_clone,"A serves a media object selected by content ID/type; B is a general request router handling redirects/binary/XML/view responses. Media streaming covers only one branch of B's dispatcher.",ai,P4-AI-AUDIT-2026-10-23
34
+ f73c5234-033,unsure,"A prints a fixed password's hexadecimal MD5 digest; B returns configurable LDAP-style MD5/SHA/salted Base64 password representations. Both hash passwords but intended task granularity versus differing representation/salt contracts is unresolved.",ai,P4-AI-AUDIT-2026-10-23
35
+ f73c5234-034,not_clone,"A tests quoted-printable encode/decode equivalence; B reads optionally GZIP-compressed tuple bytes and decompresses them without a round-trip assertion.",ai,P4-AI-AUDIT-2026-10-23
36
+ f73c5234-035,not_clone,"A saves an information form with SMS and attachments; B handles library catalog search/display/export/email views with bibliographic/holdings metadata.",ai,P4-AI-AUDIT-2026-10-23
37
+ f73c5234-036,clone,"Both stream content into an HTTP response for download. A uses a local File/content length; B uses a StreamProvider with MIME type/attachment name and display initialization.",ai,P4-AI-AUDIT-2026-10-23
38
+ f73c5234-037,not_clone,"A copies a supplied file stream to a path; B creates a ZIP with separate dataset and metadata entries. Archive construction changes the output contract.",ai,P4-AI-AUDIT-2026-10-23
39
+ f73c5234-038,not_clone,"A copies one file with temporary staging/progress; B inserts inline/external resource tags into an XML/HTML document and copies linked resources. A provides only one component of B's document operation.",ai,P4-AI-AUDIT-2026-10-23
40
+ f73c5234-039,clone,"Both copy a source file to a destination. A verifies complete length and optionally preserves date; B enforces a force-overwrite policy and uses buffered byte streams.",ai,P4-AI-AUDIT-2026-10-23
41
+ f73c5234-040,not_clone,"A constructs a package entry and records stream bytes in its update structure; B uploads stream bytes to a unique disk filename within a validated resource folder. Storage abstraction and resulting operation differ.",ai,P4-AI-AUDIT-2026-10-23
42
+ f73c5234-041,clone,"Both extract ZIP archive entries to a destination directory. B explicitly creates directory entries while A iterates a ZipInputStream and writes entry files.",ai,P4-AI-AUDIT-2026-10-23
43
+ f73c5234-042,not_clone,"A returns the middle 16 hexadecimal MD5 characters of a string; B retrieves a login challenge and constructs an authentication URL with password/challenge digests and additional parameters.",ai,P4-AI-AUDIT-2026-10-23
44
+ f73c5234-043,not_clone,"A registers a chat player using a SHA-256-derived token; B constructs an HTTP/SIP Digest authorization string from challenge parameters. Different authentication operations.",ai,P4-AI-AUDIT-2026-10-23
45
+ f73c5234-044,not_clone,"A refreshes retrieved text and resets price/date state; B JPEG-encodes an image and uploads its bytes through HTTP POST, then logs response lines.",ai,P4-AI-AUDIT-2026-10-23
46
+ f73c5234-045,not_clone,"A returns a SHA-1 hexadecimal digest; B creates and stores an object property with conditional MD5 hashing only for Password fields. Hashing is only one branch of B's persistence operation.",ai,P4-AI-AUDIT-2026-10-23
47
+ f73c5234-046,not_clone,"A copies one file unchanged; B extracts matching source entries from a JAR into destination files and counts them.",ai,P4-AI-AUDIT-2026-10-23
48
+ f73c5234-047,not_clone,"A extracts a multi-part TAR archive with CRC and destination checks; B saves/exports a concept map to selected XML/image/PDF/ZIP/HTML/RDF/archive formats with UI handling.",ai,P4-AI-AUDIT-2026-10-23
49
+ f73c5234-048,not_clone,"A computes a file checksum by discarding consumed bytes; B downloads URL bytes to a local file without calculating a checksum.",ai,P4-AI-AUDIT-2026-10-23
50
+ f73c5234-049,clone,"Both copy a local file's contents to another local file. A uses channels and a basename destination; B validates explicit paths and uses buffered character I/O with encoding/binary limitations.",ai,P4-AI-AUDIT-2026-10-23
51
+ f73c5234-050,not_clone,"A copies bytes between two explicit files; B walks XML image/resource references, copies multiple files and rewrites their paths in the returned XML. Single-file copying is only a component.",ai,P4-AI-AUDIT-2026-10-23
report/phase4_ai_review_c5.csv ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ id,label,note,reviewer_type,amendment_id
2
+ 85966eff-001,not_clone,"A generates a randomized MD5 GUID; B orchestrates distributed graph transformations and spanning-tree/edge-set joins to summarize components. Different functionality.",ai,P4-AI-AUDIT-2026-10-23
3
+ 85966eff-002,not_clone,"A tests StraightStreamReader byte/character reading modes on generated data; B is a signed-PDF verification CLI with certificate/keystore selection and optional revision extraction.",ai,P4-AI-AUDIT-2026-10-23
4
+ 85966eff-003,not_clone,"A reads an HDFS file twice to stdout using seek; B parses a remote question file into numbered Question objects and a hash lookup map.",ai,P4-AI-AUDIT-2026-10-23
5
+ 85966eff-004,not_clone,"A retrieves URL text; B calculates a hexadecimal digest of supplied text. No shared functional output.",ai,P4-AI-AUDIT-2026-10-23
6
+ 85966eff-005,not_clone,"A copies a source file to a destination using a mapped buffer; B downloads versioned SQL patches and applies them transactionally to SQLite.",ai,P4-AI-AUDIT-2026-10-23
7
+ 85966eff-006,not_clone,"A creates a randomized FNV-1a/Base64 identifier; B tests Quickprop neural-network training on XOR data against a mean-squared-error target.",ai,P4-AI-AUDIT-2026-10-23
8
+ 85966eff-007,not_clone,"A copies a file with length checking and optional timestamp preservation; B loads a 3D scene from a URL while managing its base URL.",ai,P4-AI-AUDIT-2026-10-23
9
+ 85966eff-008,not_clone,"A runs tidy to transform input into XML; B transactionally inserts a lesson with its description/author relationships.",ai,P4-AI-AUDIT-2026-10-23
10
+ 85966eff-009,not_clone,"A imports and token-indexes a selected document into a collection with collision handling; B downloads URL bytes into a destination file. Copying is only one component of A's indexing operation.",ai,P4-AI-AUDIT-2026-10-23
11
+ 85966eff-010,not_clone,"A updates a client's MD5-derived password and returns its DTO; B parses remote HTML and traverses tags/text while printing timing information.",ai,P4-AI-AUDIT-2026-10-23
12
+ 85966eff-011,not_clone,"A copies a source file unchanged; B stages image input and determines encoding levels before image compression. File copying is only preparation for B's transformation.",ai,P4-AI-AUDIT-2026-10-23
13
+ 85966eff-012,not_clone,"A tests spectrum XML serialization by a read-write-read equality assertion; B builds audit-trail feed entries and optionally embeds their XML in a ZIP.",ai,P4-AI-AUDIT-2026-10-23
14
+ 85966eff-013,not_clone,"A generates an MD5-based random GUID from host/time/randomness; B copies bytes between two files.",ai,P4-AI-AUDIT-2026-10-23
15
+ 85966eff-014,not_clone,"A converts HTML to XHTML; B creates a database directory and executes bundled schema statements transactionally.",ai,P4-AI-AUDIT-2026-10-23
16
+ 85966eff-015,not_clone,"A PNG-encodes a rendered image and uploads it to S3; B extracts a bundled ZIP into a freshly prepared target directory.",ai,P4-AI-AUDIT-2026-10-23
17
+ 85966eff-016,not_clone,"A compresses a local file into BZip2 with locking/progress and source-retention options; B loads and parses a deployment SDL resource as a DOM document.",ai,P4-AI-AUDIT-2026-10-23
18
+ 85966eff-017,not_clone,"A downloads a game image into a local file; B verifies an HTTP digest-auth response using credentials/method/URI/nonce.",ai,P4-AI-AUDIT-2026-10-23
19
+ 85966eff-018,not_clone,"A executes SQL with transaction rollback when affected-row bounds fail; B reads a classpath text resource into a buffer and computes maximum line width.",ai,P4-AI-AUDIT-2026-10-23
20
+ 85966eff-019,not_clone,"A installs a bundled weaving JAR if absent; B requests a URL and parses its first response line as an integer count.",ai,P4-AI-AUDIT-2026-10-23
21
+ 85966eff-020,not_clone,"A copies an image into a collection and stores its metadata; B resolves missing database class-type references from qualified names.",ai,P4-AI-AUDIT-2026-10-23
22
+ 85966eff-021,not_clone,"A copies a source file through channels; B computes a hexadecimal SHA-1 digest of a string.",ai,P4-AI-AUDIT-2026-10-23
23
+ 85966eff-022,not_clone,"A copies a file and preserves its modification time; B encodes query parameters and parses a remote response list with header/DONE framing.",ai,P4-AI-AUDIT-2026-10-23
24
+ 85966eff-023,not_clone,"A streams a selected database BLOB to an output; B tests BrokenMD4 against known digest vectors and clone-state behavior.",ai,P4-AI-AUDIT-2026-10-23
25
+ 85966eff-024,not_clone,"A copies a file via a temporary file and rename; B issues a configured HTTP API request with headers/body/status checking and optional GZIP decoding.",ai,P4-AI-AUDIT-2026-10-23
26
+ 85966eff-025,not_clone,"A retrieves HTTP text; B interactively chooses a game scenario/variation and loads its saved state from a resource stream.",ai,P4-AI-AUDIT-2026-10-23
27
+ 85966eff-026,not_clone,"A extracts PDF pages 3 through 8 to a file; B retrieves and caches a player's English name parsed from a web page.",ai,P4-AI-AUDIT-2026-10-23
28
+ 85966eff-027,not_clone,"A creates a JAR archive from local files and a manifest; B fetches comparison text from a URL into a returned string.",ai,P4-AI-AUDIT-2026-10-23
29
+ 85966eff-028,not_clone,"A exchanges an auth code for a session key and caches a nickname; B transactionally deletes a user and their stock holdings.",ai,P4-AI-AUDIT-2026-10-23
30
+ 85966eff-029,not_clone,"A exercises database rollback/commit on a test table; B retrieves and parses a remote LOCKSS daemon-status XML table with HTTP failure handling.",ai,P4-AI-AUDIT-2026-10-23
31
+ 85966eff-030,not_clone,"A tests rejection of a file transfer after encoder completion; B executes HTTP requests and changes excessively long GET requests to POST.",ai,P4-AI-AUDIT-2026-10-23
32
+ 85966eff-031,not_clone,"A loads remote server definitions into Host objects/UI choices; B recursively copies directory contents and computes net quota usage.",ai,P4-AI-AUDIT-2026-10-23
33
+ 85966eff-032,not_clone,"A serves requested media via an HTTP servlet; B downloads a compressed anime-title catalog and constructs/cache-merges localized search results.",ai,P4-AI-AUDIT-2026-10-23
34
+ 85966eff-033,not_clone,"A prints an MD5 password digest; B concatenates face-image bytes with custom IMAGE headers into a collected archive file.",ai,P4-AI-AUDIT-2026-10-23
35
+ 85966eff-034,not_clone,"A verifies a quoted-printable encode/decode round trip; B connects and logs in to FTP/FTPS with passive-mode/timeout/directory options.",ai,P4-AI-AUDIT-2026-10-23
36
+ 85966eff-035,not_clone,"A saves an information form with SMS/attachment handling; B selects and parses analysis-command configuration from a file/string/bundled default.",ai,P4-AI-AUDIT-2026-10-23
37
+ 85966eff-036,not_clone,"A sends file bytes through an HTTP response; B constructs a server context with session ID/database handler/timer/server and system metadata.",ai,P4-AI-AUDIT-2026-10-23
38
+ 85966eff-037,not_clone,"A copies file-stream bytes into a destination path; B parses and validates a HashCash token and evaluates its SHA-1 leading-zero value.",ai,P4-AI-AUDIT-2026-10-23
39
+ 85966eff-038,not_clone,"A copies a local file via a temporary file with progress/timestamp handling; B executes CGI and parses its response headers before serving output. Stream copying alone is only a small part of B.",ai,P4-AI-AUDIT-2026-10-23
40
+ 85966eff-039,not_clone,"A copies a source file with size verification; B aggregates parsed content-extension contributions from enabled remote help centers.",ai,P4-AI-AUDIT-2026-10-23
41
+ 85966eff-040,not_clone,"A constructs a package-file object and records stream bytes as an update; B posts XML content to a URL and returns the HTTP response text.",ai,P4-AI-AUDIT-2026-10-23
42
+ 85966eff-041,not_clone,"A extracts ZIP entries to disk; B retrieves an XML document from GeoNetwork with session-cookie handling and parses it into an Element.",ai,P4-AI-AUDIT-2026-10-23
43
+ 85966eff-042,not_clone,"A returns a truncated 16-character MD5 representation; B copies a file with source/destination checks and overwrite confirmation.",ai,P4-AI-AUDIT-2026-10-23
44
+ 85966eff-043,not_clone,"A registers a player in a chat-client map with a generated token; B delegates URL connection opening to an authorized protocol handler through reflection.",ai,P4-AI-AUDIT-2026-10-23
45
+ 85966eff-044,not_clone,"A refreshes URL text and clears derived price/date fields; B initiates a JSTOR citation search and returns a designated citation cookie rather than page text.",ai,P4-AI-AUDIT-2026-10-23
46
+ 85966eff-045,not_clone,"A computes a SHA-1 hexadecimal string digest; B stress-tests database auto-increment insertion in concurrent transaction loops.",ai,P4-AI-AUDIT-2026-10-23
47
+ 85966eff-046,not_clone,"A copies a local file through channels; B sends a remote storage move_file RPC with session cookie and returns its JSON response. Moving remote entries is not copying local file contents.",ai,P4-AI-AUDIT-2026-10-23
48
+ 85966eff-047,not_clone,"A extracts a multi-part TAR archive with destination validation/CRC/progress UI; B decompresses one GZIP stream into one fixed output file. Archive-entry extraction and single-stream decompression have different contracts.",ai,P4-AI-AUDIT-2026-10-23
49
+ 85966eff-048,not_clone,"A computes a file checksum through a checked stream/discard sink; B loads and parses binary/text plotting data from stdin/URL/file.",ai,P4-AI-AUDIT-2026-10-23
50
+ 85966eff-049,not_clone,"A copies a file to its basename in the current directory; B clears and initializes a tutorial database with objects/grammar/dictionary records in a transaction.",ai,P4-AI-AUDIT-2026-10-23
51
+ 85966eff-050,not_clone,"A copies bytes between local files; B executes a CachedRowSet command with parameters/paging/query configuration and populates row data.",ai,P4-AI-AUDIT-2026-10-23
report/phase4_ai_review_c6.csv ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ id,label,note,reviewer_type,amendment_id
2
+ 64fd35c5-001,not_clone,"A generates an MD5-based random GUID from host/time/randomness; B fetches robots.txt and extracts Disallow paths.",ai,P4-AI-AUDIT-2026-10-23
3
+ 64fd35c5-002,not_clone,"A is a multi-mode regression test of StraightStreamReader using generated byte values; B copies an arbitrary source file to a destination.",ai,P4-AI-AUDIT-2026-10-23
4
+ 64fd35c5-003,not_clone,"A reads an HDFS file twice to stdout with a seek; B creates a ZIP containing dataset and metadata files.",ai,P4-AI-AUDIT-2026-10-23
5
+ 64fd35c5-004,not_clone,"A returns URL text with line separators removed; B downloads URL bytes into a named local audio file and returns success. Different output contracts and text/byte handling.",ai,P4-AI-AUDIT-2026-10-23
6
+ 64fd35c5-005,clone,"Both copy a source file's contents to a destination; A uses a mapped byte channel and B character readers/writers. Binary/encoding and error-handling limitations differ but the core file-copy task is shared.",ai,P4-AI-AUDIT-2026-10-23
7
+ 64fd35c5-006,not_clone,"A generates a randomized FNV-1a/Base64 identifier using a UUID; B deterministically returns a zero-padded MD5 password hash. Different intended functions and outputs.",ai,P4-AI-AUDIT-2026-10-23
8
+ 64fd35c5-007,clone,"Both copy a source file into a destination file. A takes an explicit destination and optionally preserves modification time; B chooses the source basename in the current directory.",ai,P4-AI-AUDIT-2026-10-23
9
+ 64fd35c5-008,not_clone,"A invokes tidy to convert an input stream to XML; B posts a URL-encoded string to an HTTP endpoint and returns its response.",ai,P4-AI-AUDIT-2026-10-23
10
+ 64fd35c5-009,not_clone,"A imports and token-indexes a selected document into a collection with collision handling and file copying; B loads cached map text from a URL. Shared stream operations do not implement the same task.",ai,P4-AI-AUDIT-2026-10-23
11
+ 64fd35c5-010,not_clone,"A updates a client's password to an MD5-derived value and returns its DTO; B uploads node bytes using HTTP PUT and saves node metadata.",ai,P4-AI-AUDIT-2026-10-23
12
+ 64fd35c5-011,clone,"Both copy a source file to a target and return a success boolean; A uses a byte buffer and creates parent directories while B transfers through file channels.",ai,P4-AI-AUDIT-2026-10-23
13
+ 64fd35c5-012,not_clone,"A tests XML spectrum serialization with a read-write-read equality assertion; B downloads a web page through character decoding to a local HTML file.",ai,P4-AI-AUDIT-2026-10-23
14
+ 64fd35c5-013,not_clone,"A generates a random MD5 GUID from host/time/randomness; B deterministically expands a password and salt to a requested-length key using chained MD5 digests.",ai,P4-AI-AUDIT-2026-10-23
15
+ 64fd35c5-014,not_clone,"A converts an HTML file to XHTML through html2xhtml; B copies an input stream verbatim to a file. Copying is not the conversion task.",ai,P4-AI-AUDIT-2026-10-23
16
+ 64fd35c5-015,not_clone,"A PNG-encodes a rendered image and uploads it to S3 with image metadata; B archives dataset and metadata files into a ZIP.",ai,P4-AI-AUDIT-2026-10-23
17
+ 64fd35c5-016,not_clone,"A compresses one source into BZip2 with locking/progress and optional source deletion; B concatenates FASTA files then splits records into bounded partitions.",ai,P4-AI-AUDIT-2026-10-23
18
+ 64fd35c5-017,not_clone,"A downloads a game image into a local file; B reads a numbered SQL resource and executes its statements against a database.",ai,P4-AI-AUDIT-2026-10-23
19
+ 64fd35c5-018,not_clone,"A executes arbitrary SQL with transactional affected-row bounds; B marks an API populated and stores its packages/classes. Generic update handling covers only part of B's domain operation.",ai,P4-AI-AUDIT-2026-10-23
20
+ 64fd35c5-019,clone,"Both copy a source resource/file to a chosen destination path. A conditionally installs a bundled JAR if missing; B exports a local book as a .prc file. Core content-copy functionality is shared despite path and existence policies.",ai,P4-AI-AUDIT-2026-10-23
21
+ 64fd35c5-020,not_clone,"A copies an image into a collection with a generated ID and stores image metadata; B initializes a localized wiki index page from a bundled template. Different domain operations.",ai,P4-AI-AUDIT-2026-10-23
22
+ 64fd35c5-021,clone,"Both copy a file's contents to a target path; B additionally closes its temporary writer and checks that a temporary source exists.",ai,P4-AI-AUDIT-2026-10-23
23
+ 64fd35c5-022,clone,"Both copy file contents from an original path to a destination. A additionally preserves modification time; B uses character I/O for a tutorial and returns the destination name.",ai,P4-AI-AUDIT-2026-10-23
24
+ 64fd35c5-023,not_clone,"A streams a database BLOB selected by file ID to an output stream; B deletes portlet-name records in a transaction.",ai,P4-AI-AUDIT-2026-10-23
25
+ 64fd35c5-024,not_clone,"A copies a source file via a temporary destination then renames it; B builds a ZIP archive from a directory's files. Archival transformation differs from copying one file.",ai,P4-AI-AUDIT-2026-10-23
26
+ 64fd35c5-025,clone,"Both fetch URL text by reading response lines into accumulated content. Cookie support, encoding, newline retention and return conventions differ but the web-text retrieval function is shared.",ai,P4-AI-AUDIT-2026-10-23
27
+ 64fd35c5-026,not_clone,"A extracts PDF pages 3 through 8 and saves the result; B copies an entire character file to the current directory and refreshes its listing.",ai,P4-AI-AUDIT-2026-10-23
28
+ 64fd35c5-027,not_clone,"A packages selected local files and a manifest into a JAR; B downloads and decodes an image with retries and returns both pixels and bytes.",ai,P4-AI-AUDIT-2026-10-23
29
+ 64fd35c5-028,not_clone,"A exchanges an auth code for a parsed session key and caches a visitor nickname; B implements generic basic-authenticated HTTP POST returning raw response text. HTTP exchange is only part of A's specific operation.",ai,P4-AI-AUDIT-2026-10-23
30
+ 64fd35c5-029,not_clone,"A creates a test table and exercises transaction rollback/commit; B resolves a legacy image path and conditionally updates its existing database item.",ai,P4-AI-AUDIT-2026-10-23
31
+ 64fd35c5-030,not_clone,"A verifies that a completed length-delimited encoder rejects a subsequent file transfer; B posts content to a service registry and checks HTTP status.",ai,P4-AI-AUDIT-2026-10-23
32
+ 64fd35c5-031,not_clone,"A parses a remote semicolon-delimited server list into Host objects and UI choices; B extracts matching HTML links with a regex and prints their count.",ai,P4-AI-AUDIT-2026-10-23
33
+ 64fd35c5-032,not_clone,"A serves selected media through a servlet after parameter/type validation; B opens a client HTTP connection with conditional GET caching and basic authentication. Client connection setup is not media serving.",ai,P4-AI-AUDIT-2026-10-23
34
+ 64fd35c5-033,not_clone,"A calculates and prints an MD5 password digest; B decompresses a GZIP file to disk.",ai,P4-AI-AUDIT-2026-10-23
35
+ 64fd35c5-034,not_clone,"A asserts a quoted-printable binary encode/decode round trip; B extracts and saves the first page of a PDF.",ai,P4-AI-AUDIT-2026-10-23
36
+ 64fd35c5-035,not_clone,"A saves an information form with SMS notification and attachment persistence; B checks a remote XML update feed and updates availability indicators.",ai,P4-AI-AUDIT-2026-10-23
37
+ 64fd35c5-036,not_clone,"A streams a local file into an HTTP response with a content length; B returns a buffered text reader for a local path or fallback URL. B does not send response content.",ai,P4-AI-AUDIT-2026-10-23
38
+ 64fd35c5-037,clone,"Both copy source file contents to a destination while creating its parent directories. A receives an existing FileInputStream and compound path; B opens a source File and transfers through channels.",ai,P4-AI-AUDIT-2026-10-23
39
+ 64fd35c5-038,clone,"Both copy a source file to a target. A stages through a temporary file with synchronization events/progress and timestamp preservation; B performs a channel-based backup and returns a boolean.",ai,P4-AI-AUDIT-2026-10-23
40
+ 64fd35c5-039,not_clone,"A copies an entire file with length verification and optional date preservation; B opens and tracks one file channel for a requested read/write/append mode. Channel creation is only a small component of copying.",ai,P4-AI-AUDIT-2026-10-23
41
+ 64fd35c5-040,not_clone,"A constructs a package-file object and records supplied stream bytes as an in-memory update; B downloads a configured remote server list into a cache file.",ai,P4-AI-AUDIT-2026-10-23
42
+ 64fd35c5-041,not_clone,"A extracts entries of a ZIP archive to a destination directory; B detects text encoding and imports a local/remote document through a parser and annotation filter.",ai,P4-AI-AUDIT-2026-10-23
43
+ 64fd35c5-042,not_clone,"A returns the middle 16 hexadecimal characters of a UTF-8 MD5 digest; B retrieves and extracts a noun dictionary page section.",ai,P4-AI-AUDIT-2026-10-23
44
+ 64fd35c5-043,not_clone,"A registers a local chat player using a login-derived token and inserts a ChatClient in a map; B exchanges a one-time token with a remote authenticated endpoint for a session token.",ai,P4-AI-AUDIT-2026-10-23
45
+ 64fd35c5-044,not_clone,"A refreshes stored URL text and resets price/date; B retrieves HTML and optionally discovers and downloads embedded images with retries. Text retrieval is only part of B's larger page-and-images task.",ai,P4-AI-AUDIT-2026-10-23
46
+ 64fd35c5-045,unsure,"Both produce hexadecimal string digests but A uses SHA-1 with a specified encoding while B uses MD5/default encoding. They share a hashing task but are not interchangeable digest contracts; intended equivalence granularity is unresolved.",ai,P4-AI-AUDIT-2026-10-23
47
+ 64fd35c5-046,not_clone,"A copies a file unchanged using channels; B GZIP-compresses its contents into a temporary .gz file.",ai,P4-AI-AUDIT-2026-10-23
48
+ 64fd35c5-047,not_clone,"A validates destinations and extracts a multi-part TAR archive with CRC/progress UI; B reads a remote web page with optional line delays and interruption checks.",ai,P4-AI-AUDIT-2026-10-23
49
+ 64fd35c5-048,not_clone,"A computes a file checksum by consuming bytes into a discard sink; B copies a classpath resource into a real destination file.",ai,P4-AI-AUDIT-2026-10-23
50
+ 64fd35c5-049,clone,"Both copy a local source file to a destination file. A selects its basename in the current directory and returns File; B selects a configured export folder/title with .prc extension.",ai,P4-AI-AUDIT-2026-10-23
51
+ 64fd35c5-050,clone,"Both materialize source bytes in another file. A copies between explicit Files through channels; B opens a source stream and writes it to a generated temporary file whose path is returned.",ai,P4-AI-AUDIT-2026-10-23
report/phase4_audit_completion.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Phase 4 audit completion — 23 October 2026
2
+
3
+ All **150 judgments are complete and scored**, under amendment
4
+ `P4-AI-AUDIT-2026-10-23`. These are **AI-reviewed; not independently
5
+ human-validated**. They must not be described as human or fully blind judgments.
6
+
7
+ | Condition | Clone | Not clone | Unsure | AI-reviewed rate; not independently human-validated | Wilson 95% | Rate including unsure |
8
+ |---|---:|---:|---:|---:|---|---:|
9
+ | C4: filtered BM25 | 6 | 42 | 2 | 12% | 5.6–23.8% | 16% |
10
+ | C5: filtered random | 0 | 50 | 0 | 0% | 0–7.1% | 0% |
11
+ | C6: filtered semantic | 11 | 38 | 1 | 22% | 12.8–35.2% | 24% |
12
+
13
+ Wilson intervals quantify sampling uncertainty only. They do not account for
14
+ AI-review error, shared systematic mistakes, or knowledge of benchmark outcomes.
15
+ There is one AI reviewer and no measured inter-rater agreement.
16
+
17
+ ## What the results permit
18
+
19
+ - C4 is below the registered 42% ceiling but not contamination-free. The voided
20
+ C3=C4 same-rate comparison is removed, not restored.
21
+ - C5's point estimate is within the predicted 0–2% band. Zero observed clones
22
+ does not demonstrate that its population contamination is at most 2%; its
23
+ sampling upper limit is 7.1%. Keep C1 as the report/demo headline condition.
24
+ - C6's point estimate is below the predicted 25–35% band, but its interval
25
+ overlaps that band. Neither mechanism explanation is independently confirmed.
26
+ Retain the observed scorer/F1 rescue; withdraw the stronger claim that it
27
+ isolates similarity from contamination dose.
28
+
29
+ The original numeric bands and scorer-state-first endpoint ordering are
30
+ unchanged. Comparisons to earlier human C2/C3 audits use different reviewer
31
+ methods and cannot be treated as controlled contamination comparisons.
32
+
33
+ ## Evidence and verification
34
+
35
+ The completed CSVs (`phase4_ai_review_c4.csv`, `phase4_ai_review_c5.csv`,
36
+ `phase4_ai_review_c6.csv`) contain one pair-specific functional rationale and
37
+ reviewer/amendment attribution per judgment. The original blank pack is retained.
38
+
39
+ Labels were frozen at **2026-10-23 11:38:33 UTC**, before joining audit keys or
40
+ calculating rates. `phase4_ai_audit_freeze.json` commits their SHA-256 hashes.
41
+ `phase4_ai_audit_protocol.json` preserves the original pre-label amendment,
42
+ including its historical pending status; this completion report supersedes that
43
+ status without changing the committed protocol file.
44
+
45
+ For each condition, all 50 IDs exactly match the fixed sheet and reproduce its
46
+ seed-13 sample; all keys match current mining triples. Result provenance records
47
+ the label, sheet, protocol and freeze hashes. Score-bound outcome records are
48
+ in `sanitycheck.md` §9.9. Modified scoring refuses altered frozen labels,
49
+ missing rationales and missing AI attribution in the amended closure gate.
50
+
51
+ Additionally, all **300 code fragments** match the key-indexed canonical corpus
52
+ text. The focused audit/scoring and closure suite passed **23 tests** (three
53
+ unrelated evaluation/checkpoint tests were deselected locally). This is separate
54
+ from the earlier 165-test Colab run; no new full-suite pass is claimed.
55
+
56
+ The audit is complete. Full-project closure additionally requires reconciliation
57
+ of the combined benchmark/generalisation table and remaining paper claims;
58
+ audit completion alone is not proof those separate tasks are finished.
report/phase4_audit_outcome_log.md ADDED
@@ -0,0 +1,1063 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # sanitycheck.md — Phase 2 findings cross-examined (G2-style review aid)
2
+
3
+ **Purpose:** the `SCOPE.md` P2-17 / `PHASE2_PLAN.md` §6 discipline — *investigate implausible
4
+ results as possible harness errors first, never as results* — applied to the Phase 2 table.
5
+ Every check below is tagged: **VERIFIED** (backed by a recorded measurement or a run artifact
6
+ already inspected), **VERIFY-ON-VM** (needs artifact access; exact command in the appendix),
7
+ or **OPEN** (cannot be settled with existing data; would need a new run — out of scope per
8
+ P6-1/P6-2).
9
+
10
+ Numbers are transcribed from the per-run `eval_metrics.json` (verification board run
11
+ 2026-09-30, consolidating VM) and `report/measurements.md` §Phase 0/0.5/G1/diagnostics/audit.
12
+ The `## Phase 2 — main results` section of the report still holds the stale C0-only table;
13
+ regenerate it with `python -m embeded.evaluate --results-table` before the write-up.
14
+
15
+ ---
16
+
17
+ ## 1. Observed vs the pre-registered expectation
18
+
19
+ | condition (strategy) | F1 seeds 13/14/15 | mean ± sd | valid threshold |
20
+ |---|---|---|---|
21
+ | C0 (untuned baseline) | 0.2572 | 0.2572 (P 0.2075, R 0.3383, MAP@R 0.1024) | 0.9779 |
22
+ | C1 (random negatives) | 0.7454 / 0.7546 / 0.7599 | **0.7533 ± 0.0079** | 0.4358 / 0.4357 / 0.4492 |
23
+ | C2 (BM25 negatives) | 0.2438 / 0.2534 / 0.2653 | 0.2542 ± 0.0110 | **1.0000 / 1.0000** / 0.8355 |
24
+ | C3 (cosine negatives) | 0.2594 / 0.2865 / 0.2726 | 0.2728 ± 0.0137 | **1.0000 ×3** |
25
+
26
+ The implicit expectation going in (the retrieval folklore: harder negatives → better
27
+ encoders) predicts **C1 < C2 ≤ C3** on F1. The table shows the **inverse with a ~3× gap**.
28
+ An inversion this large is exactly what the G2 review exists to interrogate. Sections 2–4
29
+ run the harness-error checklist; §5 asks where training "went wrong"; §6 gives the mechanistic
30
+ account that makes the outcome the *expected* one ex post; §7 checks it against the literature.
31
+
32
+ ## 2. Harness-integrity checklist (could the pipeline have produced this falsely?)
33
+
34
+ **A1 — corpus/pair integrity.** Gate G0 verified 9,126 lines / 8,063 unique fragments /
35
+ 901,028 / 415,416 / 415,416 against the spec; fragments deduplicated by text sha1.
36
+ **VERIFIED** (`report/measurements.md` §Phase 0).
37
+
38
+ **A2 — triples are what they claim.** All three conditions share anchors/positives/order
39
+ (P1-3; `negatives.anchor_stream`), and differ only in negative ranking. If the triples files
40
+ were corrupted *identically* (label order, id shift), all conditions would shift together —
41
+ C0's reproduction (A7) and the F1 separation between conditions argue against a shared
42
+ corruption. If C1's "random" negatives secretly contained clones, the condition would have
43
+ learned garbage — the diagnostics proxy says otherwise (valid-labelled clone in C1 negatives:
44
+ 0.02%; Jaccard median 0.21 vs 0.37/0.40 for C2/C3). **VERIFIED** (§diagnostics table) with the
45
+ blind audit as the independent check for C2/C3 (§3 below).
46
+
47
+ **A3 — run configs are the frozen ones.** The verification board recomputed
48
+ `fingerprint(run_config(...))` for all nine runs: 9/9 match the stored `run_config.json`;
49
+ 9/9 `metrics.json` fingerprints equal their configs; the nine `artifacts` hash-maps are **one
50
+ distinct set** — every run consumed byte-identical triples/fragments, across five parallel
51
+ VMs. A stale-or-mixed-version run would have failed this. **VERIFIED** (2026-09-30 board).
52
+
53
+ **A4 — evaluated model = trained model.** `evaluate.default_embed_fn` loads the base model
54
+ then `load_checkpoint`, which **refuses** a fingerprint mismatch; `train.verify_checkpoint`
55
+ additionally re-compares every tensor after save/reload on every run (unit-tested:
56
+ `test_train_evaluate.py`). A silently-unevaluated base model is excluded — decisively, C1's
57
+ optimal threshold (≈0.44) cannot come from the same encoder whose base-model threshold is
58
+ 0.9779 (A7): the scorer demonstrably changed. **VERIFIED** (code path + tests + threshold
59
+ evidence).
60
+
61
+ **A5 — threshold policy without test leakage.** `max_f1_on_valid`: chosen on the 415,416
62
+ validation pairs, applied to test unchanged, test scored once per run. The threshold column is
63
+ the audit trail. The suspicious-looking values (C2/C3 at the 1.0000 ceiling) are *consistent
64
+ with* their low F1 under this policy — a leakage bug would more likely produce implausibly
65
+ HIGH F1, not baseline F1 with pinned thresholds. **VERIFIED** (policy in code; column recorded).
66
+
67
+ **A6 — metric implementation.** `precision_recall_f1` / `best_f1_threshold` are unit-tested
68
+ against a brute-force sweep over all candidate thresholds; MAP@R likewise. Same code scored
69
+ C0 at 0.2572 — a plausible, pre-registered value. **VERIFIED** (tests green, 116).
70
+
71
+ **A7 — C0 reproduces across time and machines.** 0.2572 measured 2026-09-27 (original VM) and
72
+ again 2026-09-30 (consolidating VM, different GPU session, after five-VM artifact round-trip).
73
+ Bit-stable baseline = the scoring path did not drift between sessions. **VERIFIED.**
74
+
75
+ **A8 — seed variance is sane.** Per-condition sd 0.007–0.014; no seed dominates; conditions
76
+ share the seed set. A flaky harness (e.g. nondeterministic pair order) would inflate sd.
77
+ **VERIFIED** (table).
78
+
79
+ **A9 — test-set reuse.** Test scored once per run for the final table; the only test-set
80
+ information in this file is descriptive. No threshold, hyperparameter or condition decision
81
+ used test outcomes. **VERIFIED** by protocol (SCOPE P2-14/15).
82
+
83
+ **A10 — train/test fragment overlap (76/860, 8.8%).** Real, recorded, and shared by all
84
+ conditions — it inflates absolute F1 for everyone equally and cannot produce the C1-vs-C2
85
+ ordering. Remains a stated limitation. **VERIFIED, shared.**
86
+
87
+ **Checklist verdict:** no harness error found. Every failure mode we could enumerate is either
88
+ refuted by a recorded measurement or would have to be shared by all conditions (and cannot
89
+ explain the ordering).
90
+
91
+ ## 3. The independent cross-checks that decide the "seems off" question
92
+
93
+ The Phase 2 outcome was *not* the first measurement of these conditions — it is the third,
94
+ and the first two were recorded **before any training existed**:
95
+
96
+ 1. **G1 (2026-09-27, inputs):** the manipulation took effect —
97
+ cos(a,neg): C1 0.96068 < C2 0.97526 ≤ C3 0.98845, d(C1→C2) = 0.614, percentiles
98
+ 50.1 / 91.9 / 99.8. If mining had failed, the conditions could not differ; the gate rules
99
+ that out for the exact triples the nine runs consumed (same files, hash-verified per A3).
100
+ 2. **Diagnostics (2026-09-27, geometry):** share of negatives **closer to the anchor than the
101
+ anchor's own positive** — C1 39.6%, C2 **71.5%**, C3 **99.2%** (positives sit at 0.9651 in a
102
+ ~0.028-wide base space). The hard-mined negatives were already inside the positive band
103
+ *before training*.
104
+ 3. **Blind audit (2026-09-27, labels):** C2 negatives are **42%** true clones [29%, 56%]; C3
105
+ **30%** [19%, 44%] (32% counting unsure); pooled 36%. The two CIs overlap, so C2-vs-C3 is
106
+ not separable on noise — consistent with their small F1 difference (0.254 vs 0.273).
107
+
108
+ So the pipeline that produced "C1 ≫ C2 ≈ C3 on F1" had already measured, independently:
109
+ *the C2/C3 training signal differs from C1's exactly where it would need to in order to break
110
+ learning* — harder by construction, mostly inside the positive similarity band, and 30–42%
111
+ mislabelled as non-clones when they are clones. The finding is the downstream consequence of
112
+ recorded upstream facts, not an outlier.
113
+
114
+ ## 4. MAP@R — the one decisive cross-check still to run
115
+
116
+ MAP@R is threshold-free. If C2/C3's collapse is a **genuine representation failure**, their
117
+ test MAP@R should also sit at ≈ C0's 0.1024. If instead MAP@R(C2/C3) ≫ C0 while F1 ≈ C0,
118
+ the training learned *ranking* structure and only the **thresholded decision** degenerated —
119
+ a materially different conclusion for the write-up (and friendlier to C2/C3).
120
+ **VERIFY-ON-VM** — appendix command; record the outcome in §7 of this file before writing up.
121
+
122
+ ## 5. "Where might training have gone wrong?" — candidate-by-candidate
123
+
124
+ **B1 — the training signal was poisoned (false negatives). RETAINED — primary.**
125
+ A margin hinge demands `cos(a,neg) ≤ cos(a,pos) − 0.10`. For C2/C3, 30–42% of the `neg`s are
126
+ labelled clones *by the same benchmark's own audit*, and 71.5–99.2% already sit closer than
127
+ the positive. The loss is thus asked to push apart pairs that are (mostly) the same relation
128
+ the positive term pulls together. Gradient-level contradiction at scale is exactly the regime
129
+ where score separation collapses. C1's negatives: ~0% contamination by the same audit logic.
130
+
131
+ **B2 — optimisation divergence (LR too high, loss exploded). PARTIALLY REFUTED, VERIFY-ON-VM.**
132
+ C1 trained under the identical optimiser/LR/schedule reached 0.75, so divergence cannot be a
133
+ shared cause. For C2/C3 specifically: if the hinge is unsatisfiable, *loss plateaus near the
134
+ margin* (0.10) rather than exploding — a plateau is evidence FOR B1's "unsatisfiable demand"
135
+ reading and against numerical instability. Check `train_log.jsonl` first/last loss per run
136
+ (appendix). Expectation: C1 decreasing to ≪0.10; C2/C3 flattening near ≈0.06–0.10 without
137
+ NaNs/spikes. NaNs or spikes would point at fp16 instability instead.
138
+
139
+ **B3 — the absolute margin (0.10) is mis-scaled for this space. RETAINED — co-mechanism.**
140
+ The whole usable base cosine range is ~0.028 wide; the margin is ~3.5× that. For C1 this
141
+ forced a healthy re-scale of the space (threshold moved 0.98 → 0.44 — the model rebuilt its
142
+ similarity geometry). For C2/C3 the same demand against negatives already at/above the
143
+ positive is unsatisfiable for most triples. B1 and B3 are two descriptions of the same
144
+ failure; both are frozen settings (P2-13), and altering either is a P6-2 rescue — out of
145
+ scope. Stated as limitation.
146
+
147
+ **B4 — under-training (1 epoch, 32k triples). REFUTED as the cause of the collapse.**
148
+ C1 reached 0.75 under the identical budget — the budget suffices to learn the task when the
149
+ signal is clean. It may cap C1's ceiling (0.75 vs the 0.95 cross-encoder reference under a
150
+ different protocol), which is a fair limitation; it cannot explain C2/C3 ≈ baseline.
151
+
152
+ **B5 — anisotropic base space (the 0.028 ruler). Context, not a defect.**
153
+ Recorded in the diagnostics section; it is why the absolute-margin gate FAILED under v5 and
154
+ was re-operationalised (D1). The evaluation is per-model thresholded, so evaluation is
155
+ scale-robust; only the *training* margin interacts with the scale (→ B3).
156
+
157
+ **B6 — evaluation scored the wrong model. REFUTED** — see A4 (fingerprint refusal + tensor
158
+ verify + the threshold-shift evidence).
159
+
160
+ **B7 — the manipulation quietly failed (C2/C3 actually trained on random negatives). REFUTED.**
161
+ G1 measured the exact consumed triples (d = 0.614). And had C2/C3 trained on random negatives
162
+ they would look like C1 (≈0.75), not like baselines with pinned thresholds. The pinned
163
+ thresholds are positive evidence the hard-negative training *happened*.
164
+
165
+ **B8 — data leakage inflating C1. REFUTED as the ordering driver.** The 8.8% fragment overlap
166
+ (A10) is condition-blind. C1's F1 0.75 is far below the 0.9+ leakage-artefact regime reported
167
+ in the BCB-criticism literature; nothing about the C1 result needs leakage to explain it.
168
+
169
+ **B9 — the audit itself is wrong (42%/30% is an artefact). OPEN but bounded.** The audit was
170
+ blind (keys committed post-hoc, `artifacts/audit/`), 50+50 per condition, CIs recorded. An
171
+ error rate ~10× smaller would still leave C2/C3's signal badly contaminated relative to C1's
172
+ ~0%. The qualitative conclusion is robust to wide audit error; the exact floor is not
173
+ load-bearing for the ordering.
174
+
175
+ ### 5.1 The hinge-geometry numbers (computed offline from the recorded distributions)
176
+
177
+ Monte-Carlo over the recorded per-condition cosine distributions
178
+ (`report/measurements.md` §diagnostics: cos(a, pos) = 0.9651 (sd 0.023); cos(a, neg) per
179
+ condition; `TRIPLET_MARGIN = 0.10`), 400k draws, seed 13 — no GPU artifacts needed:
180
+
181
+ | condition | P(hinge violated at init) | E[initial hinge loss] | pos − neg at init | recorded P(neg closer than pos) |
182
+ |---|---|---|---|---|
183
+ | C1 random | 99.7% | 0.0956 | +0.0045 | 39.6% |
184
+ | C2 bm25 | ~100% | 0.1104 | −0.0105 | 71.5% |
185
+ | C3 cosine | ~100% | 0.1232 | −0.0232 | 99.2% |
186
+
187
+ (The MC's closer-than-positive column is *conservative* — a normal approximation understates
188
+ the pile-up of real cosines near 1.0; the recorded percentages in the last column are the
189
+ authoritative ones.)
190
+
191
+ Four facts fall out, and together they answer "why is C2/C3 accuracy low":
192
+
193
+ 1. **The hinge is unsatisfiable at init for every condition** — expected: the margin (0.10)
194
+ is ~3.5× the entire usable base cosine range (~0.028). So "C2/C3 failed because their
195
+ optimisation started harder" is **not** the explanation: every condition was asked to
196
+ stretch the usable cosine range ~5× (to ≈0.13).
197
+ 2. **The initial loss magnitudes are close** (0.096 / 0.110 / 0.123). C2/C3 did not fail to
198
+ train because their loss was bigger; they trained *equally hard* — on a signal that is
199
+ 30–42% false.
200
+ 3. **The discriminator is truth, not difficulty.** C1's demanded relation ("this negative is
201
+ dissimilar to the anchor") is true for ~all its negatives (valid-labelled clone: 0.02%;
202
+ audit-consistent), so the model can satisfy the hinge by legitimately re-scaling the
203
+ space — which it did (optimal threshold 0.98 → 0.44, F1 0.753). For C2/C3, the audit says
204
+ 42%/30% of the demanded-apart pairs are *the same relation the positives demand pulled
205
+ together* — per triple, since each triple carries one negative, the contamination rate of
206
+ the training signal **is** the FN rate. The objective and the evaluation's own ground
207
+ truth conflict on a third to a half of the hard conditions' signal.
208
+ 4. **What the poison looks like** (the blind audit's notes, `artifacts/audit/`): mined
209
+ "negatives" judged clones are same-functionality/different-syntax pairs — copy-file
210
+ variants (temp+rename vs direct vs forced), the hashing family ("return a digest of this
211
+ string", SHA-1-hex vs MD5-base64), generic helpers running different SQL behind identical
212
+ JDBC boilerplate, containment pairs. Exactly the weak-T3/T4 band the BigCloneBench
213
+ validity literature says is mislabelled at scale — mined *into* the negative set by
214
+ BM25/cosine ranking because they are lexically/functionally near the anchor.
215
+
216
+ Consequence for the mechanism: on contaminated triples the gradient pushes pairs apart that
217
+ the evaluation counts as clones; the least-bad solution available to the optimiser is to
218
+ compress the score range so almost nothing clears a separating threshold — observed directly
219
+ as validation-optimal thresholds pinned at 1.0000 (five of six C2/C3 runs) and F1 collapsing
220
+ to the untuned baseline. C1 is the control that makes this reading falsifiable: identical
221
+ optimiser, margin, budget — only the *truthfulness* of the negative signal differs.
222
+
223
+ ### 5.2 The improvement is monotone in the measured poison rate — "a little gain" is exactly what the data shows
224
+
225
+ ΔF1 vs C0, against the blind audit's per-condition false-negative floor:
226
+
227
+ | condition | FN floor | mean F1 | Δ vs C0 (0.2572) |
228
+ |---|---|---|---|
229
+ | C1 random | ~0% | 0.7533 | **+0.496** |
230
+ | C3 cosine | 30% [19, 44] | 0.2728 | **+0.016** (~2 sd of the seed mean) |
231
+ | C2 bm25 | 42% [29, 56] | 0.2542 | **−0.003** (flat within noise) |
232
+
233
+ The improvement decays monotonically through zero as contamination rises, with the break-even
234
+ between 30% and 42%. So the intuition "hard negatives should help *a little*" is not refuted
235
+ by the table — it is confirmed at C3 and extinguished exactly where the audit says the signal
236
+ crosses half-corrupted. Why "a little" is also the *ceiling* under this recipe: (i) the poison
237
+ sits on the discriminative band itself, attached to inputs statistically interchangeable with
238
+ the true hard negatives, so it deletes the boundary instead of diluting it; (ii) a fixed-margin
239
+ hinge keeps applying full-strength gradient to every violated triple with no saturation, so
240
+ poisoned (never-satisfiable) triples fire on every step of the epoch rather than washing out;
241
+ (iii) the surviving separable structure is the near-exact-duplicate tail the base model already
242
+ had — hence thresholds pinned at 1.0 and F1 ≈ baseline rather than above it. The one place a
243
+ hidden small gain could still live is ranking (MAP@R) — §4's VERIFY-ON-VM decides it.
244
+
245
+ ### 5.3 A closed-form account of both floors (derivation — every input below is a recorded measurement, no new runs)
246
+
247
+ **Why C0 is where it is (0.2572): the informationless floor.** In the pretrained space the
248
+ label-relevant effect size is d′ = (0.9651 − 0.9603)/√(0.023² + 0.026²) ≈ **0.14** → a
249
+ best-possible ranking AUC ≈ **0.54** (§2.6 measured means/sds; the diagnostics' 39.6% of
250
+ *random* negatives closer to the anchor than its labelled positive is the same fact as a
251
+ percentage). Calibrating the base rate from C0's own operating point (P 0.2075, R 0.3383 at
252
+ thr 0.9779) under this two-Gaussian band model gives π ≈ 0.15–0.20, and the F1 ceiling for a
253
+ *zero-information* scorer at that base rate is 2π/(1+π) ≈ 0.31 [0.26, 0.33] — C0's tuned
254
+ 0.2572 sits at/below it. The threshold 0.9779 is not "wrong": with a near-flat ROC, max-F1
255
+ validation has nowhere to go but the extreme overlap tail, and the only structure reachable
256
+ there is lexical near-duplication (median Jaccard of labelled positives 0.28 vs 0.21 for
257
+ random pairs). This is the pre-registered expectation (§2.6 I2: d ≈ 0.2 ⇒ "the C0 baseline
258
+ should be expected near chance") — MLM pretraining never optimises pair margins, and the
259
+ resulting anisotropic cone leaves ~0.028 cosine units for the whole task.
260
+
261
+ **Why C2/C3 stay exactly at that floor: the poisoned-hinge worked example.** Four steps, all
262
+ constants measured:
263
+
264
+ 1. **The hinge is unsatisfiable at every reachable parameter setting, for every condition.**
265
+ TRIPLET_MARGIN = 0.10 is 3.6× the entire usable cosine range (0.028); satisfying *any*
266
+ triple requires stretching the space ~4.6× (§5.1). Consequence: the hinge term stays
267
+ strictly positive for every triple for the whole epoch — there is no saturation dynamics,
268
+ so 100% of triples (right or wrong) fire at full strength on every one of the 32k steps.
269
+ Nothing ever "washes out" of the gradient.
270
+ 2. **The mined band is a mixture, and its two components are (nearly) the same set in score
271
+ space.** Audit: p = 42% [29, 56] (C2) / 30% [19, 44] (C3) of mined negatives are true
272
+ clones. In the representation the loss acts on, poison and clean nearly coincide: C2's
273
+ clean not-clone IQR [0.964, 0.984] meets the poison IQR at 0.984, and the best-possible
274
+ cosine separation of poison from clean is only AUC ≈ 0.68 (C2) / 0.81 (C3)
275
+ (audit-separability IQRs, two-Gaussian estimate). C3's only real cut (cos ≥ 0.99) removes
276
+ 80% of the poison at the cost of 40% of the condition. So "push the true negatives down"
277
+ and "push the false negatives down" are not two instructions the optimiser could trade
278
+ off — they are one instruction on one overlapping distribution, wrong on ~⅓ of its mass.
279
+ 3. **The equilibrium is the flat/degenerate optimum, and its fingerprint is the pinned
280
+ threshold.** With 71.5%/99.2% of mined negatives already closer to the anchor than the
281
+ labelled positive, the negative band *contains* the positive band; the only uniform
282
+ loss-decreasing direction is to push the whole band together — positives included. The
283
+ flat solution (s(a,p) ≈ s(a,n) ≈ const, expected hinge ≈ m on every triple) is exactly
284
+ the erasure the artifacts show: validation-optimal thresholds at the parameter boundary
285
+ 1.0000 (5/6 C2/C3 runs) and F1 back at C0. The per-step net separation rate under an FN
286
+ fraction p, (1 − 2p), is 1.00 / 0.40 / 0.16 for C1/C3/C2 — monotone, like the measured
287
+ Δ vs C0 (+0.496 / +0.016 / −0.003); at p → ½ the label information in the triple stream
288
+ vanishes, and C2's CI [29, 56] brackets that boundary.
289
+ 4. **This is not an evaluation-noise story.** The 415,416 test pairs (and their labels) are
290
+ shared by all four conditions, so label noise is common-mode and cannot produce a 3×
291
+ condition gap; and its size is bounded: an oracle encoder under a *test* FN rate q still
292
+ scores F1 = 2π/(2π + q(1−π)) ≈ **0.52** even at q = 0.42 — far above C2/C3's 0.25–0.27 —
293
+ while C1's 0.7533 bounds the shared q at ≲ 0.15, consistent with the BCB-label proxies
294
+ (0.02–0.05%). The mined-band FN rate is a property of the *training signal*; that is
295
+ where the collapse lives.
296
+
297
+ One-line synthesis: **C0 is low because the pretrained cosine ruler carries almost no label
298
+ signal (d′ ≈ 0.14); C2/C3 are low because mining harvested exactly the band where the
299
+ benchmark's labels are least truthful, and a fixed, never-saturating margin passes that
300
+ untruth to the optimiser at full strength on every step — to which the only available answer
301
+ is to erase the distinction, with the threshold pinned at the boundary as the fingerprint.**
302
+ Literature anchors in §7 (RocketQA's denoising result; debiased-contrastive FN-bias
303
+ amplification; semi-hard mining's reason to exist; hinge noise-tolerance at ρ < ½).
304
+
305
+ ## 6. Mechanistic account (what we believe happened)
306
+
307
+ Base GraphCodeBERT's space is anisotropic (all cosines ∈ ~[0.960, 0.988]). Random negatives
308
+ are drawn from the whole corpus → mostly genuinely-unrelated code, far outside the positive
309
+ band → the margin hinge is satisfiable and teaches a true distinction → the space re-scales
310
+ (threshold 0.98 → 0.44), clones separate from non-clones, F1 0.753.
311
+ Hard mining (BM25 / cosine) concentrates negatives exactly in the near-anchor band where — on
312
+ this benchmark — 30–42% are true clones and ~71–99% score closer than the true positive → the
313
+ hinge receives contradictory supervision at high frequency → the score separation the
314
+ threshold policy needs never forms → the validation-optimal cut pins at/near 1.0 ("only
315
+ near-identical code counts") → precision survives, recall collapses → F1 ≈ untuned baseline.
316
+ The s′ gate (G1s, d = 0.886, PASS) shows the same manipulation is even *stronger* on Phase 3's
317
+ corpus — so Phase 3 inherits this whole account, and C2/C3's Δ on s′ may be mechanically
318
+ degenerate; C1's healthy scorer meeting unseen functionality is the informative measurement.
319
+
320
+ Causal hierarchy, stated explicitly because the same-margin C1 control invites the question:
321
+ the **false-negative rate is the cause**; the **margin is the amplifier** — it fixes the dose
322
+ (a never-saturating hinge fires every violated triple at full strength, every step, with no
323
+ wash-out) that turns a 30–42% false signal into collapse. C1 sharing the margin and succeeding
324
+ is precisely what separates the two, which is why B3 is adjudicated as co-mechanism (§5), not
325
+ root cause.
326
+
327
+ ## 7. Literature alignment (details in the PR discussion of 2026-09-30)
328
+
329
+ Consistent with: RocketQA's measured result that undenoised hard negatives **decrease**
330
+ retriever performance (their fix: cross-encoder filtering); the hard-negative/false-negative
331
+ paradox and positive-aware mining (negatives closer than the positive should be discarded —
332
+ our diagnostics: 71.5%/99.2%); debiased-contrastive theory (hard sampling amplifies FN bias);
333
+ the BigCloneBench validity critiques (WT3/T4 pair labels unreliable — explains why the
334
+ *mineable* band is dirty); and the metric-learning reality check (hardest-negative mining →
335
+ bad optima). Against: the folklore reading of DPR (whose own ablation shows random ≈ BM25 ≈
336
+ gold) and code-search papers whose gains are small, ranking-metric-based, temperature-loss,
337
+ and FN-filtered — a different regime from fixed-margin + thresholded-F1.
338
+
339
+ ## 8. Verdict
340
+
341
+ **No harness error identified** — ten integrity checks pass on recorded evidence, and the
342
+ inversion is over-determined by three independent pre-training measurements (G1 inputs,
343
+ geometry, audit floors) plus the literature. The defensible statement of the finding:
344
+
345
+ > Under the frozen recipe (margin-0.10 cosine hinge, 1 epoch, thresholded F1), undenoised hard
346
+ > negatives mined from BigCloneBench collapsed fine-tuning to baseline, while clean random
347
+ > negatives improved F1 ≈ 3× over the untuned baseline. The measured false-negative floors
348
+ > (42%/30%) are the leading mechanism and a stated confound on C2-vs-C3.
349
+
350
+ **Would change this verdict:** (i) MAP@R(C2/C3) ≫ C0 with low F1 (→ reframe as thresholding
351
+ failure, upgrade C2/C3) — **resolved 2026-10-01: REFUTED, see §9.1 (C2/C3 below C0)**; (ii) NaN/loss spikes in C2/C3 train logs (→ fp16 instability);
352
+ (iii) a reproducible F1-identical rerun with shuffled pair labels (→ metric bug). None
353
+ expected; all three are checkable from existing artifacts.
354
+
355
+ ---
356
+
357
+ ## Appendix — on-VM verification block (run once on the consolidating VM, paste output here)
358
+
359
+ ```python
360
+ import json, subprocess, sys
361
+ import numpy as np
362
+ from embeded import settings as S
363
+ from embeded.train import run_dir, METRICS_NAME, EVAL_METRICS_NAME, LOG_NAME
364
+
365
+ import re
366
+ RUNS = sorted(
367
+ ((m.group(1), int(m.group(2)))
368
+ for d in (S.ARTIFACTS / S.RUNS_SUBDIR).glob("C[0-3]_*")
369
+ if (m := re.fullmatch(r"(C[0-3])_(\d+)", d.name))),
370
+ key=lambda t: ("C0 C1 C2 C3".split().index(t[0]), t[1]),
371
+ ) # auto-discovers every condition/seed with a run dir (smoke_/sprime_ never match)
372
+ print("== per-run metrics (P / R / MAP@R) ==", f"({len(RUNS)} run dirs discovered)")
373
+ for c, s in RUNS:
374
+ p = run_dir(c, s) / EVAL_METRICS_NAME
375
+ if p.exists():
376
+ m = json.loads(p.read_text())
377
+ if not m.get("smoke"):
378
+ print(f" {c}_{s}: F1={m['test_f1']:.4f} P={m['test_precision']:.4f} "
379
+ f"R={m['test_recall']:.4f} MAP@R={m['test_map_at_r']:.4f} "
380
+ f"thr={m['threshold']:.4f}")
381
+
382
+ print("== recompute F1 from stored predictions (metrics <-> npz consistency) ==")
383
+ for c in ("C1", "C2", "C3"):
384
+ d = run_dir(c, 13)
385
+ z = np.load(d / "predictions.npz")
386
+ lab, sc, thr = z["test_labels"], z["test_scores"], float(z["threshold"])
387
+ pred = sc >= thr
388
+ tp = int((pred & (lab == 1)).sum()); fp = int((pred & (lab == 0)).sum())
389
+ fn = int((~pred & (lab == 1)).sum())
390
+ f1 = 2 * tp / (2 * tp + fp + fn)
391
+ m = json.loads((d / EVAL_METRICS_NAME).read_text())
392
+ print(f" {c}_13: recomputed F1={f1:.4f} stored={m['test_f1']:.4f} "
393
+ f"{'OK' if abs(f1 - m['test_f1']) < 5e-4 else 'MISMATCH'}")
394
+
395
+ print("== score separation on test (positives vs negatives, per condition) ==")
396
+ for c in ("C0", "C1", "C2", "C3"):
397
+ d = run_dir(c, 13)
398
+ z = np.load(d / "predictions.npz")
399
+ lab, sc = z["test_labels"], z["test_scores"]
400
+ print(f" {c}_13: pos mean={sc[lab==1].mean():.4f} neg mean={sc[lab==0].mean():.4f} "
401
+ f"gap={(sc[lab==1].mean()-sc[lab==0].mean()):+.4f}")
402
+
403
+ print("== training-loss trajectory (first -> last quarter mean) ==")
404
+ for c, s in RUNS:
405
+ if c == "C0" or not (run_dir(c, s) / LOG_NAME).exists():
406
+ continue
407
+ rows = [json.loads(l) for l in open(run_dir(c, s) / LOG_NAME, encoding="utf-8")]
408
+ q = max(1, len(rows) // 4)
409
+ losses = [r["loss"] for r in rows]
410
+ print(f" {c}_{s}: steps={len(rows)} loss {np.mean(losses[:q]):.4f} -> "
411
+ f"{np.mean(losses[-q:]):.4f} (nan={any(x != x for x in losses)})")
412
+ ```
413
+
414
+ Expected readings if §5's account holds: MAP@R ordering follows F1 (C1 ≫ C0 ≈ C2 ≈ C3);
415
+ recomputed F1s match stored; C1's pos–neg gap clearly positive and largest; C2/C3 gaps ≈ 0 or
416
+ negative; C1 losses fall well below the 0.10 margin while C2/C3 flatten near it with no NaNs.
417
+ Deviations from these readings are exactly the three falsifiers in §8 — record them before any
418
+ write-up.
419
+
420
+ **Part 2 — config / VM-split audit** (added 2026-10-01, after the parallel-VM execution
421
+ topology question: VM1 = C1 13/14/15 + C2 13/14; four further VMs = C2 15 + C3 13/14/15 +
422
+ C0). Paste this alongside part 1:
423
+
424
+ ```python
425
+ import json, os
426
+ import numpy as np
427
+ from embeded.train import run_config, fingerprint, run_dir, METRICS_NAME, EVAL_METRICS_NAME, EVAL_CONFIG_NAME
428
+
429
+ import re
430
+ RUNS = sorted(
431
+ ((m.group(1), int(m.group(2)))
432
+ for d in (S.ARTIFACTS / S.RUNS_SUBDIR).glob("C[0-3]_*")
433
+ if (m := re.fullmatch(r"(C[0-3])_(\d+)", d.name))),
434
+ key=lambda t: ("C0 C1 C2 C3".split().index(t[0]), t[1]),
435
+ ) # auto-discovers every condition/seed with a run dir (smoke_/sprime_ never match)
436
+ print("== config/fingerprint audit (every row must say OK) ==")
437
+ hash_sets = set()
438
+ for c, s in RUNS:
439
+ d = run_dir(c, s)
440
+ if not (d / EVAL_METRICS_NAME).exists():
441
+ continue
442
+ ec = json.loads((d / EVAL_CONFIG_NAME).read_text()) # frozen config the run consumed
443
+ em = json.loads((d / EVAL_METRICS_NAME).read_text())
444
+ tm = json.loads((d / METRICS_NAME).read_text()) if (d / METRICS_NAME).exists() else None
445
+ fp_now = fingerprint(run_config(c, s)) # recomputed from today's settings
446
+ ok_eval = fp_now == ec["fingerprint"] == em["fingerprint"]
447
+ ok_train = True if tm is None else fp_now == tm["fingerprint"]
448
+ hash_sets.add(json.dumps(ec["artifacts"], sort_keys=True))
449
+ dev = em.get("device") or (tm["device"] if tm else "?")
450
+ steps = tm["steps"] if tm else "-"
451
+ print(f" {c}_{s}: fingerprint {'OK' if ok_eval and ok_train else 'MISMATCH'} | "
452
+ f"device={dev} | train_steps={steps} "
453
+ f"(expected {ec['train_pairs_cap'] // ec['batch']}) | "
454
+ f"finished={tm['finished_utc'] if tm else em['evaluated_utc']}")
455
+ print(f"distinct artifact hash-sets across all runs: {len(hash_sets)} (expected 1)")
456
+
457
+ print("== run-directory completeness (7 files per trained run, 3 for C0) ==")
458
+ for c, s in RUNS:
459
+ d = run_dir(c, s)
460
+ exp = 3 if c == "C0" else 7
461
+ n = len([f for f in os.listdir(d) if not f.startswith(".")]) if d.exists() else 0
462
+ print(f" {c}_{s}: {n}/{exp} files {'OK' if n >= exp else 'INCOMPLETE'}")
463
+ ```
464
+
465
+ What each line catches: a **fingerprint MISMATCH** means that run consumed a different
466
+ config/data than the frozen recipe (the one real cross-VM failure mode — stale clone,
467
+ re-mined triples, edited settings); `hash-sets > 1` means the VMs did not train on
468
+ byte-identical triples; `train_steps` off from expected means an interruption/resume
469
+ actually changed the run (check that run's `train_log.jsonl` for a mid-log loss jump);
470
+ `INCOMPLETE` means a partial HF upload or an interrupted evaluation — re-pull before
471
+ believing anything from that run.
472
+
473
+ **Part 3 — collapse-signature check** (added 2026-10-01 from external review: pin the exact
474
+ test base rate and each run's predicted-positive fraction — decides whether C2/C3 are literally
475
+ "say-yes-to-everything" collapse or the partial/erasure mode of §5.3):
476
+
477
+ ```python
478
+ import json
479
+ import numpy as np
480
+ from embeded.train import run_dir, EVAL_METRICS_NAME
481
+
482
+ z0 = np.load(run_dir("C0", 13) / "predictions.npz")
483
+ p = float(z0["test_labels"].mean())
484
+ print(f"exact test base rate p = {p:.4f} ({int(z0['test_labels'].sum()):,} positives "
485
+ f"/ {len(z0['test_labels']):,})")
486
+ print(f"all-positive F1 = 2p/(1+p) = {2*p/(1+p):.4f}; all-negative F1 = 0.0000")
487
+ import re
488
+ RUNS = sorted(
489
+ ((m.group(1), int(m.group(2)))
490
+ for d in (S.ARTIFACTS / S.RUNS_SUBDIR).glob("C[0-3]_*")
491
+ if (m := re.fullmatch(r"(C[0-3])_(\d+)", d.name))),
492
+ key=lambda t: ("C0 C1 C2 C3".split().index(t[0]), t[1]),
493
+ ) # auto-discovers every condition/seed with a run dir (smoke_/sprime_ never match)
494
+ print("== per-run behaviour at the stored threshold ==")
495
+ for c, s in RUNS:
496
+ d = run_dir(c, s)
497
+ if not (d / EVAL_METRICS_NAME).exists():
498
+ continue
499
+ m = json.loads((d / EVAL_METRICS_NAME).read_text())
500
+ if m.get("smoke"):
501
+ continue
502
+ z = np.load(d / "predictions.npz")
503
+ thr, sc = float(z["threshold"]), z["test_scores"]
504
+ frac = float((sc >= thr).mean())
505
+ f1 = m["test_f1"]
506
+ verdict = "matches all-positive collapse" if abs(f1 - 2*p/(1+p)) < 0.02 else \
507
+ ("near all-positive" if frac > 0.9 else
508
+ ("near all-negative" if frac < 0.05 else "partial / erasure mode"))
509
+ print(f" {c}_{s}: F1={f1:.4f} predicted-positive={frac:6.1%} -> {verdict}")
510
+ ```
511
+
512
+ Expected reading if §5.3's erasure account holds: C0 **partial** (it is a weak separator, not
513
+ a degenerate one — P 0.21 / R 0.34 at threshold 0.9779); C1 partial with a healthy positive
514
+ fraction; C2/C3 at threshold 1.0000 reveal which degenerate mode they took. Note C2/C3's F1
515
+ (0.24–0.29) sits *below* the all-positive ceiling whenever p > ~0.14 — a pure "yes to
516
+ everything" predictor would score 2p/(1+p), so an observed shortfall is itself informative
517
+ (band compression with wrong-side ordering), exactly the distinction this block settles.
518
+ The base rate p also replaces §5.3's model-calibrated π ≈ 0.15–0.20 with an exact number.
519
+
520
+ ---
521
+
522
+ ## 9. Phase 2V2 — seed-extension campaign (consolidator board output, 19/19 runs)
523
+
524
+ **Design:** seeds 16/17/18 trained per condition on the FROZEN seed-13 triples (same
525
+ manipulation, same FN floors); C0 reused (never re-trained); recipe untouched. Purpose:
526
+ upgrade every per-condition estimate n=3 → n=6 and test seed-robustness of the inversion.
527
+ Run on five parallel VMs + one consolidator (`Phase2V2_Colab.ipynb`); the confusion board
528
+ below is the consolidator's stdout over all 19 run dirs.
529
+
530
+ ```
531
+ run | TP FP FN TN | P R F1 thr n_pred_pos
532
+ C0_ 13 | 19,220 73,400 37,600 285,196 | 0.2075 0.3383 0.2572 0.9779 92,620
533
+ C1_ 13 | 43,195 15,875 13,625 342,721 | 0.7313 0.7602 0.7454 0.4358 59,070
534
+ C1_ 14 | 43,731 15,350 13,089 343,246 | 0.7402 0.7696 0.7546 0.4357 59,081
535
+ C1_ 15 | 44,404 15,650 12,416 342,946 | 0.7394 0.7815 0.7599 0.4492 60,054
536
+ C1_ 16 | 43,157 14,417 13,663 344,179 | 0.7496 0.7595 0.7545 0.4396 57,574
537
+ C1_ 17 | 42,613 20,292 14,207 338,304 | 0.6774 0.7500 0.7118 0.4622 62,905
538
+ C1_ 18 | 41,513 12,046 15,307 346,550 | 0.7751 0.7306 0.7522 0.4581 53,559
539
+ C2_ 13 | 24,410 144,239 32,410 214,357 | 0.1447 0.4296 0.2165 1.0000 168,649
540
+ C2_ 14 | 40,677 222,906 16,143 135,690 | 0.1543 0.7159 0.2539 1.0000 263,583
541
+ C2_ 15 | 34,028 165,655 22,792 192,941 | 0.1704 0.5989 0.2653 0.8355 199,683
542
+ C2_ 16 | 36,790 193,750 20,030 164,846 | 0.1596 0.6475 0.2561 1.0000 230,540
543
+ C2_ 17 | 34,667 220,569 22,153 138,027 | 0.1358 0.6101 0.2222 1.0000 255,236
544
+ C2_ 18 | 45,749 232,809 11,071 125,787 | 0.1642 0.8052 0.2728 0.9793 278,558
545
+ C3_ 13 | 26,847 125,289 29,973 233,307 | 0.1765 0.4725 0.2570 1.0000 152,136
546
+ C3_ 14 | 27,058 105,357 29,762 253,239 | 0.2043 0.4762 0.2860 1.0000 132,415
547
+ C3_ 15 | 25,612 108,250 31,208 250,346 | 0.1913 0.4508 0.2686 1.0000 133,862
548
+ C3_ 16 | 22,866 90,921 33,954 267,675 | 0.2010 0.4024 0.2681 1.0000 113,787
549
+ C3_ 17 | 29,009 129,298 27,811 229,298 | 0.1832 0.5105 0.2697 1.0000 158,307
550
+ C3_ 18 | 38,657 186,014 18,163 172,582 | 0.1721 0.6803 0.2747 1.0000 224,671
551
+ ```
552
+
553
+ All 19 rows verified internally consistent (TP+FN = 56,820, FP+TN = 358,596, n = 415,416;
554
+ P/R/F1 recomputed from counts). **Headline at n=6** (seed sd over six runs):
555
+
556
+ | condition | F1 (n=6) | seeds 13–15 | seeds 16–18 | Δ vs C0 | FN floor |
557
+ |---|---|---|---|---|---|
558
+ | C0 | 0.2572 | — | — | — | — |
559
+ | C1 | **0.7464 ± 0.0176** | 0.7533 | 0.7395 | **+0.489** | ~0% |
560
+ | C2 | **0.2478 ± 0.0231** | 0.2452 | 0.2504 | **−0.009** | 42% |
561
+ | C3 | **0.2707 ± 0.0095** | 0.2705 | 0.2708 | **+0.013** | 30% |
562
+
563
+ Five conclusions, each closing an item this document had open:
564
+
565
+ 1. **The inversion is seed-robust.** C1 stays ≈ 2.9× every other condition; C2/C3 straddle
566
+ C0 within ~1 seed-sd (C2 now marginally *below* C0). The n=3 result was not a lucky draw.
567
+ Δ vs C0 remains monotone in the measured FN floors (+0.489 / +0.013 / −0.009 for
568
+ ~0%/30%/42%) — §5.2's break-even story strengthens: the point where "hard negatives stop
569
+ helping" now sits more precisely between C3's and C2's contamination rates.
570
+ 2. **Exact test base rate (appendix Part 3, first input): p = 56,820/415,416 = 0.13678**, so
571
+ the all-positive ceiling is 2p/(1+p) = **0.2406**. This replaces §5.3's model-calibrated
572
+ π ≈ 0.15–0.20. C0's 0.2572 sits ABOVE the ceiling → C0 is confirmed a weak-but-real
573
+ separator, not a degenerate all-positive predictor (exactly the predicted "partial" mode).
574
+ 3. **The C2/C3 collapse mode is saturation-erasure, not all-positive collapse.** 10/12 C2/C3
575
+ validation thresholds are pinned at exactly 1.0000; for those runs `n_pred_pos` at thr 1.0
576
+ counts pairs at fp32 cosine == 1.0 — i.e. **27–67% of the entire test split saturates at
577
+ the ceiling** (C3: 27–54%, C2: 41–67%). F1 scatters around the 0.2406 ceiling (C2
578
+ 0.217–0.273, C3 0.257–0.286): the band is compressed into the fp32 rounding point with
579
+ wrong-side ordering, which is §5.3's erasure mode, now observed directly.
580
+ 4. **Cross-checks pass on the consolidator:** the C0 row reproduces the stored eval metrics
581
+ exactly (0.2075/0.3383/0.2572 @ 0.9779 — npz↔metrics consistency); C1_17 (0.7118) is the
582
+ n=6 low seed at ≈ −2σ but far above baseline; the §8 stop-conditions (C1 ext seed < 0.70;
583
+ C2/C3 ext seed > 0.35) did not trip.
584
+ 5. **Still open (unchanged):** MAP@R per run (falsifier (i) — the one ranking-level check)
585
+ and the full appendix Parts 1–2 paste; the `--results-table` rebuild for
586
+ `report/measurements.md` happens VM-side per the standing rule.
587
+
588
+ **Verdict impact:** none of the three §8 falsifiers fired; the seed-extension *strengthens*
589
+ the §8 statement — the defensible claim is now backed by six seeds per condition and an
590
+ exact base rate. Wording upgrade for the write-up: "robust across six training seeds"
591
+ replaces "three seeds"; the collapse is characterised as fp32-saturation erasure with
592
+ 27–67% of test pairs at cosine 1.0, not "everything predicted positive".
593
+
594
+ ### 9.1 The report rebuild answers §4 — falsifier (i) is REFUTED (2026-10-01, consolidator push `0ce5bf4`)
595
+
596
+ The rebuilt report table includes MAP@R for all 19 runs. Expected reading confirmed exactly:
597
+
598
+ | | C0 | C1 (n=6) | C2 (n=6) | C3 (n=6) |
599
+ |---|---|---|---|---|
600
+ | mean MAP@R | 0.1024 | **0.667** ± 0.033 | **0.047** ± 0.024 | **0.077** ± 0.005 |
601
+
602
+ C2/C3 rank clones **worse than the untuned baseline** (C2 at less than half of C0). The
603
+ §8 rescue condition ("MAP@R(C2/C3) ≫ C0 with low F1 → thresholding failure") did not fire:
604
+ the collapse is representation-level, and training on poisoned hard negatives actively
605
+ degraded ranking. §4's decisive check is closed; §5's account needs no reframe.
606
+
607
+ ### 9.2 npz ↔ metrics mismatch on 9 of 18 trained runs — OPEN, VM-side investigation
608
+
609
+ Comparing the rebuilt report (stored `eval_metrics.json`) with the board's npz-recomputed
610
+ rows: **all six C1 runs match to 4 decimals; 9 C2/C3 runs disagree** (largest: C2_13 stored
611
+ F1 0.2438 vs npz 0.2165 — stored R 0.90 vs npz R 0.43 at the same claimed threshold 1.0;
612
+ smallest Δ 0.0005). `evaluate` writes metrics and `predictions.npz` from the same scores in
613
+ one process, so a single pass cannot produce both. The HF run dirs for those nine runs
614
+ therefore mix files from different passes/pushes. Leading hypothesis: pushes stage the FULL
615
+ artifacts tree, so a VM that pulled mid-campaign and pushed later can re-upload a **stale
616
+ copy** of another VM's run dir over the fresh one. Both readings sit in the same degenerate
617
+ band and C1 is exact, so **no conclusion changes** — but the provenance must be repaired:
618
+
619
+ 1. Decisive check (no GPU): per-file HF commit SHAs for the nine runs
620
+ (`HfApi.list_repo_commits` / web UI file history) — do `eval_metrics.json` and
621
+ `predictions.npz` come from the same commit? A difference confirms the stale-overwrite.
622
+ 2. Repair: `evaluate --force` on the nine runs (full pull needed — checkpoints), re-push.
623
+ Eval-only, deterministic given the checkpoint; expected to land in the same bands.
624
+ 3. Rule going forward: trainers pull once, before training; a push after a later pull may
625
+ carry stale neighbour dirs (the consolidator's `--include-report` pushes are the ones to
626
+ watch, since their trees span days).
627
+
628
+ ### 9.3 Two 600-pair rows leaked into the Phase 2 table — fixed, and they are Phase 3's first result
629
+
630
+ The rebuilt table contained `C1 13` and `C1 14` rows with n = 600: the **s′ unseen evals**
631
+ (holdout {10,13,14} × 200) written by `sprime_C1_13`/`sprime_C1_14`, whose metrics reuse the
632
+ condition label "C1". They polluted the C1 aggregate (8 rows, mean 0.7447). Fixed in
633
+ `embeded.evaluate` — the sprime run-dir namespace now decides exclusion, not the condition
634
+ field (regression-tested) — rebuild the table VM-side.
635
+
636
+ Substance, flagged as preliminary (n = 2, read through the leak): **C1 transfers to unseen
637
+ functionality almost losslessly** — F1_unseen 0.7230 vs seen 0.7454 (−0.022, −3%) for seed
638
+ 13, and 0.7564 vs 0.7546 (+0.002) for seed 14. Against Kitsios et al.'s task-specific
639
+ average drop of ~31%, that is LLM-scale robustness from a 32k-triple bi-encoder — the
640
+ single most encouraging number in the project so far, and the healthy-scorer transfer
641
+ quantity §6 predicted would be the informative Phase 3 measurement.
642
+ **Naming key for the filtered set (read this before §9.4/§9.5):** C1–C3 encode the SUPPLY
643
+ (random / BM25 / semantic). The bouncer conditions reuse that supply under a `filtered_` prefix,
644
+ and their numbers simply continue the sequence in the order they were built — **the number does
645
+ not encode the ranker**: C4 = filtered_bm25 (= C2 + bouncer), C5 = filtered_random (= C1 +
646
+ bouncer), C6 = filtered_semantic (= C3 + bouncer). There is no fourth ranker. Read every pair
647
+ as "Cx = Cy + the bouncer".
648
+
649
+ ### 9.4 C4 "filtered" — pre-registration (written BEFORE any C4 run exists; commit `56822ba`)
650
+
651
+ The one strategy the campaign left untested: **denoised hard negatives**. C2/C3 collapsed
652
+ because undenoised hard mining is dominated by false negatives (§6: FN rates 42%/30%, the
653
+ cause; margin the amplifier). The literature position (RocketQA; debiased contrastive;
654
+ NV-Retriever) is that hard negatives help **only after denoising**. C4 is that claim made
655
+ testable inside the frozen recipe. The denoiser is not invented ad hoc — it is the audit's
656
+ own separability cut, lifted from the 100-pair blind audit:
657
+
658
+ - **C4 = C2's BM25 ranking** (same ranker, depth k×20 instead of k×4 to feed the filters)
659
+ - **drop** every candidate with token-Jaccard(anchor, candidate) ≥ **0.40** — the audit's
660
+ separating threshold: removed ~40% of C2's contamination in-sample while keeping every
661
+ audited clean pair (C2 clean max 0.345; clone median 0.418). Tokenizer = the diagnostics
662
+ tokenizer (`bm25_index.tokenize_code`), one definition everywhere.
663
+ - **skip the first 10 survivors** (the densest head — rank-skip per the external review;
664
+ helps the C3-like regime, median rank ~13)
665
+ - everything else identical to C1–C3: exclusion pass, corpus filter, shared anchor/positive
666
+ stream, margin 0.10, cap, seeds. Padding to k from the corpus tail survives but is counted,
667
+ and the pad itself honours the Jaccard cut. Implementation: `clean_candidates_filtered`,
668
+ commit `56822ba`, 6 unit tests, suite 124/124.
669
+
670
+ **Expected outcome, pre-registered: F1(C4) ≈ F1(C1)**, i.e. the denoisers remove enough
671
+ contamination that C4 behaves like the clean-easy control rather than like C2. The
672
+ informative comparisons, in order of interest:
673
+ - C4 ≈ C1 → denoising rescues hard mining **to the clean baseline** (consistent with the
674
+ FN-cause account; the residual question becomes whether ANY denoised-hard signal remains).
675
+ - C1 < C4 → denoised hard negatives add real signal on top of clean-easy (the RocketQA-style
676
+ best case; would be the first positive hard-mining result in this recipe).
677
+ - C4 ≈ C2 → the Jaccard cut does not capture the poison (the remaining FN mass is
678
+ semantically-but-not-lexically duplicated); strengthens "functionality-blind mining is
679
+ unfixable at the lexical layer" (§6, external review).
680
+
681
+ **MANDATORY before any C4 number is compared to anything: a fresh 50-pair blind audit of
682
+ the C4 triples** (`audit_sample --conditions C4` — flag added in `56822ba`), same
683
+ 50/50 clone/not_clone design, judged without knowing which strategy produced the pair.
684
+ Acceptance gate: C4's audited clone-contamination rate must be **≤ C2's measured floor
685
+ (42%)** and ideally within noise of C1's (~0%). If the audit fails the gate, C4 is reported
686
+ as "denoising attempted, contamination persists" and the F1 comparison is footnoted, not
687
+ headlined. Mining is CPU-only (BM25); v7 bumps VERSION, so the `[cache]` is invalidated —
688
+ the re-mined C1–C3 triples are deterministic and bit-identical (same seeds, same code paths),
689
+ only C4's triples are new bytes.
690
+
691
+ **§9.4 execution log — mining stage (2026-10-02, VM).** The sanctioned v7 re-mine ran clean:
692
+ `frags=8063 corpus=6451 anchors=1600 k=20`; all four strategies landed at 32,000 triples
693
+ (`anchors_short=0` everywhere). **C1–C3 re-mined bit-identical to the `.v6bak` backups
694
+ (sha256 match) — the audit key and every Phase-2 label survive the version bump.** The
695
+ determinism assumption is now verified on real data, not just asserted. Provenance note: the
696
+ first attempt crashed on C2 (`NameError: frags`) — a C4-only pad block had been committed
697
+ inside the shared `clean_candidates` (fixed in `91d2f7c` with forced-pad regression tests;
698
+ offline fixtures never execute the pad path, only scale does). C4 mining stats:
699
+ `jaccard_filtered = 66,958` (candidates dropped at J ≥ 0.40 while scanning the k×20 BM25
700
+ depth — the audit cut removing real mass), `head_skipped = 16,000` (= 1600 × 10 exactly:
701
+ every anchor had ≥ 10 survivors past the cut), `padded = 111` (0.35 % of C4 negatives — no
702
+ drift toward C1), against C2's `padded = 7`. Order from here: §4 diagnostics row → §5/§5.5
703
+ **mandatory 50-pair blind audit gate** (pass ≤ 42 %, hope ≈ 0 %) → only then the six-seed
704
+ campaign, and only a passed gate puts C4 numbers on equal footing.
705
+
706
+ **§9.4 execution log — C4_13 first result (2026-10-02, monitoring read from the reader VM;
707
+ comparison DEFERRED pending the mandatory audit gate).** `test_f1 = 0.4108` (P 0.3256, R
708
+ 0.5564, thr 0.4965 — **not pinned**), MAP@R 0.2559, valid F1 0.4023 ≈ test, counts internally
709
+ consistent (tp 31,617 + fn 25,203 = 56,820 positives; recomputed from stored tp/fp/fn).
710
+ Placement, seed 1 of 6: far above the collapsed cluster (C2 0.2478±0.023, C3 0.2707±0.010,
711
+ ceiling 0.2406; 1.71× the all-positive ceiling) and far below C1 (0.7464±0.018) — an
712
+ **intermediate**, i.e. neither pre-registered pure outcome. Healthy-scorer signatures
713
+ distinguish it from the C2/C3 degenerate mode: unpinned mid-range threshold (vs 10/12 runs
714
+ at 1.0000), no saturation-erasure signature, and ranking ABOVE the untuned baseline (MAP@R
715
+ 0.2559 = 2.5× C0's 0.1024, where C2/C3 ranked below it). Registered BEFORE the audit, for
716
+ the gate to discriminate: if the audit's contamination is low (≲10 %), the 0.41-vs-0.75 gap
717
+ reads as hard-but-clean signal being neutral-to-harmful under the frozen margin-0.10 hinge;
718
+ if contamination sits in the ~20–40 % band, it reads as partial denoising (the lexical cut
719
+ removes the lexical poison, not all of it). Note the C2/C3 F1-vs-contamination points cannot
720
+ be interpolated here — those scorers are saturated-degenerate, so F1 is not a function of
721
+ contamination in that regime. Provenance: fingerprint `39251c7058a7e78c`; all six C4 runs
722
+ must share it — it will differ from the v6-era C1–C3 fingerprints because v7's hash covers
723
+ `triples_C4.jsonl` as well (expected, not drift).
724
+
725
+ **§9.4 execution log — C4 campaign COMPLETE, n=6 (2026-10-02; VM board + rebuilt report
726
+ `a14b62c`; formal comparison still DEFERRED pending the mandatory audit gate).**
727
+
728
+ F1 by seed: 13→0.4108, 14→0.3988, 15→0.4529, 16→0.4418, 17→0.4609, 18→0.4444.
729
+ **C4 = 0.4349 ± 0.0246** (sample-sd convention; range 0.062, comparable to C1's 0.048 —
730
+ normal seed spread, no outlier). MAP@R by seed: 0.2559/0.2369/0.2967/0.2735/0.3085/0.2847 →
731
+ **mean 0.2760**. Placement: vs C2 +0.1871, vs C3 +0.1643, vs C0 +0.1777, vs C1 −0.3115;
732
+ 1.81× the all-positive ceiling; C1/C4 = 1.72×. MAP@R: 2.70× C0 (0.1024), vs C1 0.667
733
+ (2.42× below), vs C2 0.047 (5.9× above), vs C3 0.077 (3.6× above) — **C4 ranks ABOVE the
734
+ untuned baseline**, unlike C2/C3 which ranked below it (§9.1).
735
+
736
+ **Outcome: none of the three pre-registered pure results obtained — this is the fourth
737
+ outcome, PARTIAL RESCUE.** Denoising is necessary and sufficient for escaping the
738
+ degenerate mode (C4 ≫ C2/C3 with a completely healthy scorer: 6/6 thresholds unpinned in
739
+ 0.4965–0.5707 vs 10/12 C2/C3 runs pinned at 1.0000; predicted-positive share 17–25 % of
740
+ test pairs vs the 27–67 % saturation mass; valid ≈ test throughout) but not for reaching
741
+ the clean-easy control (C1 −0.31). The collapse mechanism (§6: FN cause, margin amplifier,
742
+ saturation erasure) is *prevented* by the denoisers; the remaining gap to C1 is either
743
+ residual false-negative contamination or genuine hard-clean signal being net-neutral under
744
+ the frozen margin-0.10 hinge — **exactly what the mandatory 50-pair blind audit must now
745
+ discriminate** (≲10 % contamination → "hard-but-clean is harmful here"; 20–40 % → "partial
746
+ denoising"). No headline claim until the gate passes (≤ 42 %, hope ≈ 0 %).
747
+
748
+ Housekeeping: (1) the 25-run confusion board reads predictions.npz, so its C2/C3 rows are
749
+ the npz values (e.g. C2_13 0.2165) — the §9.2 stored-metrics repair (`evaluate --force` on
750
+ the 9 runs) remains outstanding and untouched. (2) `smoke_C4_13/` (499 MB checkpoint) was
751
+ pushed to HF by the trainer; harmless (never matches `C[0-4]_<seed>` globs), optional
752
+ cleanup. (3) Correction to the C4_13 log entry above: run fingerprints legitimately differ
753
+ across seeds (the hash covers condition+seed by construction); the cross-run identity check
754
+ is the shared `artifacts` hash block in each `run_config.json`, not the fingerprint.
755
+
756
+ **§9.4 FINAL — the mandatory C4 audit gate (2026-10-02, reader VM; sheet `artifacts/audit_c4/`,
757
+ blind, key verified against the on-disk triples). Clone rate 15/50 = 30 % [Wilson 0.191,
758
+ 0.438]; incl. unsure 16/50 = 32 % [0.208, 0.458] (unsure 1). References: C1 ≈ 0–2 %, C2
759
+ 42 % [0.294, 0.558], C3 30 % [0.191, 0.438].**
760
+
761
+ **Gate verdict: PASSED by the pre-registered criterion (30 % ≤ 42 %) — C4 comparisons stand
762
+ on equal footing. The pre-registered HOPE (≈ 0 %) failed: the fork registered before the
763
+ audit lands on its second branch — PARTIAL DENOISING.** The Jaccard cut removed the lexical
764
+ false negatives (the J ≥ 0.40 band, C2-style surface-similar poison); the *semantic* clones
765
+ (same functionality, different tokens — J < 0.40) sailed through, and they alone account
766
+ for the 30 %.
767
+
768
+ **The decisive comparison the two audits now make possible: C3 and C4 carry the SAME
769
+ measured contamination — 15/50 each — yet sit 0.16 F1 apart with opposite scorer states (C3:
770
+ 10/12 thresholds saturated at 1.0000 and MAP@R below C0; C4: 6/6 unpinned and MAP@R 2.7×
771
+ C0). Contamination RATE therefore does not determine collapse; the FN mass's SURFACE
772
+ SIMILARITY does. C3's false negatives are retrieved *by* semantic proximity and include the
773
+ lexically-hot band; C4's contain no token-J ≥ 0.40 member by construction. Refinement of
774
+ §6: the collapse trigger is a false negative that is simultaneously a functional clone AND
775
+ a surface near-duplicate — the push-apart gradient then contradicts the very features that
776
+ define clones (→ saturation erasure, §9.1). Function-only clones are a milder corruption:
777
+ they misallocate capacity without eroding the representation. FN similarity = trigger, FN
778
+ rate = dose, margin 0.10 = amplifier (unchanged).**
779
+
780
+ **C4 verdict for the write-up (headline-able as of this gate):** denoised hard negatives
781
+ (C4: F1 0.4349 ± 0.0246, MAP@R 0.2760) escape the degenerate mode that undenoised mining
782
+ produces (C2 0.2478 ± 0.0231 / C3 0.2707 ± 0.0095; MAP@R 0.047/0.077), beat the untuned
783
+ baseline on both axes (+0.178 F1, 2.7× MAP@R), and do NOT approach the clean-easy control
784
+ (C1 0.7464 ± 0.0176; gap −0.31) — and the audit prices the residue: 30 % of C4's negatives
785
+ are still false negatives, the semantic clone mass a lexical filter cannot see. Claim
786
+ (literature-aligned, RocketQA / NV-Retriever, extended by the similarity-axis finding):
787
+ under this frozen recipe (margin 0.10, thresholded F1) denoising is necessary and
788
+ sufficient for avoiding collapse but buys no advantage over easy negatives — and the
789
+ denoising axis matters: token-level filtering removes exactly the collapse-causing
790
+ component while leaving the semantic FN mass intact. Any future denoiser must be semantic
791
+ (cross-encoder or embedding-distance veto), not lexical.
792
+
793
+ Housekeeping: the audit artifacts live on the reader VM; preserve by a fresh `pull --light`
794
+ immediately followed by an artifacts-only `push` from that same VM (never `--include-report`
795
+ from a second VM, and do not commit that VM's stale repo copy of `report/measurements.md` —
796
+ this section is canonical). The §9.2 stored-metrics repair (per-file SHA check + `evaluate
797
+ --force` on the 9 mismatched v6 runs) remains the last open campaign item.
798
+
799
+ ### 9.5 C5 + C6 — completing the factorial (pre-registered 2026-10-02, BEFORE any C5/C6 run; code `e8c04ac`, v8)
800
+
801
+ C4-vs-C2 isolated the bouncer on one ranker. The full design is ranker × bouncer, and two
802
+ cells are empty. Filling them turns the §9.4 similarity-axis finding from a cross-ranker
803
+ observation into within-ranker causal tests:
804
+
805
+ | supply | no bouncer | + bouncer |
806
+ |---|---|---|
807
+ | random (C1 0.7464) | — | **C5 = filtered_random** |
808
+ | BM25 (C2 0.2478) | C4 0.4349 | ✔ done |
809
+ | semantic (C3 0.2707) | — | **C6 = filtered_semantic** |
810
+
811
+ Bouncer = the §9.4 mechanism unchanged (clone/corpus exclusion → J ≥ 0.40 cut → skip first
812
+ 10 survivors → counted pad honouring the cut). Everything else frozen: same anchors,
813
+ positives, k, margin, cap, seeds. VERSION v8; the v8 re-mine backs up the on-disk C1–C4 and
814
+ **asserts bit-identity** (second determinism proof; the audit_c4 sheet stays valid iff C4
815
+ triples are unchanged — asserted before anything trains).
816
+
817
+ **C5 predictions (control):** jaccard_filtered ≈ 0 on a random supply; F1 ≈ C1's band
818
+ (0.7464 ± 0.02); thresholds unpinned (~0.44); audit clone rate ≈ 0–2 %. Purpose: prove the
819
+ bouncer's effect is *band removal*, not supply transformation — on a clean supply it must be
820
+ ≈ a no-op. **If C5 lands > 0.03 below C1, the bouncer (or the sampling-parity assumption) is
821
+ doing something unexplained → halt and investigate before interpreting C6.**
822
+
823
+ **C6 predictions (discriminator) — the fork, with the decision rule fixed NOW:**
824
+ - **H1 similarity-trigger (current §6):** C3's collapse-causing component is its
825
+ lexically-hot sub-band. C6's scorer DE-saturates (thresholds unpin; predicted-positive
826
+ share back to ~17–30 %) and F1 ≥ C4's band (≈ 0.43+) — *while the audit stays contaminated*
827
+ (predicted ~25–35 %, i.e. the semantic FN mass passes the lexical cut untouched). C6's
828
+ mining `jaccard_filtered` (predicted 10–25 % of scanned candidates) quantifies that sub-band
829
+ for free, before any GPU hour.
830
+ - **H2 dose-only:** ~30 % FN of any kind collapses this recipe → C6 ≈ C3 (pinned, ~0.27) with
831
+ small jaccard_filtered → **the §9.4 similarity-axis reading is OVERTURNED**; §6 gets
832
+ rewritten around FN rate, and the C3=C4 same-rate comparison is reinterpreted as sample noise.
833
+ - Primary endpoint: scorer state (pinned vs not). Secondary: F1 band. Tertiary: audit rate.
834
+ Either H wins is a publishable result; H2 explicitly falsifies the §9.4 trigger claim.
835
+
836
+ **Gates and budget:** mandatory 50-pair blind audits for BOTH conditions before any
837
+ comparison (`audit_sample --conditions C5` / `--conditions C6`, separate
838
+ `EMBEDED_AUDIT_DIR`s — audit_c5/, audit_c6/); pass = ≤ 42 % each, hopes as above. n = 3
839
+ triage (seeds 13/14/15) for both; extend C6 to n = 6 iff its F1 lands within 0.05 of a
840
+ decision boundary. Compute: ~7–8 units (n=3 both) / ~15 (n=6 both) — against ~45 remaining.
841
+ C5/C6 are Phase-2-only (s′ mining untouched: generalize iterates C1–C3 only).
842
+
843
+ **§9.5 execution log — v8 re-mine verified (2026-10-02, VM).** `C1–C4 bit-identical to the
844
+ .v7bak backups` — the second determinism proof; all audit sheets (C2/C3 labels, audit_c4)
845
+ survive the version bump. All six conditions at 32,000 triples, `anchors_short = 0` except
846
+ none. Mining-stat predictions vs outcome:
847
+
848
+ - **C5 `jaccard_filtered = 1,768` = 0.27 % of ~656 k scanned** (predicted ≈ 0). The random
849
+ supply is lexically clean; the bouncer removes ~1 candidate per 18 anchors. Mechanically
850
+ C5 ≈ C1 before training even starts — the audit (predicted 0–2 %) and the F1 band
851
+ (≈ 0.7464) remain the formal checks.
852
+ - **C6 `jaccard_filtered = 87,024` = 13.6 % of 640 k scanned** (predicted 10–25 %): the
853
+ lexically-hot sub-band inside C3's semantic supply is real and now quantified. Same depth,
854
+ ranker-for-ranker: BM25's ranking carries 10.5 % (C4's 66,958) vs semantic's 13.6 % —
855
+ semantic retrieval surfaces ~31 % more lexical poison, consistent with it being the
856
+ stronger poison-fisher (the 99.2 % closer-than-positive statistic).
857
+ - **C6 supply is thinner post-cut:** `head_skipped = 15,957` (< the uniform 16,000 — 43
858
+ anchors had <10 survivors in their whole 400-deep scan) and `padded = 710` (2.2 %, vs C4's
859
+ 0.35 %). Still hard-dominated, not a C1-in-disguise — the audit and the F1 band will judge.
860
+
861
+ Next per pre-registration: §4 diagnostics rows (free) → §5–§6.5 the TWO mandatory audit
862
+ gates (C5 prediction 0–2 %, C6 prediction 25–35 % under H1; pass ≤ 42 % each) → §7 n = 3
863
+ campaign. The H1/H2 decision rule (scorer state primary) is fixed and must not be adjusted
864
+ after seeing results.
865
+
866
+ **§9.5 addendum (2026-10-03): scope extension + observed C5/C6 results (comparison STILL gated
867
+ on the two mandatory audits).** (1) **Scope:** by user decision the bouncer factorial joins
868
+ Phase 3 — `generalize.py` CONDS now admits C4/C5/C6 iff their s′ triples are mined; s′ mining
869
+ produces all six conditions (frags threaded for the bouncer); the s′ resume gate demands all
870
+ six; gate G1s verdict remains the D1 rule on C1 < C2 ≤ C3 with C4–C6 reported alongside; the
871
+ Δ table, §9 free transfer reading and the UMAP figure cover C0–C6 (18 runs + C0). This
872
+ supersedes both the original P6-1 ("no fourth strategy") and §9.5's own "Phase-2-only" note.
873
+ Phase3_Colab.ipynb updated throughout (preflight, mining, gate, campaign, table, figure).
874
+ (2) **Observed results (VM report rebuilds `3493132`/`463c367`, n = 6 each — the full ladders
875
+ ran, beyond the registered n = 3 triage):** **C5 = 0.7399 ± 0.0140, MAP@R 0.6629** — Δ vs C1
876
+ (0.7464 ± 0.0176) = −0.0065, far inside seed noise: the control prediction (bouncer ≈ no-op on
877
+ a clean supply) is confirmed at the F1 level. **C6 = 0.4722 ± 0.0282, MAP@R 0.1826** — the
878
+ primary endpoint (scorer state) reads **de-saturated** (visible thresholds 0.63/0.68/0.82 for
879
+ seeds 16/17/18 — nothing pinned at 1.0), F1 lands above C4's band (0.4349 ± 0.0246) and 1.7×
880
+ C3's collapsed 0.2707 → **H2 (dose-only) is refuted by the scorer state; H1
881
+ (similarity-trigger) survives** — the semantic supply with its lexically-hot band removed
882
+ behaves like the rescued BM25 supply, not like its unfiltered twin, despite carrying (by
883
+ construction) the semantic FN mass. (3) **Gate status: NOT yet headlined — the 50-pair blind
884
+ audits for C5 (prediction 0–2 %) and C6 (prediction 25–35 % under H1) are still mandatory**
885
+ before any C5/C6 comparison is written down as a finding; the H1 verdict above is
886
+ pre-registered-rule reading of the scorer endpoint, to be confirmed (or upset) by the audits —
887
+ if C6's audit comes back LOW-contamination, H1's mechanism needs a second look. Log both gate
888
+ blocks in this section when scored.
889
+
890
+ **§9.5 outcome rows — TEMPLATE (append after scoring; fill, do not edit anything above).**
891
+ Copy the block, replace the angle-bracket fields, append at the end of §9.5, THEN let any
892
+ headline sentence use C5/C6.
893
+
894
+ ```
895
+ §9.5 outcome — audit_c5 (scored <UTC date>, sheet artifacts/audit_c5/, labelled by <who>):
896
+ rate = <n>/50 = <p>% [<wilson lo, hi>]; prediction band 0-2%; scorer state at scoring:
897
+ <thresholds pinned?>; branch taken: <CONFIRMED CONTROL / OUT OF BAND -> C5 loses
898
+ control status, §9.5 addendum needed>; consequence recorded in: <report section>.
899
+
900
+ §9.5 outcome — audit_c6 (scored <UTC date>, sheet artifacts/audit_c6/, labelled by <who>):
901
+ rate = <n>/50 = <p>% [<wilson lo, hi>]; H1 band 25-35%; branch taken: <H1 SURVIVES ->
902
+ §9.4 extends to the semantic supply / H2 -> §9.4 + SCOPE §6 rewrite (amplifier account
903
+ was BM25-specific)>; consequence recorded in: <report section / sanitycheck addendum>.
904
+ ```
905
+
906
+ ## §9.6 AMENDMENT (2026-10-21, append-only): C4/C5/C6 audit scores VOID — one labels file on three keys
907
+
908
+ Found while opening the Phase-4 audit gate. Forensics on the pulled Hub
909
+ artifacts: audit_c4/, audit_c5/ and audit_c6/ each hold a 100-row
910
+ audit_labels.csv, byte-identical across the three dirs AND identical to the
911
+ GENUINE artifacts/audit/ labels file (9,925 B; 36 clone / 63 not_clone /
912
+ 1 unsure; same per-pair notes; same first-20 label sequence). Each
913
+ per-condition key has 50 pairs (P001..P050): scoring had joined the first
914
+ 50 ids of the C2/C3 sheet onto each condition's key. Each bogus
915
+ audit_result.json records n=50 but n_labelled=100 — written at score time,
916
+ so the wrong file was already in place when each gate "passed": C4 on the
917
+ v7 checkout (2026-10-02), C5/C6 on v8 (2026-10-03). Mechanism: the Colab
918
+ upload flow hands every sheet the same filename (audit_labels.csv) and the
919
+ old sheets all reused ids P001..P050, so a stale Downloads copy of the
920
+ genuine C2/C3 sheet fitted every later sheet silently. Fixed at 596f98b
921
+ (content-tagged sheet ids; score refuses foreign ids; 3a quarantines
922
+ wrong-sheet files).
923
+
924
+ - VALID, unchanged: artifacts/audit/ — C2 42% [0.294, 0.558], C3 30%
925
+ [0.191, 0.438] (labels match their 100-row key; §9.4's C2/C3 legs, the
926
+ J ≥ 0.40 cut analysis, and C1's ≈0–2% (S3-era provenance) all stand).
927
+ - VOID: C4 "30% [0.191, 0.438]" — it was the first 50 rows of the C2/C3
928
+ sheet. §9.4's "C3 = C4 = 15/50" — read since 2026-10-02 as a striking
929
+ coincidence — was ONE measurement joined onto two keys; the C3-vs-C4 arm
930
+ of the dose/trigger story loses its equal-dose premise. The dose reading
931
+ (C2 42% vs C3 30%) and the trigger/margin analysis on the genuine C2/C3
932
+ labels stand; C4-specific claims are withdrawn pending re-audit.
933
+ - VOID: the C5/C6 scores surfaced 2026-10-21 (30% each — same join). The
934
+ §9.5 C5/C6 gates remain OPEN, exactly as §9.5 assumed.
935
+
936
+ Repair (registered here before unblinding): the sheets themselves are sound
937
+ (per-directory keys; blind md; keys verified against the on-disk triples).
938
+ Re-label all three from their audit_pairs.md (150 pairs) and re-score with
939
+ the 596f98b tooling, which refuses foreign ids. C4 re-enters the Phase-4
940
+ gate beside C5/C6 (notebook §3). New numbers replace the void ones wherever
941
+ they had spread (notebook Panels A/C, PHASE4_PLAN §3/§4, PROJECT_REPORT F2,
942
+ paper G2 + benchmark table + mechanism section), and the branches taken are
943
+ recorded in §9.5 — appended, never edited.
944
+
945
+ ## §9.7 AMENDMENT (2026-10-23, append-only): nine replay mismatches were threshold serialization loss
946
+
947
+ Executed Phase 4 on a browser-controlled Colab Tesla T4. Re-evaluating the nine
948
+ registered C2/C3 checkpoints with the old evaluator reproduced every mismatch,
949
+ despite successful command exits. Diagnosis compared the threshold selected from
950
+ saved validation scores with the threshold persisted in JSON/NPZ. For C2_13 the
951
+ selected threshold was `0.9999998807907104`, but six-decimal serialization saved
952
+ `1.0`: F1 at the selected threshold was `0.2438`, while replay at the saved
953
+ threshold gave `0.2165`. The same precision-loss mechanism explained all nine.
954
+
955
+ `precision_recall_f1` now returns the full threshold instead of rounding it for
956
+ storage. Threshold selection remains validation-only; training, checkpoints,
957
+ splits, and the resume fingerprint gate are unchanged. Two saturated-score
958
+ regression cases fail on the old evaluator and pass on the fix. The notebook
959
+ checks evaluator precision before repairs and checks acceptance before syncing.
960
+
961
+ Re-evaluated C2 seeds 13/14/16/17 and C3 seeds 13/14/15/16/18 with `--force` after
962
+ the patch. Acceptance passed: **zero stored-F1 versus NPZ-replay mismatches across
963
+ all 37 benchmark runs** at the registered `5e-4` tolerance. The full Colab offline
964
+ suite passed **165 tests**. Original prediction/metric/checkpoint hashes remain
965
+ in each run's `phase4_pre_repair.json`. Comparison of the nine before/after metric
966
+ files found **no stored test-F1 changes**: the defect was persisted threshold
967
+ precision, not a measured performance shift. The earlier deltas remain evidence
968
+ of replay inconsistency, not nine newly measured model improvements.
969
+
970
+ Corrected artifacts were synced to `Kusshal/Embed`; the evidence and blank-label
971
+ handoff archives are pinned at HF commit
972
+ `a77f8d2d1f26b5168a88822a7d1138f027eee4af`, under
973
+ `artifacts/phase4_exports/2026-10-23/`. The evidence archive contains 37 metric
974
+ files, nine pre-repair records, the tested code, before/after regression logs,
975
+ and a SHA-256 manifest (46 artifact hashes verified after local download).
976
+
977
+ The §9.6 audit invalidation is unaffected. Wrong-sheet labels/results were
978
+ quarantined recoverably; C4/C5/C6 each still have **0/50 human labels**. The review
979
+ pack contains 150 blank labels and no unblinding keys. No audit outcome branch,
980
+ final combined table, or mechanism verdict is certified by this execution.
981
+
982
+ ## §9.8 AMENDMENT (2026-10-23, append-only): AI reviewer authorized for the 150 pending pairs
983
+
984
+ **ID:** `P4-AI-AUDIT-2026-10-23`. **Recorded:** 2026-10-23 10:26:15 UTC.
985
+ The project owner explicitly selected the disclosed AI-review amendment in this
986
+ chat. This permits Codex AI judgments for C4/C5/C6, replacing the outstanding
987
+ human-review eligibility requirement only. Benchmark outcomes were already
988
+ known; the amendment is post-results, not original preregistration. No new
989
+ audit judgments or rates had been produced at recording time.
990
+
991
+ Input commitment: HF commit `a77f8d2d1f26b5168a88822a7d1138f027eee4af`,
992
+ `artifacts/phase4_exports/2026-10-23/phase4_audit_label_pack.zip`, SHA-256
993
+ `371fed22a631f151b53cb6d102fe43d1cb593e18f490acb5972c91666bd40b02`.
994
+ The local pack was verified to have 150 label rows, all blank, and no unblinding
995
+ keys. Per-sheet SHA-256 commitments and operating rules are in
996
+ `report/phase4_ai_audit_protocol.json`. Preserve that pack and all quarantined
997
+ invalid labels/results. Do not regenerate the sample after inspecting outcomes.
998
+
999
+ Unchanged: C4/C5/C6, 50 pairs each, original sampling seed 13 and pair IDs,
1000
+ functional-equivalence rubric, clone/not_clone/unsure labels, point rate
1001
+ `clone/50`, sensitivity upper rate `(clone+unsure)/50`, Wilson calculation,
1002
+ numerical prediction bands, all key-to-current-triples checks, completeness,
1003
+ the §9.6 invalidation, §9.7 repair acceptance and score-bound outcome records.
1004
+
1005
+ Review requirements: read both fragments, give every label a pair-specific
1006
+ functional rationale, retain `unsure` where context or equivalence is unresolved,
1007
+ record `reviewer_type=ai` and this amendment ID with the completed sheets and
1008
+ results, and freeze labels before scoring/key joining. Exact serving model ID
1009
+ is not independently recorded and must not be invented. Single-AI review is
1010
+ not independent human validation or measured inter-rater agreement. The
1011
+ assistant already knows study context, condition identities and benchmark
1012
+ results, so neither a fully blind audit nor an unbiased independent judge is
1013
+ claimed. Wilson intervals cover sample variation only, not AI accuracy/bias.
1014
+
1015
+ Reporting rule: every new C4/C5/C6 rate in the table/report/paper must state
1016
+ **AI-reviewed; not independently human-validated** and cite this amendment.
1017
+ Numerical agreement with a prediction band is descriptive consistency; it
1018
+ cannot alone certify a mechanism or a human-confirmed control. Human replication
1019
+ remains a limitation/future validation task, not a prerequisite for reporting
1020
+ the transparently amended AI audit. The final table can proceed only after all
1021
+ amended judgments, scores, provenance and outcome branches actually exist.
1022
+ This authorization is not an audit result and does not close those gates.
1023
+
1024
+ ## §9.9 Audit completion — 2026-10-23 (AI-reviewed; not independently human-validated)
1025
+
1026
+ Under amendment `P4-AI-AUDIT-2026-10-23`, all 150 fixed pairs were reviewed
1027
+ with individual functional rationales. Labels were frozen at 11:38:33 UTC in
1028
+ `report/phase4_ai_audit_freeze.json`, before key joining or score calculation.
1029
+ The three original blank sheets and invalid historical evidence are preserved.
1030
+ All 50 sampled IDs per condition exactly reproduce seed-13 sampling from the
1031
+ committed mining artifacts; every pair is present in current triples. Current
1032
+ HF main triples were independently checked against those committed inputs.
1033
+
1034
+ | condition | clone / not_clone / unsure | AI-reviewed rate; not independently human-validated [Wilson 95%] | sensitivity incl. unsure |
1035
+ |---|---|---|---|
1036
+ | C4 | 6 / 42 / 2 | 12% [5.6%, 23.8%] | 16% |
1037
+ | C5 | 0 / 50 / 0 | 0% [0%, 7.1%] | 0% |
1038
+ | C6 | 11 / 38 / 1 | 22% [12.8%, 35.2%] | 24% |
1039
+
1040
+ Intervals cover sampling uncertainty only, not systematic AI-review error or
1041
+ prior outcome knowledge. No human validation/inter-rater agreement is claimed.
1042
+ The original numeric bands are unchanged. These results replace, not reinstate,
1043
+ the voided C4/C5/C6 rates. The original human-reviewed C2/C3 comparisons have a
1044
+ different reviewer method and are descriptive, not reviewer-controlled tests.
1045
+
1046
+ Phase 4 audit outcome C4 sha256=447d5887a8d0ff6bc9d3c180451528c3970e256e1e36e86068d1e3d2839d2b05
1047
+ branch taken: below the registered 42% ceiling; not the hoped-for zero contamination
1048
+ consequence: replace voided C4 rate; remove C3=C4 same-rate mechanism argument; comparisons across human/AI reviewers remain descriptive
1049
+
1050
+ Phase 4 audit outcome C5 sha256=5dfc85cc270f1a48db0d8013db4343bd76a9b0c9d1249626206901c56d5095ad
1051
+ branch taken: point estimate inside the registered 0-2% band; AI-reviewed consistency only
1052
+ consequence: retain C1 as headline condition; C5 is a descriptively consistent control candidate, not human-confirmed clean; 0/50 does not establish a population rate at most 2%
1053
+
1054
+ Phase 4 audit outcome C6 sha256=2c175c1791a165c823d8d0567ffba0dd7885f21dec32abc379eaf546b33a625a
1055
+ branch taken: point estimate 22% outside the 25-35% H1 prediction band; Wilson interval overlaps the band; audit does not resolve H1 versus H2
1056
+ consequence: remove claims that residual semantic FN mass is unchanged or that similarity-trigger causality is established; retain observed scorer/F1 rescue as descriptive evidence with dose/similarity confounded
1057
+
1058
+ The primary scorer-state endpoint and secondary F1 endpoint remain the measured
1059
+ ones recorded above; this audit does not reverse endpoint ordering. The earlier
1060
+ assertion that H2 was refuted and H1 confirmed is not a certified mechanism
1061
+ conclusion. A narrower conclusion is required: the bouncer intervention changes
1062
+ performance and the reviewed contamination, so these data do not isolate
1063
+ similarity from false-negative dose. No extra experiments are authorized here.