Skip to content

fix(release): address code-review findings on the main merge - #169

Merged
Polichinel merged 1 commit into
developmentfrom
fix/release-doc-accuracy
Aug 1, 2026
Merged

Polichinel merged 1 commit into
developmentfrom
fix/release-doc-accuracy

Conversation

@Polichinel

Copy link
Copy Markdown
Collaborator

Findings from /code-review max on #168 (development → main). Both review agents grounded their findings in verification rather than inference, and one of them is a genuine pre-release defect.

The one that matters: the first release was guaranteed to fail

publish_package.yml's version gate, checked concretely rather than reasoned about:

curl on an unpublished package  →  HTTP 404, body {"message": "Not Found"}
jq -r .info.version             →  the literal string "null", exit 0
parse("null")                   →  InvalidVersion, uncaught

And this merge made it worse. main today compares against views-pipeline-core — a published package — so it fails cleanly with AssertionError. After the merge it crashes with a traceback that reads like a version-parsing bug rather than "not published yet".

Fixed with .info.version // empty plus an explicit first-release branch that logs and skips. Register C-09 closes — it recorded the wrong-package half, and this is the half that was hiding behind it.

Docs: main is about to become canonical

The doc its own index calls "READ FIRST" described a structure that has not existed for weeks.

  • role_and_seams.md — the lifecycle table described _append_metadata joining geography (deleted S1 — Delete the retired delivery path; refuse an incomplete config #149), a null-gate in _validate (moved to build time), and _clip_observed_history (deleted). Seam A named unfao/extraction.py (deleted S3 — Collapse the two extraction seams into one #151). Seam B said "a views-frames frame cannot flow end-to-end through this repo today" and called frames.py an unused adapter hardcoding S=1 — it is the live constructor and takes a declared (N, S). The quick map showed no contract/ package at all.
  • README.md — the tree showed two deleted modules and omitted contract/; the config section claimed "there is no startup validation yet" when appwrite_env has validated fail-loud since [þing-01] Kill the implicit ensemble-dotenv borrow; entry validation per D6 #134; the dependency table said "the live path is still pandas".
  • ADR-012's Rationale, docs/ADRs/README.md, docs/architecture/README.md, the CIC — each still carried a claim its own parent document had already retracted.

Seam A's correction is worth reading rather than skimming: the invariants needed no change when the pandas seam was retired — only which module fed them. That is the design the section claims, now evidenced instead of restated.

Deliberately untouched: falsification_campaign.md, cross_repo_integration_report.md, ADR-011_implementation_assessment.md reference deleted methods inside dated historical records, which is what those documents are for.

Verified safe — recorded because a release merge should say what it checked

check result
Main-only content that would be lost zero non-merge commits on main absent from development
Workflows referencing unfao/ paths, git-lfs, .gitattributes none; every checkout defaults lfs: false, so CI never downloaded the 774 MB bundle — deleting it cannot break a job
Branch-behind gate passes; main is a strict ancestor of development
Can merging publish? no — publish_package.yml triggers only on release: published
run_pytest.yml its test step is commented out on main today; this merge makes main actually run its tests for the first time

ruff clean · 305 passed, 41 xfailed · 5 known local pyarrow byte-parity failures; CI authoritative.

Register: 71 concerns, 24 open, 47 resolved.

🤖 Generated with Claude Code

Findings from /code-review max on PR #168 (development -> main). Two agents,
both grounded in verification rather than inference.

THE ONE THAT MATTERS: the publish workflow's version gate would have failed the
FIRST EVER release of this package, and this merge made the failure worse.

  curl on an unpublished package -> HTTP 404, body {"message": "Not Found"}
  jq -r .info.version            -> the literal string "null", exit 0
  parse("null")                  -> InvalidVersion, uncaught

main currently compares against views-pipeline-core (a published package), so it
failed cleanly with AssertionError. After the merge it crashes with a traceback
that reads like a version-parsing bug rather than "not published yet". Each step
was checked concretely — the 404 body, jq's output and exit code, and parse()'s
exception — not assumed. Fixed with `.info.version // empty` plus an explicit
first-release branch. Register C-09 closes: it recorded the wrong-package half,
and this is the half that was hiding behind it.

DOCS: main is about to become canonical, and the doc its own index calls
"READ FIRST" described a structure that has not existed for weeks.

- docs/architecture/role_and_seams.md — the lifecycle table described
  _append_metadata joining geography (deleted #149), a null-gate in _validate
  (moved to build time), and _clip_observed_history (deleted). Seam A named
  unfao/extraction.py (deleted #151). Seam B said "a views-frames frame cannot
  flow end-to-end through this repo today" and called frames.py an unused adapter
  hardcoding S=1 — it is the live constructor and takes declared (N, S). The
  quick map showed no contract/ package at all.
- README.md — the tree showed delivery/identity.py and unfao/extraction.py, both
  deleted, and omitted contract/ entirely; the config section claimed "there is
  no startup validation yet" when appwrite_env has validated fail-loud since
  #134; the dependency table said "the live path is still pandas".
- ADR-012's Rationale still listed unfao/extraction.py as the seam though its own
  table had been corrected; docs/ADRs/README.md and docs/architecture/README.md
  still propagated the retracted "thin manager"; the CIC still named
  _clip_observed_history.

Seam A's correction is worth reading rather than skimming: the invariants needed
NO change when the pandas seam was retired, only which module fed them. That is
the design the section claims, evidenced instead of restated.

Deliberately NOT touched: docs/falsification_campaign.md,
docs/cross_repo_integration_report.md and docs/ADR-011_implementation_assessment.md
reference deleted methods inside dated historical records, which is what those
documents are for.

VERIFIED SAFE by the same review, and recorded because a release merge should say
what it checked: zero non-merge commits exist on main that are not on development
(nothing is lost); no workflow references unfao/ paths, git-lfs or .gitattributes,
and every checkout defaults to lfs:false — so CI never downloaded the 774 MB
bundle and deleting it cannot break a job; the branch-behind gate passes because
main is a strict ancestor; publish_package.yml triggers only on release:published,
so merging cannot publish; and run_pytest.yml's test step is COMMENTED OUT on main
today, so this merge makes main actually run its tests for the first time.

ruff clean; 305 passed, 41 xfailed, 5 known local pyarrow byte-parity failures.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Polichinel
Polichinel merged commit 380b0c8 into development Aug 1, 2026
4 checks passed
@Polichinel
Polichinel deleted the fix/release-doc-accuracy branch August 1, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant