Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages/npm/ethos-pdf/vendor/ethos-* binary
18 changes: 14 additions & 4 deletions .github/scripts/test_execution_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ def test_status_is_scoped_to_internal_continuation(self) -> None:
text = status_text()

self.assertIn(
"Status: Public beta evaluation is approved for the GitHub source repository; the three bounded "
"Rust library crates `ethos-doc-core`, `ethos-verify`, and `ethos-pdf` at `0.1.2`; "
"the Python `ethos-pdf` wheel at `0.1.2`; the npm `@docushell/ethos-pdf` CLI package "
"at `0.1.2`; and the GitHub Release `v0.1.2` macOS arm64 and Linux x64 CLI artifacts.",
"Status: v0.2.0 public beta/evaluation surfaces are live for the GitHub source repository; "
"Rust library crates `ethos-doc-core`, `ethos-verify`, and `ethos-pdf` at `0.2.0`; "
"the Python `ethos-pdf` wheel at `0.2.0`; npm `@docushell/ethos-pdf@0.2.1`; "
"and GitHub Release `v0.2.0` macOS arm64/Linux x64 CLI artifacts.",
text,
)
self.assertIn(
"npm `@docushell/ethos-pdf@0.2.0` is deprecated because it shipped stale CLI binaries",
text,
)
self.assertIn("Internal Milestone D source-only closeout remains complete", text)
Expand Down Expand Up @@ -97,6 +101,12 @@ def test_public_posture_boundary_remains_explicit(self) -> None:
"`ETHOS_PDFIUM_LIBRARY_PATH`.",
text,
)
self.assertIn(
"v0.2.0 public beta/evaluation surfaces are live for the GitHub source repository",
text,
)
self.assertIn("npm `@docushell/ethos-pdf@0.2.1`", text)
self.assertIn("GitHub Release `v0.2.0` macOS arm64/Linux x64 CLI artifacts", text)
self.assertIn("ethos-doc-core", text)
self.assertIn("ethos-verify", text)
self.assertIn("ethos-pdf", text)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ def test_in_tree_candidate_metadata_files_are_present_and_activated(self) -> Non
crate,
)
self.assertIn("reserved_crates_io_version = \"0.0.0-reserved.0\"", manifest, crate)
self.assertIn("Publication metadata is activated", readme, crate)
self.assertIn("Public installation from crates.io remains blocked", readme, crate)
self.assertIn("0.0.0-reserved.0", readme, crate)
self.assertIn("registry action", readme, crate)
self.assertIn("package-publication activation review only", readme, crate)
self.assertIn("Public installation from crates.io is available at `0.2.0`", readme, crate)
self.assertIn("The reserved crates.io placeholder remains historical", readme, crate)
self.assertIn("`0.2.0` is the current public package", readme, crate)
self.assertIn("Publication metadata is activated", notice, crate)
self.assertIn("public installation and registry action remain blocked", notice, crate)
self.assertIn("public installation is available from crates.io at `0.2.0`", notice, crate)

