gowtham0992 commited on
Commit
0dbcdd9
·
verified ·
1 Parent(s): b4c26ee

Add Codex judge evidence

Browse files
Files changed (4) hide show
  1. AGENT_TRACE.md +33 -3
  2. CODEX_BUILD_LOG.md +42 -2
  3. CODEX_JUDGE_EVIDENCE.md +87 -0
  4. README.md +4 -3
AGENT_TRACE.md CHANGED
@@ -44,12 +44,12 @@ Codex helped:
44
  Current decisions:
45
 
46
  - Deployed model: `openbmb/MiniCPM5-1B`.
47
- - Deployed adapter: `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v4`.
48
  - Deployed backend: Transformers on ZeroGPU.
49
  - Local/eval model path: llama-cpp-python remains available for GGUF models.
50
  - Fine-tuning: completed through a Modal-trained MiniCPM5-1B LoRA adapter.
51
  - Primary badges: Off-Brand, Sharing is Caring, Field Notes.
52
- - Defensible badges: Off the Grid and Tiny Titan, documented carefully.
53
  - Sponsor target: OpenBMB, because MiniCPM is central to the app.
54
 
55
  ## 2026-06-07
@@ -57,7 +57,7 @@ Current decisions:
57
  Codex helped:
58
 
59
  - run and compare MiniCPM5-1B LoRA evals against earlier 8B adapter evidence
60
- - promote `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v4` as the final deployed adapter
61
  - commit 320-case and 394-case hard guarded eval reports
62
  - update README, setup, eval, training, and honest-submission evidence
63
  - refine the custom Gradio Server UI for readability, elderly-friendly wording, copy-to-trusted-person behavior, and final model disclosure
@@ -71,3 +71,33 @@ Final model evidence:
71
  - `0` unsafe action violations
72
  - `0` invalid predictions
73
  - `0` model errors
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  Current decisions:
45
 
46
  - Deployed model: `openbmb/MiniCPM5-1B`.
47
+ - Deployed adapter: `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8`.
48
  - Deployed backend: Transformers on ZeroGPU.
49
  - Local/eval model path: llama-cpp-python remains available for GGUF models.
50
  - Fine-tuning: completed through a Modal-trained MiniCPM5-1B LoRA adapter.
51
  - Primary badges: Off-Brand, Sharing is Caring, Field Notes.
52
+ - Defensible badges: Tiny Titan and Well-Tuned, documented carefully.
53
  - Sponsor target: OpenBMB, because MiniCPM is central to the app.
54
 
55
  ## 2026-06-07
 
57
  Codex helped:
58
 
59
  - run and compare MiniCPM5-1B LoRA evals against earlier 8B adapter evidence
60
+ - promote `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v4` as the first strong 1B deployed adapter candidate
61
  - commit 320-case and 394-case hard guarded eval reports
62
  - update README, setup, eval, training, and honest-submission evidence
63
  - refine the custom Gradio Server UI for readability, elderly-friendly wording, copy-to-trusted-person behavior, and final model disclosure
 
71
  - `0` unsafe action violations
72
  - `0` invalid predictions
73
  - `0` model errors
74
+
75
+ ## 2026-06-09 / 2026-06-10
76
+
77
+ Codex helped:
78
+
79
+ - add fresh public-pattern calibration data for wrong-number crypto/trading, marketplace money movement, task/job scams, MFA-code theft, toll/tax/benefit notices, and safe family/logistics contrasts
80
+ - train and evaluate the MiniCPM5-1B LoRA v8 path on Modal
81
+ - diagnose preemption during a long Modal eval and preserve the final successful run as public evidence
82
+ - tighten the deterministic safety guard for wrong-number investment grooming without over-promoting ordinary family/school logistics
83
+ - add regression tests for guard behavior
84
+ - promote `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8` as the final deployed adapter
85
+ - update the Space README, model card, dataset card, collection notes, and final submission evidence so v8 is consistently framed as final
86
+ - add `CODEX_JUDGE_EVIDENCE.md` to map Codex-attributed commits to files, final metrics, and public artifacts
87
+
88
+ Final v8 model evidence:
89
+
90
+ - 632-case hard guarded eval: `579/632` risk accuracy (`91.61%`)
91
+ - `0` dangerous-as-safe
92
+ - `0` dangerous-as-needs-check
93
+ - `0` safe-as-dangerous-or-suspicious
94
+ - `0` unsafe action violations
95
+ - `0` invalid predictions
96
+ - `0` model errors
97
+
98
+ Public final artifacts:
99
+
100
+ - Space: https://huggingface.co/spaces/build-small-hackathon/jawbreaker
101
+ - Model: https://huggingface.co/build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8
102
+ - Dataset/eval bundle: https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data
103
+ - Collection: https://huggingface.co/collections/build-small-hackathon/jawbreaker-6a263632dcd0b6d41ca914ff
CODEX_BUILD_LOG.md CHANGED
@@ -67,9 +67,9 @@ Measured results:
67
 
