Skip to content

feat(cli): --anonymize replaces every name diagnostics and inspect reports take from the project, and the viewer's download is anonymized - #988

Merged
DrunkOnJava merged 5 commits into
mainfrom
feat/anonymize-diagnostics
Oct 25, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
feat/anonymize-diagnostics

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Discussion #982 asks practitioners to post rvt-inspect --json and rvt-ifc --diagnostics output 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 be Family:Type:id), and, in rvt-inspect's report, the folder path Revit stored for the file, of which the default redaction replaced only a \Users\<name>\ part. This adds --anonymize to 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, named rvt-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 named rvt-diagnostics.json; the on-screen diagnostics panel is unchanged.
  • tests/rvt_ifc_diagnostics_cli.rs: an end-to-end check that runs the built rvt-ifc and rvt-inspect on 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 --anonymize and 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 the cli class against the family corpus).
  • Deploy viewer: the journey test reads the downloaded diagnostics.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • Resolved limitation updated (support matrix, status): none applies
  • Limitation documented: without --anonymize the outputs still name the project, as the docs now say
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • Any new test fixtures use synthetic values: none added

Breaking changes

None. New flags, a new method on ExportDiagnostics (#[non_exhaustive]) and two new rvt::redact items. The viewer's download file is renamed from <file>.diagnostics.json to rvt-diagnostics.json.

…ports take from the project, and the viewer's diagnostics download is anonymized
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 18:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/ifc/mod.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/ifc/mod.rs Resolved
Comment thread src/bin/rvt_inspect.rs Resolved
@DrunkOnJava
DrunkOnJava merged commit 7483b2b into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/anonymize-diagnostics branch October 25, 2026 18:53
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 25, 2026
12 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
## 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".
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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