def test_reserved_placeholder_crates_without_manifests_stay_blocked(self) -> None:
prep = load_json(PREP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@
"Ethos is a deterministic document evidence layer for source-grounded verification and "
"citation checking across native Ethos JSON and supported foreign parser outputs. The current "
"beta includes the GitHub source repository, Rust library crates `ethos-doc-core`, "
"`ethos-verify`, and `ethos-pdf` at `0.1.2`, the Python `ethos-pdf` wheel at `0.1.2`, the "
"npm `@docushell/ethos-pdf@0.1.2` package, and GitHub Release `v0.1.2` macOS arm64/Linux x64 "
"CLI artifacts. PDFium-backed commands use caller-provided PDFium through "
"`ethos-verify`, and `ethos-pdf` at `0.2.0`, the Python `ethos-pdf` wheel at `0.2.0`, the "
"npm `@docushell/ethos-pdf@0.2.1` package, and GitHub Release `v0.2.0` macOS arm64/Linux x64 "
"CLI artifacts. npm `@docushell/ethos-pdf@0.2.0` is deprecated because it shipped stale CLI "
"binaries; use `0.2.1`. PDFium-backed commands use caller-provided PDFium through "
"`ETHOS_PDFIUM_LIBRARY_PATH`."
)
BOUNDED_INSTALLATION_WORDING = (
Expand Down Expand Up @@ -88,9 +89,9 @@
"cargo add ethos-pdf@0.1.0",
)
CURRENT_INSTALL_COMMANDS = (
"cargo add ethos-doc-core@0.1.2",
"cargo add ethos-verify@0.1.2",
"cargo add ethos-pdf@0.1.2",
"cargo add ethos-doc-core@0.2.0",
"cargo add ethos-verify@0.2.0",
"cargo add ethos-pdf@0.2.0",
)
FORBIDDEN_SCOPE_EXPANSION = [
"public reports are approved",
Expand Down Expand Up @@ -172,7 +173,9 @@ def test_readme_matches_bounded_public_wording(self) -> None:
self.assertIn(CURRENT_README_WORDING, readme)
for command in CURRENT_INSTALL_COMMANDS:
self.assertIn(command, readme)
self.assertIn("npm install -g @docushell/ethos-pdf@0.1.2", readme)
self.assertIn("npm install -g @docushell/ethos-pdf@0.2.1", readme)
self.assertIn("python3 -m pip install ethos-pdf==0.2.0", readme)
self.assertIn("GitHub Release `v0.2.0`", readme)
self.assertIn("macOS arm64/Linux x64 CLI artifacts", readme)
self.assertIn("Windows packaged artifacts", readme)
self.assertIn("bundled project-maintained PDFium builds", readme)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
"Ethos is a deterministic document evidence layer for source-grounded verification and "
"citation checking across native Ethos JSON and supported foreign parser outputs. The current "
"beta includes the GitHub source repository, Rust library crates `ethos-doc-core`, "
"`ethos-verify`, and `ethos-pdf` at `0.1.2`, the Python `ethos-pdf` wheel at `0.1.2`, the "
"npm `@docushell/ethos-pdf@0.1.2` package, and GitHub Release `v0.1.2` macOS arm64/Linux x64 "
"CLI artifacts. PDFium-backed commands use caller-provided PDFium through "
"`ethos-verify`, and `ethos-pdf` at `0.2.0`, the Python `ethos-pdf` wheel at `0.2.0`, the "
"npm `@docushell/ethos-pdf@0.2.1` package, and GitHub Release `v0.2.0` macOS arm64/Linux x64 "
"CLI artifacts. npm `@docushell/ethos-pdf@0.2.0` is deprecated because it shipped stale CLI "
"binaries; use `0.2.1`. PDFium-backed commands use caller-provided PDFium through "
"`ETHOS_PDFIUM_LIBRARY_PATH`."
)
EXPECTED_SOURCE = {
Expand Down Expand Up @@ -185,7 +186,8 @@ def test_public_surfaces_use_exact_approved_wording_and_exclusions(self) -> None
self.assertIn("cargo build --locked -p ethos-cli", readme)
self.assertIn("make verify-alpha", readme)
self.assertIn("ETHOS_PDFIUM_LIBRARY_PATH", readme)
self.assertIn("npm `@docushell/ethos-pdf@0.1.2` package", normalized_readme)
self.assertIn("npm `@docushell/ethos-pdf@0.2.1` package", normalized_readme)
self.assertIn("npm `@docushell/ethos-pdf@0.2.0` is deprecated", normalized_readme)
self.assertIn("Windows packaged artifacts", normalized_readme)
self.assertIn("bundled project-maintained PDFium builds", normalized_readme)
self.assertIn("public benchmark reports", normalized_readme)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
"Ethos is a deterministic document evidence layer for source-grounded verification and "
"citation checking across native Ethos JSON and supported foreign parser outputs. The current "
"beta includes the GitHub source repository, Rust library crates `ethos-doc-core`, "
"`ethos-verify`, and `ethos-pdf` at `0.1.2`, the Python `ethos-pdf` wheel at `0.1.2`, the "
"npm `@docushell/ethos-pdf@0.1.2` package, and GitHub Release `v0.1.2` macOS arm64/Linux x64 "
"CLI artifacts. PDFium-backed commands use caller-provided PDFium through "
"`ethos-verify`, and `ethos-pdf` at `0.2.0`, the Python `ethos-pdf` wheel at `0.2.0`, the "
"npm `@docushell/ethos-pdf@0.2.1` package, and GitHub Release `v0.2.0` macOS arm64/Linux x64 "
"CLI artifacts. npm `@docushell/ethos-pdf@0.2.0` is deprecated because it shipped stale CLI "
"binaries; use `0.2.1`. PDFium-backed commands use caller-provided PDFium through "
"`ETHOS_PDFIUM_LIBRARY_PATH`."
)
APPROVED_SURFACE_LINES = (
Expand Down Expand Up @@ -140,8 +141,31 @@ def test_current_docs_use_current_public_wording(self) -> None:
" ",
" ".join(line.removeprefix("> ").strip() for line in read(README).splitlines()),
)
execution_status = normalized(EXECUTION_STATUS)

