Skip to content

Remove the vendored OGIT; read AdaWorldAPI/OGIT from a floating checkout - #336

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/ogit-floating
Oct 10, 2026
Merged

AdaWorldAPI merged 1 commit into
mainfrom
claude/ogit-floating

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

OGAR stops vendoring OGIT. vocab/imports/ogit/ is removed: 1997 files, a SHA-pinned mirror last taken at d0f489f. Tests now read AdaWorldAPI/OGIT at its moving master from a checkout, the way lance-graph-ontology's real-OGIT tests already do. This replaces #335, which re-vendored instead.

  • Locator: crates/ogar-from-schema/src/ogit_checkout.rs. OGIT_FORK_PATH names the checkout; otherwise it is OGIT next to OGAR. A missing checkout fails the test with a setup message instead of skipping it. Integration tests include the same file through #[path].
  • Tests: compile-time include_str! reads of OGIT files become runtime reads through the locator. That covers xsd.rs, sgo.rs, ttl.rs, do_arm.rs, ttl_emit.rs and two integration tests. All of them are test-only, so no library code read the mirror.
  • Floors: nine_domains_lift_surface_round_trip keeps the round-trip strict but turns its exact per-domain file counts into floors. On master, Compliance has 15 files against an exact pin of 9, so the exact pin would fail today.
  • Oracle: the MARS XSD oracle was OGAR's own and only sat inside the mirror. It moves to vocab/oracles/mars/, with its provenance. Two measured corrections: the Py3 script is 14 519 bytes, not the 14 504 the old record said, and the .adoc regenerates byte-equal except for its :revdate: line.
  • CI: ci.yml checks out AdaWorldAPI/OGIT master into ogit/ and sets OGIT_FORK_PATH. lint.yml needs nothing, since clippy only compiles the tests.
  • Docs: every live reference now points at the checkout.
    • The lift catalogue keeps its counts as the dated d0f489f snapshot and names the five domains added since.
    • DISCOVERY-MAP §2.14 D-OGIT-FLOATING records the decision, its basis, and when to revisit it.
    • Dated 2026-06-22 correction notes stay as history, with a pointer to the new model.

Verification

Against OGIT master at 2315167d:

  • cargo fmt --all --check: clean.
  • cargo clippy --all-targets -- -D warnings: clean.
  • cargo test --workspace: 1050 passed, 0 failed, 23 ignored.
  • ogar-from-schema: 55 tests, or 59 with --features xsd, the same count as before.
  • With OGIT_FORK_PATH=/nonexistent/OGIT, the 27 OGIT-reading tests fail with the setup message, and the other 28 pass.

Merge order

Bardioc-rs reads this tree too. AdaWorldAPI/Bardioc-rs#8 moves it to the same checkout and works with or without this PR, so merge it first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VysoWJ6vsyg3wEGc5v7T5v


Generated by Claude Code

OGAR no longer carries vocab/imports/ogit, the SHA-pinned mirror of
AdaWorldAPI/OGIT last taken at d0f489f. Tests read OGIT at its moving
master from a checkout: OGIT_FORK_PATH, else OGIT next to OGAR, the
convention lance-graph-ontology's real-OGIT tests already use
(crates/ogar-from-schema/src/ogit_checkout.rs). A missing checkout is a
setup error, not a skip. CI checks master out beside the build.

- The MARS XSD oracle was OGAR's own and only sat inside the mirror. It
  moves to vocab/oracles/mars/ with its provenance.
- nine_domains_lift_surface_round_trip keeps the round-trip strict and
  turns the per-domain file counts into floors: on master, Compliance
  already has 15 files against an exact pin of 9.
- Docs point at the checkout. The lift catalogue keeps its counts as the
  dated d0f489f snapshot. DISCOVERY-MAP 2.14 D-OGIT-FLOATING records the
  decision.

Against master at 2315167d: cargo fmt --all --check clean, cargo clippy
--all-targets -D warnings clean, cargo test --workspace 1050 passed,
0 failed, 23 ignored. With OGIT_FORK_PATH pointing nowhere, the 27
OGIT-reading tests fail with the setup message and the other 28
ogar-from-schema tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VysoWJ6vsyg3wEGc5v7T5v
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Walkthrough

Warning

Review details and warnings were omitted to fit the comment limit.

@AdaWorldAPI
AdaWorldAPI merged commit 62af6e3 into main Oct 10, 2026
4 checks passed
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.

2 participants