68
  ## MiniCPM5-1B LoRA v4
69
 
70
- Codex helped turn the Tiny Titan experiment into the final model path.
71
 
72
- The final deployed path is:
73
 
74
  - Base model: `openbmb/MiniCPM5-1B`
75
  - Adapter: `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v4`
@@ -90,3 +90,43 @@ The completed hard guarded eval evidence:
90
  - `0` model errors
91
 
92
  Codex also helped add the committed eval reports under `eval/reports/`, update the Space and GitHub code defaults, and keep the Hugging Face Space history separate from GitHub history through cherry-picked Space sync commits.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
  ## MiniCPM5-1B LoRA v4
69
 
70
+ Codex helped turn the Tiny Titan experiment into the first strong MiniCPM5-1B production candidate.
71
 
72
+ The v4 path was:
73
 
74
  - Base model: `openbmb/MiniCPM5-1B`
75
  - Adapter: `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v4`
 
90
  - `0` model errors
91
 
92
  Codex also helped add the committed eval reports under `eval/reports/`, update the Space and GitHub code defaults, and keep the Hugging Face Space history separate from GitHub history through cherry-picked Space sync commits.
93
+
94
+ ## MiniCPM5-1B LoRA v8
95
+
96
+ Codex helped extend the 1B path after fresh scam-pattern evals exposed two failure modes:
97
+
98
+ - wrong-number crypto / gold / trading grooming could be softened below `dangerous`
99
+ - ordinary family, school, pharmacy, and logistics messages could be over-called
100
+
101
+ The v8 path added:
102
+
103
+ - `training/generate_v7_data.py` and `training/generate_v8_data.py` for fresh public-pattern and failure-driven calibration
104
+ - `training/data/train_v8.jsonl`, `dev_v8.jsonl`, and `test_v8.jsonl`
105
+ - `eval/hard_v8_eval.jsonl`
106
+ - safety-guard calibration for wrong-number investment grooming
107
+ - regression tests in `tests/test_app_guard.py`
108
+ - the final report `eval/reports/jawbreaker-minicpm5-1b-lora-v8-hard632-safetyguard-v4.json`
109
+ - `MODEL_CARD_MINICPM5_LORA_V8.md`
110
+ - `CODEX_JUDGE_EVIDENCE.md`
111
+
112
+ The final deployed path is:
113
+
114
+ - Base model: `openbmb/MiniCPM5-1B`
115
+ - Adapter: `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8`
116
+ - Runtime: Transformers on ZeroGPU
117
+ - Training and eval: Modal A100
118
+
119
+ The completed hard guarded eval evidence:
120
+
121
+ - 632 cases
122
+ - `91.61%` risk accuracy
123
+ - `88.77%` scam type accuracy
124
+ - `90.69%` mean tactic recall
125
+ - `0` dangerous-as-safe
126
+ - `0` dangerous-as-needs-check
127
+ - `0` safe-as-dangerous-or-suspicious
128
+ - `0` unsafe action violations
129
+ - `0` invalid predictions
130
+ - `0` model errors
131
+
132
+ Codex also helped update the Space README, model card, dataset card, collection notes, and public documentation so v8 is presented as the final judged model and v4 is retained as comparison evidence.
CODEX_JUDGE_EVIDENCE.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # OpenAI Codex Judge Evidence
2
+
3
+ This file is a compact evidence map for the OpenAI/Codex track. It is meant to make the Codex contribution auditable from the public repository without relying on private chat logs.
4
+
5
+ ## What Codex Contributed
6
+
7
+ Codex materially contributed across the product, model, eval, and submission surface:
8
+
9
+ - App runtime and UI: `app.py`, `style.css`, `jawbreaker/render.py`
10
+ - Scam analysis contract: `jawbreaker/schema.py`, `jawbreaker/analyzers.py`, `jawbreaker/prompt.py`
11
+ - Safety guard and schema repair: `jawbreaker/analyzers.py`, `tests/test_app_guard.py`, `tests/test_schema.py`
12
+ - Eval harness: `eval/run_eval.py`, `eval/README.md`, `eval/reports/`
13
+ - Modal training/eval workflow: `training/train_lora.py`, `training/modal_train.py`, `training/modal_eval.py`
14
+ - Data generation/calibration: `training/generate_jawbreaker_data.py`, `training/generate_v3_data.py`, `training/generate_v4_data.py`, `training/generate_v5_data.py`, `training/generate_v6_data.py`, `training/generate_v7_data.py`, `training/generate_v8_data.py`
15
+ - Public evidence packaging: `README.md`, `MODEL_CARD_MINICPM5_LORA_V8.md`, `CODEX_BUILD_LOG.md`, `AGENT_TRACE.md`, `FIELD_NOTES.md`, `HONEST_SUBMISSION.md`
16
+
17
+ ## Commit Evidence
18
+
19
+ Recent Codex-attributed commits include:
20
+
21
+ | Commit | Evidence |
22
+ | --- | --- |
23
+ | `28030af` | Adds the final MiniCPM5-1B LoRA v8 model card. |
24
+ | `f468585` | Promotes v8 as the final safety-calibrated model and commits the 632-case report. |
25
+ | `7a67ead` | Covers indirect wrong-number investment grooming guard gaps. |
26
+ | `7b5bbb2` | Calibrates wrong-number investment guard behavior. |
27
+ | `74617f3` | Tightens safety guard calibration for benign family/school messages. |
28
+ | `1b67b5e` | Adds v8 failure-driven calibration data. |
29
+ | `d5215ed` | Extends Modal eval timeout for larger guarded evals. |
30
+ | `3407348` | Adds fresh public-pattern calibration data. |
31
+ | `05e76bd` | Publishes the custom kitchen-table UI. |
32
+
33
+ Each listed commit includes:
34
+
35
+ ```text
36
+ Co-authored-by: Codex <codex@openai.com>
37
+ ```
38
+
39
+ ## Final Model Decision
40
+
41
+ Final judged model:
42
+
43
+ - Base: `openbmb/MiniCPM5-1B`
44
+ - Adapter: `build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8`
45
+ - Live app: https://huggingface.co/spaces/build-small-hackathon/jawbreaker
46
+ - Model card: https://huggingface.co/build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8
47
+ - Dataset/eval bundle: https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data
48
+
49
+ Final guarded Modal eval:
50
+
51
+ - Suite: `eval/hard_v8_eval.jsonl`
52
+ - Report: `eval/reports/jawbreaker-minicpm5-1b-lora-v8-hard632-safetyguard-v4.json`
53
+ - Cases: `632`
54
+ - Risk accuracy: `579/632` (`91.61%`)
55
+ - Scam type accuracy: `561/632` (`88.77%`)
56
+ - Mean tactic recall: `90.69%`
57
+ - Dangerous as safe: `0`
58
+ - Dangerous as needs-check: `0`
59
+ - Safe as dangerous or suspicious: `0`
60
+ - Unsafe action violations: `0`
61
+ - Invalid predictions: `0`
62
+ - Model errors: `0`
63
+
64
+ ## Why This Matters For Codex Judging
65
+
66
+ The Codex contribution was not limited to boilerplate. Codex helped create the core engineering loop:
67
+
68
+ 1. Build a working Gradio/Gradio Server scam-defense app.
69
+ 2. Define a strict JSON contract for the small model.
70
+ 3. Generate and publish synthetic/sanitized training and eval data.
71
+ 4. Train and evaluate MiniCPM LoRA adapters through Modal.
72
+ 5. Identify failure modes from eval output.
73
+ 6. Add targeted calibration data and deterministic safety guards.
74
+ 7. Re-run hard evals and promote the safer model.
75
+ 8. Package the final app, model, dataset, collection, model card, and README evidence.
76
+
77
+ ## Local Verification
78
+
79
+ Useful checks:
80
+
81
+ ```bash
82
+ git log --format=full --grep='Co-authored-by: Codex'
83
+ python3 -m pytest tests/test_app_guard.py tests/test_schema.py tests/test_eval_dataset.py
84
+ python3 -m json.tool eval/reports/jawbreaker-minicpm5-1b-lora-v8-hard632-safetyguard-v4.json
85
+ ```
86
+
87
+ The public repository, Space, model card, dataset, and collection are the intended judge-facing evidence. Private chat transcripts are not required to verify the build.
README.md CHANGED
@@ -49,7 +49,7 @@ Scam defense for someone you love.
49
  - **Backyard AI:** a practical scam-defense safety card for non-technical people and their families.
