Title: impl(atlas): license capture at ingest — provenance table, detection cascade, policy re-evaluation (follow-on of #6053) · Issue #7608 · developing-today/code · GitHub
Open Graph Title: impl(atlas): license capture at ingest — provenance table, detection cascade, policy re-evaluation (follow-on of #6053) · Issue #7608 · developing-today/code
X Title: impl(atlas): license capture at ingest — provenance table, detection cascade, policy re-evaluation (follow-on of #6053) · Issue #7608 · developing-today/code
Description: Implementation follow-on for the design recorded for #6053 (design doc: doc/2026-11-08T09-15-51Z_design_atlas_license_capture_ingest/ — PR linked from #6053; parent gate #6024; substrate #3125; detection survey #5979). Scope Schema: add ...
Open Graph Description: Implementation follow-on for the design recorded for #6053 (design doc: doc/2026-11-08T09-15-51Z_design_atlas_license_capture_ingest/ — PR linked from #6053; parent gate #6024; substrate #3125; det...
X Description: Implementation follow-on for the design recorded for #6053 (design doc: doc/2026-11-08T09-15-51Z_design_atlas_license_capture_ingest/ — PR linked from #6053; parent gate #6024; substrate #3125; det...
Opengraph URL: https://github.com/developing-today/code/issues/7608
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"impl(atlas): license capture at ingest — provenance table, detection cascade, policy re-evaluation (follow-on of #6053)","articleBody":"Implementation follow-on for the design recorded for #6053 (design doc: `doc/2026-11-08T09-15-51Z_design_atlas_license_capture_ingest/` — PR linked from #6053; parent gate #6024; substrate #3125; detection survey #5979).\n\n## Scope\n\n1. **Schema**: add the `ingest_repo_provenance` table to the #3125 provenance registry exactly as designed (fields, PK (repo_id, ingest_generation), append-only). Migration + invariant tests for I1–I4 (PBT over the registry: generation monotonicity, D.6 flag derivation, SPDX parseability).\n2. **Detection cascade at ingest**: GitHub license API → licensee → ScanCode (notice files only) → manifest fields → manual, recording `detection_source`, `detection_evidence` (notice file path + content hash), and `detector_version` per row. Every external ingest writes its provenance row in the same transaction window as its first chunks (I1).\n3. **D.6 derivation**: `d6_applicable` computed from `has_license_notice` only (`no`/`contested`); `yes` remains unemitted until the #6024 lawyer answer lands.\n4. **Re-evaluation surface**: implement the §5 latest-generation difference query against a versioned `policy_eval` stub (zone/license/flag inputs), plus the tombstone-generation purge-candidate listing.\n\n## Acceptance\n\n- Ingesting an external repo with a detectable license produces a provenance row whose SPDX expression, evidence hash, and zone match a hand-checked fixture set (incl. an escaped edge: unlicensed repo → `license_spdx` NULL row, `d6_applicable = no`).\n- A detector-version bump re-evaluates from recorded evidence without network fetches (test with network disabled).\n- The policy difference query returns exactly the repos whose treatment changes between two rule versions on a fixture registry.\n\nDesign authority: the #6053 design record — deviations need a design note amendment, not a silent change.\n\n## Acceptance criteria\n\n- Ingesting an external repo with a detectable license writes an `ingest_repo_provenance` row (PK (repo_id, ingest_generation), append-only) in the same transaction window as its first chunks, with SPDX expression, evidence hash, and zone matching a hand-checked fixture set — including the escaped edge: unlicensed repo → `license_spdx` NULL row, `d6_applicable = no`.\n- Invariant tests cover I1–I4 with named oracles (generation monotonicity, D.6 flag derivation from `has_license_notice` only, SPDX parseability) — PBT over the registry where the invariants allow.\n- A detector-version bump re-evaluates from recorded evidence with the network disabled (test proves it).\n- The §5 latest-generation difference query against the versioned `policy_eval` stub returns exactly the repos whose treatment changes between two rule versions on a fixture registry, and the tombstone-generation purge-candidate listing works.\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-08T09:18:56Z","url":"https://github.com/developing-today/code/issues/7608"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:89640bcf-85bf-a30c-cea5-03f2e6c2c069 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E73A:2297AD:331269:42CC8F:6B06173B |
| html-safe-nonce | 53cea6dabffcafc8dad12b2c4d3fb75710ba8796336ec575c3d48d02d124dd28 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzNBOjIyOTdBRDozMzEyNjk6NDJDQzhGOjZCMDYxNzNCIiwidmlzaXRvcl9pZCI6IjE2MDU2MzQwNjc1NDA2MTI5MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f54c771595fcf6617ae725e6e9bc3faad9af28cd0ccf154c08f069db2e4ece47 |
| hovercard-subject-tag | issue:6269480198 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7608/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c9a363b5b90c7878890512228a408e4fc96a88c09af0f952a5a5d6e949f019b5/developing-today/code/issues/7608 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c9a363b5b90c7878890512228a408e4fc96a88c09af0f952a5a5d6e949f019b5/developing-today/code/issues/7608 |
| og:image:alt | Implementation follow-on for the design recorded for #6053 (design doc: doc/2026-11-08T09-15-51Z_design_atlas_license_capture_ingest/ — PR linked from #6053; parent gate #6024; substrate #3125; det... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | developing-today[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width