self.assertIn(CURRENT_README_WORDING, readme_text, str(README))
self.assertIn(CURRENT_README_WORDING, normalized(EXECUTION_STATUS), str(EXECUTION_STATUS))
self.assertIn(
"Status: v0.2.0 public beta/evaluation surfaces are live for the GitHub source repository",
execution_status,
str(EXECUTION_STATUS),
)
self.assertIn(
"Rust library crates `ethos-doc-core`, `ethos-verify`, and `ethos-pdf` at `0.2.0`",
execution_status,
str(EXECUTION_STATUS),
)
self.assertIn("the Python `ethos-pdf` wheel at `0.2.0`", execution_status, str(EXECUTION_STATUS))
self.assertIn("npm `@docushell/ethos-pdf@0.2.1`", execution_status, str(EXECUTION_STATUS))
self.assertIn(
"GitHub Release `v0.2.0` macOS arm64/Linux x64 CLI artifacts",
execution_status,
str(EXECUTION_STATUS),
)
self.assertIn(
"npm `@docushell/ethos-pdf@0.2.0` is deprecated",
execution_status,
str(EXECUTION_STATUS),
)

def test_docs_reference_current_state_and_retained_blockers(self) -> None:
for path in (PREP_SCOPE, ROADMAP, EXECUTION_STATUS, VALIDATION_README):
Expand Down
7 changes: 4 additions & 3 deletions .github/scripts/test_public_prealpha_wording_approval.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
"Ethos is a deterministic document evidence layer for source-grounded verification and "
"citation checking across native Ethos JSON and supported foreign parser outputs. The current "
"beta includes the GitHub source repository, Rust library crates `ethos-doc-core`, "
"`ethos-verify`, and `ethos-pdf` at `0.1.2`, the Python `ethos-pdf` wheel at `0.1.2`, the "
"npm `@docushell/ethos-pdf@0.1.2` package, and GitHub Release `v0.1.2` macOS arm64/Linux x64 "
"CLI artifacts. PDFium-backed commands use caller-provided PDFium through "
"`ethos-verify`, and `ethos-pdf` at `0.2.0`, the Python `ethos-pdf` wheel at `0.2.0`, the "
"npm `@docushell/ethos-pdf@0.2.1` package, and GitHub Release `v0.2.0` macOS arm64/Linux x64 "
"CLI artifacts. npm `@docushell/ethos-pdf@0.2.0` is deprecated because it shipped stale CLI "
"binaries; use `0.2.1`. PDFium-backed commands use caller-provided PDFium through "
"`ETHOS_PDFIUM_LIBRARY_PATH`."
)

Expand Down
11 changes: 7 additions & 4 deletions .github/scripts/test_public_surface_posture.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@ def test_readme_status_matches_public_beta_evaluation_scope(self) -> None:
self.assertIn("Python `ethos-pdf` wheel", normalized)
self.assertIn("caller-provided PDFium", text)
self.assertIn("release-scope work", text)
self.assertIn("cargo add ethos-doc-core@0.1.2", text)
self.assertIn("cargo add ethos-verify@0.1.2", text)
self.assertIn("cargo add ethos-pdf@0.1.2", text)
self.assertIn("npm install -g @docushell/ethos-pdf@0.1.2", text)
self.assertIn("cargo add ethos-doc-core@0.2.0", text)
self.assertIn("cargo add ethos-verify@0.2.0", text)
self.assertIn("cargo add ethos-pdf@0.2.0", text)
self.assertIn("python3 -m pip install ethos-pdf==0.2.0", text)
self.assertIn("npm install -g @docushell/ethos-pdf@0.2.1", text)
self.assertIn("GitHub Release `v0.2.0`", text)
self.assertIn("@docushell/ethos-pdf@0.2.0` is deprecated", text)
self.assertNotIn("not production-ready", text.lower())
self.assertNotIn("not stable production surfaces", text.lower())
self.assertNotIn("contracts phase", text)
Expand Down
Loading
Loading