Kusshal commited on
Commit
00ea7b6
·
verified ·
1 Parent(s): f85edd0

sync EmbedEd artifacts (phase01-v8)

Browse files
artifacts/phase4_decisions.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recorded_utc": "2026-10-21 04:44 UTC",
3
+ "version": "phase01-v8",
4
+ "decisions": {
5
+ "D4-1": {
6
+ "choice": "three panels inline (benchmark / generalisation / FN rates) + non-comparability note; C4-C6 inline, flagged as the recorded factorial extension",
7
+ "rationale": "Part 7 names C0-C3; the bouncer trio joined by the recorded 2026-10-03 addendum - visible, not smuggled in."
8
+ },
9
+ "D4-2": {
10
+ "choice": "headline condition = C1; C5 only if audit_c5 lands in band",
11
+ "rationale": "C1 is the best *trained* condition with its gate closed; C5's audit is the open one (section 3)."
12
+ },
13
+ "D4-3": {
14
+ "choice": "the ~0.95 published number is framed as a pair-regime difference (reconciliation as a limitation)",
15
+ "rationale": "Corpus-wide natural prevalence (ceiling 0.2406) vs the near-clone-heavy published splits; MAP@R carries the prevalence-robust companion. Not chased as a harness defect."
16
+ },
17
+ "D4-4": {
18
+ "choice": "the denoising delta-ladder on C3, ONLY after a completed draft AND a SCOPE amendment",
19
+ "rationale": "SCOPE's own 'natural next experiment' (Part 6 rule 7 keeps the bar: a clear 9-page write-up beats a half-finished extension)."
20
+ }
21
+ }
22
+ }
report/measurements.md CHANGED
@@ -640,8 +640,8 @@ Generated from `artifacts/runs/<condition>_<seed>/eval_metrics.json` by `python
640
  - C0 is the untuned baseline (one evaluation, not a trained condition) at mean F1 0.2572.
641
  - Among the trained conditions the highest mean F1 is C1 (0.7464); per-seed values above, not the best seed.
642
  - Sanity reference: published CodeXGLUE fine-tuned-CodeBERT F1 ~ 0.95 under a different model/protocol. Observed F1 range 0.2408–0.7623. A large discrepancy is a harness/protocol check (metric implementation, pair order, labels, threshold handling), not a reason to tune against the test split.
643
- - 3 smoke-run result(s) are excluded from this table (harness checks, not measurements).
644
- - 2 result file(s) with conditions outside ['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6'] (Phase 3 sprime runs) are excluded from this table.
645
 
646
  ## Phase 3 — decisions (recorded before the runs)
647
 
@@ -764,3 +764,48 @@ Phase 2 checkpoints (C0 = base model) scored on the same s′ partition without
764
  | C6 | 13 | 0.6690 | 0.6338 | +0.0352 | 0.7480 | 600 |
765
  | C6 | 14 | 0.6701 | 0.6659 | +0.0042 | 0.6374 | 600 |
766
  | C6 | 15 | 0.6760 | 0.6592 | +0.0168 | 0.6970 | 600 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
640
  - C0 is the untuned baseline (one evaluation, not a trained condition) at mean F1 0.2572.
641
  - Among the trained conditions the highest mean F1 is C1 (0.7464); per-seed values above, not the best seed.
642
  - Sanity reference: published CodeXGLUE fine-tuned-CodeBERT F1 ~ 0.95 under a different model/protocol. Observed F1 range 0.2408–0.7623. A large discrepancy is a harness/protocol check (metric implementation, pair order, labels, threshold handling), not a reason to tune against the test split.
643
+ - 4 smoke-run result(s) are excluded from this table (harness checks, not measurements).
644
+ - 37 result file(s) with conditions outside ['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6'] (Phase 3 sprime runs) are excluded from this table.
645
 
646
  ## Phase 3 — decisions (recorded before the runs)
647
 
 
764
  | C6 | 13 | 0.6690 | 0.6338 | +0.0352 | 0.7480 | 600 |
765
  | C6 | 14 | 0.6701 | 0.6659 | +0.0042 | 0.6374 | 600 |
766
  | C6 | 15 | 0.6760 | 0.6592 | +0.0168 | 0.6970 | 600 |
767
+
768
+ ## False-negative audit — C2/C3 (blind; SCOPE P2-9)
769
+
770
+ `python -m scripts.audit_sample score` — version `phase01-v8`, conditions C2/C3. Share of mined negatives judged to be clones (functional equivalence). Headline counts `unsure` as not_clone; the upper bound counts it as clone.
771
+
772
+ | condition | n | clone | not_clone | unsure | FN rate [95% CI] | upper bound incl. unsure |
773
+ |---|---|---|---|---|---|---|
774
+ | C2 | 50 | 21 | 29 | 0 | **42%** [29%, 56%] | 42% [29%, 56%] |
775
+ | C3 | 50 | 15 | 34 | 1 | **30%** [19%, 44%] | 32% [21%, 46%] |
776
+
777
+ ## Phase 4 — the one table
778
+
779
+ Assembled from the run dirs by the Phase-4 notebook — version `phase01-v8`, recorded 2026-10-21 04:44 UTC. Sources: `runs/<run>/eval_metrics.json`, the audit sections below, and the s′ table. **The two panels are different rulers** (benchmark: natural 13.7% prevalence, all-negative ceiling 0.2406; s′: balanced slices) — absolute F1 is NOT comparable across panels; within a panel, orderings are the finding.
780
+
781
+ ### Panel A — benchmark (F1 mean ± sd over seeds 13-15; pinned = validation thresholds saturated at 1.0)
782
+
783
+ | condition | F1 | pinned | audited/measured FN rate |
784
+ |---|---|---|---|
785
+ | C0 | 0.2572 ± 0.0000 | 0/1 | — |
786
+ | C1 | 0.7533 ± 0.0073 | 0/3 | ≈0-2% (audited) |
787
+ | C2 | 0.2542 ± 0.0108 | 2/3 | 42% (audited) |
788
+ | C3 | 0.2728 ± 0.0136 | 3/3 | 30% [0.191, 0.438] (audited) |
789
+ | C4 | 0.4208 ± 0.0284 | 0/3 | 30% [0.191, 0.438] (audited) |
790
+ | C5 | 0.7288 ± 0.0029 | 0/3 | 0.27% supply (audit_c5: §3) |
791
+ | C6 | 0.4688 ± 0.0278 | 0/3 | 13.6% supply (audit_c6: §3) |
792
+
793
+ *(Phase-2 extension seeds 16-18 exist on the hub and are reported as extra evaluations, not table rows.)*
794
+
795
+ ### Panel B — s′ generalisation (F1_seen / F1_unseen / Δ, seeds 13-15)
796
+
797
+ | condition | F1_seen | F1_unseen | Δ |
798
+ |---|---|---|---|
799
+ | C1 | 0.7570 | 0.7031 | +0.0539 |
800
+ | C2 | 0.6781 | 0.6674 | +0.0107 |
801
+ | C3 | 0.7004 | 0.7057 | -0.0053 |
802
+ | C4 | 0.6731 | 0.6687 | +0.0044 |
803
+ | C5 | 0.7606 | 0.7244 | +0.0362 |
804
+ | C6 | 0.7169 | 0.6865 | +0.0304 |
805
+ | C0 (untuned anchor, transfer) | 0.7118 | 0.6934 | — |
806
+
807
+ **The floor:** no poisoned-mining condition beats the untuned encoder on unseen functionality; only clean training (C1, and C5 pending its audit branch) converts fine-tuning into gains.
808
+
809
+ ### Panel C — mechanism bookkeeping
810
+
811
+ 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.
sync_manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": "phase01-v8",
3
- "synced_at_utc": "2026-10-21T04:43:59Z",
4
  "staged_files": [
5
  "artifacts/audit/audit_key.csv",
6
  "artifacts/audit/audit_labels.csv",
@@ -27,6 +27,7 @@
27
  "artifacts/pairs_train.tsv",
28
  "artifacts/pairs_valid.tsv",
29
  "artifacts/phase3_decisions.json",
 
30
  "artifacts/runs/C0_13/eval_metrics.json",
31
  "artifacts/runs/C1_13/eval_metrics.json",
32
  "artifacts/runs/C1_13/metrics.json",
@@ -298,7 +299,8 @@
298
  "artifacts/triples_C3.jsonl",
299
  "artifacts/triples_C4.jsonl",
300
  "artifacts/triples_C5.jsonl",
301
- "artifacts/triples_C6.jsonl"
 
302
  ],
303
  "excluded_patterns": [
304
  "sprime/*",
 
1
  {
2
  "version": "phase01-v8",
3
+ "synced_at_utc": "2026-10-21T04:44:49Z",
4
  "staged_files": [
5
  "artifacts/audit/audit_key.csv",
6
  "artifacts/audit/audit_labels.csv",
 
27
  "artifacts/pairs_train.tsv",
28
  "artifacts/pairs_valid.tsv",
29
  "artifacts/phase3_decisions.json",
30
+ "artifacts/phase4_decisions.json",
31
  "artifacts/runs/C0_13/eval_metrics.json",
32
  "artifacts/runs/C1_13/eval_metrics.json",
33
  "artifacts/runs/C1_13/metrics.json",
 
299
  "artifacts/triples_C3.jsonl",
300
  "artifacts/triples_C4.jsonl",
301
  "artifacts/triples_C5.jsonl",
302
+ "artifacts/triples_C6.jsonl",
303
+ "report/measurements.md"
304
  ],
305
  "excluded_patterns": [
306
  "sprime/*",