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|
+
## Metadata
|
| 4 |
+
- Timestamp (UTC): 2026-04-21T12:33:25Z
|
| 5 |
+
- Scope:
|
| 6 |
+
- /opt/ethno-api/ethno-enrichment/USDA-Phytochemical-Database-JSON v2
|
| 7 |
+
- /opt/ethno-api/nexus_api/pseo
|
| 8 |
+
- Live URLs:
|
| 9 |
+
- https://ethno-api.com/
|
| 10 |
+
- https://ethno-api.com/enterprise.html
|
| 11 |
+
- Constraints honored:
|
| 12 |
+
- no force push
|
| 13 |
+
- no reset --hard
|
| 14 |
+
- additive/corrective commits only
|
| 15 |
+
|
| 16 |
+
## Checkpoint 0 - Soll/Ist before correction
|
| 17 |
+
|
| 18 |
+
| Topic | Soll | Ist before correction | Evidence |
|
| 19 |
+
|---|---|---|---|
|
| 20 |
+
| Remote heads | origin/main == hf/main (or explicit divergence) | origin/main=dea08aebe0e7381d108ebd452c456f102693770c, hf/main=ab3a21ced9f43637054b7d71fbe4f97d22e319ec | `git ls-remote origin refs/heads/main`, `git ls-remote hf refs/heads/main` |
|
| 21 |
+
| Merge relation | deterministic relation known | merge-base=dea08aebe0e7381d108ebd452c456f102693770c, origin ancestor of hf | `git merge-base`, `git merge-base --is-ancestor` |
|
| 22 |
+
| Canonical local landing source | should match live markers | /opt/ethno-api/nexus_api/pseo/enterprise.html had DOI_NEW=0, DOI_OLD=4, V240=0, V231=11, field markers=0 | `grep -o ... | wc -l` |
|
| 23 |
+
| Version authority | current version should reflect active release | `Current version: v2.3.1 (April 2026)` while v2.4.0 changelog present | `grep -n 'Current version:' UPDATE_POLICY.md` |
|
| 24 |
+
|
| 25 |
+
## Actions executed
|
| 26 |
+
|
| 27 |
+
1. Deterministic baseline measurement (git + live + local markers).
|
| 28 |
+
2. Remote divergence handling without rewrite:
|
| 29 |
+
- fast-forward local main to hf/main: `git merge --ff-only hf/main`
|
| 30 |
+
- result local head: `ab3a21ced9f43637054b7d71fbe4f97d22e319ec`
|
| 31 |
+
3. Version authority correction:
|
| 32 |
+
- file: UPDATE_POLICY.md
|
| 33 |
+
- change: `Current version: v2.3.1` -> `Current version: v2.4.0`
|
| 34 |
+
- commit: `dba76475dd07e3c4703b142000a757d5f991d340`
|
| 35 |
+
4. Source-of-truth correction for landing page:
|
| 36 |
+
- canonical file set to: /opt/ethno-api/nexus_api/pseo/enterprise.html
|
| 37 |
+
- updated from live enterprise response and re-verified with marker counts.
|
| 38 |
+
5. Pushes (non-destructive):
|
| 39 |
+
- `git push origin main`
|
| 40 |
+
- `git push hf main`
|
| 41 |
+
|
| 42 |
+
## Checkpoint 1 - Remote status after correction
|
| 43 |
+
|
| 44 |
+
Commands:
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
git rev-parse HEAD
|
| 48 |
+
GIT_TERMINAL_PROMPT=0 git ls-remote origin refs/heads/main
|
| 49 |
+
GIT_TERMINAL_PROMPT=0 git ls-remote hf refs/heads/main
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
Measured:
|
| 53 |
+
- HEAD: dba76475dd07e3c4703b142000a757d5f991d340
|
| 54 |
+
- origin/main: dba76475dd07e3c4703b142000a757d5f991d340
|
| 55 |
+
- hf/main: dba76475dd07e3c4703b142000a757d5f991d340
|
| 56 |
+
|
| 57 |
+
Result:
|
| 58 |
+
- Sync achieved, same head on both remotes.
|
| 59 |
+
|
| 60 |
+
## Checkpoint 2 - Landing source-of-truth vs live
|
| 61 |
+
|
| 62 |
+
Canonical local file:
|
| 63 |
+
- /opt/ethno-api/nexus_api/pseo/enterprise.html
|
| 64 |
+
|
| 65 |
+
Measured local canonical markers:
|
| 66 |
+
- BYTES=89560
|
| 67 |
+
- DOI_NEW=4
|
| 68 |
+
- DOI_OLD=0
|
| 69 |
+
- V240=11
|
| 70 |
+
- V231=0
|
| 71 |
+
- partner_cid=2
|
| 72 |
+
- inchi_key=2
|
| 73 |
+
- iupac_verified=2
|
| 74 |
+
- partner_match_method=2
|
| 75 |
+
|
| 76 |
+
Measured live markers:
|
| 77 |
+
- https://ethno-api.com/
|
| 78 |
+
- BYTES=89560
|
| 79 |
+
- DOI_NEW=4, DOI_OLD=0, V240=11, V231=0
|
| 80 |
+
- partner_cid=2, inchi_key=2, iupac_verified=2, partner_match_method=2
|
| 81 |
+
- https://ethno-api.com/enterprise.html
|
| 82 |
+
- BYTES=89560
|
| 83 |
+
- DOI_NEW=4, DOI_OLD=0, V240=11, V231=0
|
| 84 |
+
- partner_cid=2, inchi_key=2, iupac_verified=2, partner_match_method=2
|
| 85 |
+
|
| 86 |
+
Note on SHA drift:
|
| 87 |
+
- Marker and byte-size alignment is exact.
|
| 88 |
+
- Full-file SHA differs between requests due Cloudflare dynamic challenge token injection in response body tail.
|
| 89 |
+
- This was validated by `cmp -l` with only 14 differing bytes near the CF token segment.
|
| 90 |
+
|
| 91 |
+
## Checkpoint 3 - Version and policy consistency
|
| 92 |
+
|
| 93 |
+
Command:
|
| 94 |
+
|
| 95 |
+
```bash
|
| 96 |
+
grep -n 'Current version:' UPDATE_POLICY.md
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
Measured:
|
| 100 |
+
- `15:Current version: v2.4.0 (April 2026)`
|
| 101 |
+
|
| 102 |
+
Result:
|
| 103 |
+
- Version authority now consistent with v2.4.0 release state.
|
| 104 |
+
|
| 105 |
+
## SC1-SC6 claim matrix
|
| 106 |
+
|
| 107 |
+
| SC | Soll | Measurement command(s) | Ist | Result |
|
| 108 |
+
|---|---|---|---|---|
|
| 109 |
+
| SC1 | HF Dataset Viewer available | `curl -4 -s "https://datasets-server.huggingface.co/is-valid?dataset=wirthal1990-tech/USDA-Phytochemical-Database-JSON"` | `{... "viewer":true, "search":true, "filter":true ...}` | PASS |
|
| 110 |
+
| SC2 | 16-field marker presence on live (new 4 fields each x2) | `grep -o 'partner_cid\|inchi_key\|iupac_verified\|partner_match_method'` on live body | each marker count = 2 | PASS |
|
| 111 |
+
| SC3 | New DOI present, old DOI absent | `grep -o '19660107'` and `grep -o '19265853'` on live + repo files | live: 4/0, README: 6/0, llms: 3/0, UPDATE_POLICY: 3/0, noise list: 1/0 | PASS |
|
| 112 |
+
| SC4 | Build vs Buy EUR values present | `grep -o '16,900'`, `grep -o '11,300'` on live; `grep -n '16,900\|11,300' README.md` | live: 1 and 1, README line 168 shows `~€16,900 / ~€11,300` | PASS |
|
| 113 |
+
| SC5 | Repo update consistency | marker counts in README/llms/UPDATE_POLICY/noise_exclusion/METHODOLOGY + unified remote head | counts consistent and both remotes on same head | PASS |
|
| 114 |
+
| SC6 | No v2.3.1 on live landing | `grep -o 'v2\.3\.1'` on live URLs | 0 | PASS |
|
| 115 |
+
|
| 116 |
+
## Triple-SC protocol status
|
| 117 |
+
|
| 118 |
+
### SC1 Structural
|
| 119 |
+
- Required files present in dataset repo.
|
| 120 |
+
- Canonical landing source named and present: /opt/ethno-api/nexus_api/pseo/enterprise.html.
|
| 121 |
+
- Persistent report created: SC_VERIFICATION_v2.4.0_2026-04-21.md.
|
| 122 |
+
- Status: PASS.
|
| 123 |
+
|
| 124 |
+
### SC2 Numerical
|
| 125 |
+
- Remote hashes measured and equal post-correction.
|
| 126 |
+
- DOI/version/field counts documented with command method.
|
| 127 |
+
- Live byte sizes measured for both production URLs.
|
| 128 |
+
- Status: PASS.
|
| 129 |
+
|
| 130 |
+
### SC3 Live
|
| 131 |
+
- Production URLs verified directly via curl.
|
| 132 |
+
- HF datasets-server endpoint verified live.
|
| 133 |
+
- Status: PASS.
|
| 134 |
+
|
| 135 |
+
## Open risks
|
| 136 |
+
- LOW: Full-file SHA comparison against live is unstable because Cloudflare injects per-request challenge token bytes into HTML tail. Marker-level and byte-size checks remain reproducible.
|
| 137 |
+
|
| 138 |
+
## Final state summary
|
| 139 |
+
- GitHub main and HF main synchronized at: dba76475dd07e3c4703b142000a757d5f991d340
|
| 140 |
+
- Canonical local landing source aligned to live markers and byte size.
|
| 141 |
+
- SC1-SC6 all PASS with numeric evidence.
|