Repository navigation
feat(cli): --anonymize replaces every name diagnostics and inspect reports take from the project, and the viewer's download is anonymized - #988
Conversation
…ports take from the project, and the viewer's diagnostics download is anonymized
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f4149bfd0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…es a warning lists, keeping their count
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c5f14779bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…st, and anonymizes rvt-inspect's error report
## Summary Prepares v0.8.0 (RELEASE.md steps 4 to 8), on the maintainer's go-ahead in chat (2026-10-25: "Cut 0.8.0 after #988"). Scope: `main` at 7483b2b (#988), nothing after it. ## Changes - Version 0.8.0 in `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.8.0` pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (dated 2026-10-25), `.release-please-manifest.json`, `Cargo.lock` and `fuzz/Cargo.lock`. - `CHANGELOG.md`: the 25 fragments assembled (`changelog.py assemble`) into `[0.8.0] — 2026-10-25`, with an introduction and "Upgrading from 0.7" (`ElementId`, `IfcModel::type_property_sets`, `RevitGlobalIds`'s new fields); `[Unreleased]` empty above it. - `README.md`: the release section names 0.8.0 (packed into the crate and the wheel). - `rvt-py/README.md` (the wheel's README): saved parameters reach IFC with `--revit-property-sets`. - The Core Interior witness observations and verdicts follow from this pull request's CI run (the IFC header carries the version), in a second commit. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [x] `tools/check-local.sh`: CI run 40223501543 green on e8e450d (`CI passed`). - [x] Witness files refreshed from run 40223501543's `octetproof-core-interior` artifact (5c701eb): only `witness_version` (0.7.0 to 0.8.0) and the two verdict hashes differ; the IfcOpenShell and IFClite observations are unchanged. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry in `CHANGELOG.md` (the release assembles the fragments) - [x] Resolved limitation updated (support matrix, status): no change in this PR - [x] Limitation documented: no change - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) - [x] Any new test fixtures use synthetic values: none added ## Breaking changes The release carries #923, #934 and #970's, listed under "Upgrading from 0.7".
Summary
Discussion #982 asks practitioners to post
rvt-inspect --jsonandrvt-ifc --diagnosticsoutput publicly. Both name things the project names: the file and project names, the levels, a sample of the materials and of skipped elements (which can beFamily:Type:id), and, inrvt-inspect's report, the folder path Revit stored for the file, of which the default redaction replaced only a\Users\<name>\part. This adds--anonymizeto both CLIs, which replaces each with a placeholder (<redacted>.rvt,Level 1,Material 1,element-<ElementId>), and drops the project-written "Export to IFC As" values one warning lists, keeping counts, releases and ElementIds. No other warning carries project text, so none is rewritten.rvt-inspect's error report is anonymized too. The viewer's Download diagnostics now always gives the anonymized file, namedrvt-diagnostics.json.Changes
src/redact.rs:ANONYMIZED,anonymize_file_name.src/ifc/mod.rs:ExportDiagnostics::anonymize.src/bin/rvt_ifc.rs:--anonymize(requires--diagnostics);src/bin/rvt_inspect.rs:--anonymize(input path, stored path and the embedded diagnostics).viewer/src/main.ts,viewer/index.html: the download is anonymized the same way and namedrvt-diagnostics.json; the on-screen diagnostics panel is unchanged.tests/rvt_ifc_diagnostics_cli.rs: an end-to-end check that runs the builtrvt-ifcandrvt-inspecton the 2024 family-corpus sample with and without--anonymize, and fails if any name the plain output carries (file stem, project, levels, materials, element samples) appears in a string value of the anonymized one, or if the counts differ.viewer/tests/journey.spec.ts: the downloaded diagnostics' levels, materials and project name are placeholders.docs/reference-models.md,docs/user-guide.md,CONTRIBUTING.md: the report-a-file instructions use--anonymizeand say what the output names without it.changelog.d/added/anonymize-diagnostics.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.sh: CI (the new CLI check runs in thecliclass against the family corpus).Audit-honesty checklist
changelog.d/--anonymizethe outputs still name the project, as the docs now sayLegal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Breaking changes
None. New flags, a new method on
ExportDiagnostics(#[non_exhaustive]) and two newrvt::redactitems. The viewer's download file is renamed from<file>.diagnostics.jsontorvt-diagnostics.json.