50
  - **Best MiniCPM Build / Tiny Titan / Well-Tuned:** `openbmb/MiniCPM5-1B` + [Jawbreaker LoRA v8](https://huggingface.co/build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8), evaluated on a 632-case hard suite with **0 dangerous undercalls** and **0 safe overcalls**.
51
  - **Best Use of Modal:** Modal A100 was used for LoRA training and guarded eval runs; see [`training/modal_train.py`](training/modal_train.py), [`training/modal_eval.py`](training/modal_eval.py), the [`632-case v8 report`](eval/reports/jawbreaker-minicpm5-1b-lora-v8-hard632-safetyguard-v4.json), plus the earlier [`394-case v4 report`](eval/reports/jawbreaker-minicpm5-1b-lora-v4-hard394-guarded.json).
52
- - **Best Use of Codex:** Codex-attributed commits plus [`AGENT_TRACE.md`](AGENT_TRACE.md) and [`CODEX_BUILD_LOG.md`](CODEX_BUILD_LOG.md), with file-level contribution notes below.
53
  - **Off Brand / Sharing is Caring / Field Notes:** custom candy-brutalist Gradio UI, public [dataset/eval bundle](https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data), and [`FIELD_NOTES.md`](FIELD_NOTES.md).
54
  - **Submission package:** [Live Space](https://huggingface.co/spaces/build-small-hackathon/jawbreaker), [model](https://huggingface.co/build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8), [dataset](https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data), and [collection](https://huggingface.co/collections/build-small-hackathon/jawbreaker-6a263632dcd0b6d41ca914ff).
55
 
@@ -73,7 +73,7 @@ The problem is specific: scam messages now arrive as urgent, personal, plausible
73
  - Public dataset/eval bundle: https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data
74
  - Hugging Face collection: https://huggingface.co/collections/build-small-hackathon/jawbreaker-6a263632dcd0b6d41ca914ff
75
 
76
- ## Built With Codex
77
 
78
  This project is being built with OpenAI Codex in the Codex desktop app. Codex is being used for planning, implementation, eval design, Gradio UI iteration, testing, deployment, and submission documentation.
79
 
@@ -81,6 +81,7 @@ Codex evidence:
81
 
82
  - Public GitHub repo linked from this Space README.
83
  - Codex-attributed commits are included for build work.
 
84
  - Codex scaffolded and iterated on `app.py`, the custom Gradio Server UI, `jawbreaker/` analyzer/schema/render modules, `eval/run_eval.py`, `training/train_lora.py`, `training/modal_train.py`, `training/modal_eval.py`, and the public submission docs.
85
  - `AGENT_TRACE.md` records the development process.
86
  - `FIELD_NOTES.md` records product and technical decisions.
@@ -152,7 +153,7 @@ Training/eval artifacts:
152
  | --- | --- | --- |
153
  | Backyard AI | Targeted | Practical scam-defense app for someone close, with a focused safety workflow. |
154
  | Best MiniCPM Build | Targeted | `openbmb/MiniCPM5-1B` is the core runtime model, with a published Jawbreaker LoRA adapter. |
155
- | Best Use of Codex | Targeted | Public GitHub repo includes Codex-attributed commits plus `AGENT_TRACE.md` and `CODEX_BUILD_LOG.md`. |
156
  | Best Use of Modal | Targeted | Modal A100 was used for PEFT/LoRA training and guarded eval runs across the MiniCPM calibration path; see `training/modal_train.py`, `training/modal_eval.py`, and the committed 632/394/320-case eval report files. |
157
  | Tiny Titan | Targeted | The deployed model is `openbmb/MiniCPM5-1B`, well under the 4B badge threshold. |
158
  | Off Brand | Targeted | Custom Gradio UI beyond the stock component look. |
 
49
  - **Backyard AI:** a practical scam-defense safety card for non-technical people and their families.
50
  - **Best MiniCPM Build / Tiny Titan / Well-Tuned:** `openbmb/MiniCPM5-1B` + [Jawbreaker LoRA v8](https://huggingface.co/build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8), evaluated on a 632-case hard suite with **0 dangerous undercalls** and **0 safe overcalls**.
51
  - **Best Use of Modal:** Modal A100 was used for LoRA training and guarded eval runs; see [`training/modal_train.py`](training/modal_train.py), [`training/modal_eval.py`](training/modal_eval.py), the [`632-case v8 report`](eval/reports/jawbreaker-minicpm5-1b-lora-v8-hard632-safetyguard-v4.json), plus the earlier [`394-case v4 report`](eval/reports/jawbreaker-minicpm5-1b-lora-v4-hard394-guarded.json).
52
+ - **OpenAI / Best Use of Codex:** Codex-attributed commits plus [`CODEX_JUDGE_EVIDENCE.md`](CODEX_JUDGE_EVIDENCE.md), [`AGENT_TRACE.md`](AGENT_TRACE.md), and [`CODEX_BUILD_LOG.md`](CODEX_BUILD_LOG.md), with file-level contribution notes below.
53
  - **Off Brand / Sharing is Caring / Field Notes:** custom candy-brutalist Gradio UI, public [dataset/eval bundle](https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data), and [`FIELD_NOTES.md`](FIELD_NOTES.md).
54
  - **Submission package:** [Live Space](https://huggingface.co/spaces/build-small-hackathon/jawbreaker), [model](https://huggingface.co/build-small-hackathon/jawbreaker-minicpm5-1b-lora-v8), [dataset](https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data), and [collection](https://huggingface.co/collections/build-small-hackathon/jawbreaker-6a263632dcd0b6d41ca914ff).
55
 
 
73
  - Public dataset/eval bundle: https://huggingface.co/datasets/build-small-hackathon/jawbreaker-scam-defense-data
74
  - Hugging Face collection: https://huggingface.co/collections/build-small-hackathon/jawbreaker-6a263632dcd0b6d41ca914ff
75
 
76
+ ## Built With OpenAI Codex
77
 
78
  This project is being built with OpenAI Codex in the Codex desktop app. Codex is being used for planning, implementation, eval design, Gradio UI iteration, testing, deployment, and submission documentation.
79
 
 
81
 
82
  - Public GitHub repo linked from this Space README.
83
  - Codex-attributed commits are included for build work.
84
+ - `CODEX_JUDGE_EVIDENCE.md` maps Codex-attributed commits to concrete files, model/eval decisions, and final public artifacts.
85
  - Codex scaffolded and iterated on `app.py`, the custom Gradio Server UI, `jawbreaker/` analyzer/schema/render modules, `eval/run_eval.py`, `training/train_lora.py`, `training/modal_train.py`, `training/modal_eval.py`, and the public submission docs.
86
  - `AGENT_TRACE.md` records the development process.
87
  - `FIELD_NOTES.md` records product and technical decisions.
 
153
  | --- | --- | --- |
154
  | Backyard AI | Targeted | Practical scam-defense app for someone close, with a focused safety workflow. |
155
  | Best MiniCPM Build | Targeted | `openbmb/MiniCPM5-1B` is the core runtime model, with a published Jawbreaker LoRA adapter. |
156
+ | OpenAI / Best Use of Codex | Targeted | Public GitHub repo includes Codex-attributed commits plus `CODEX_JUDGE_EVIDENCE.md`, `AGENT_TRACE.md`, and `CODEX_BUILD_LOG.md`. |
157
  | Best Use of Modal | Targeted | Modal A100 was used for PEFT/LoRA training and guarded eval runs across the MiniCPM calibration path; see `training/modal_train.py`, `training/modal_eval.py`, and the committed 632/394/320-case eval report files. |
158
  | Tiny Titan | Targeted | The deployed model is `openbmb/MiniCPM5-1B`, well under the 4B badge threshold. |
159
  | Off Brand | Targeted | Custom Gradio UI beyond the stock component look. |