Skip to content

--redact leaves the user name in /home/<name>/ paths: redact_path_str scrubs only \Users\ and /Users/ #1871

Closed

Description

@DrunkOnJava

What

rvt::redact::redact_path_str (src/redact.rs, which every --redact goes through) scrubs the user name from \Users\<name>\ and /Users/<name>/ and nothing else:

for n in ["\\Users\\", "/Users/"] {

A Linux home folder, /home/<name>/..., passes through unchanged. A file a Linux user opens, the folder a Revit file was last saved from on a Linux share, or an error that names either one therefore keeps the user name in the output of a CLI run with --redact. CI's PII guard (.github/workflows/ci.yml) already treats /home/<name>/ as a home path in committed files, so the two lists disagree.

Found while reading #1852: rvt-diff --elements --redact runs its text through this function.

Done when

  • /home/<name>/ is scrubbed the way /Users/<name>/ is, in the doc example and in the function.
  • The callers' committed redacted output is checked for a change (a path under /home/ in it would now differ).
  • /home/ with no user segment after it (a bare /home/ or /home/x with nothing following) is left as it is, as /Users/ is today.

Activity

  1. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows for PR #1873's Measure run, registered before it is dispatched. The change touches text that only a --redact run writes and nothing an export writes, so the run should show nothing moved:

    1. Every ifc.sha256 the run records equals main's (9bb58fe1).
    2. Every diagnostics.json equals main's.
    3. Every scorer output the run compares is equal (compare-scorer-diff lists no change).
    4. same-project gates passes on the head commit.

    A row that does not hold stops the PR until the cause is read.

  2. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The four rows, read: all hold. Run 43368277871 (unfiltered: the samples of every year, the BIM4LCA models, puzzbobb's Revit 2025 models, rac_advanced's pairs, BIMcollab's model, the families and the held-out models) on 9a7ce531, against main at 9bb58fe1, the release commit.

    1. Exports: holds. ifc.sha256 is identical on 146 of 146.
    2. Diagnostics: holds. diagnostics.json is identical on 121 of 121.
    3. Scorers: holds. Nothing differs beyond what only the head writes (the probe's output and the across-saves areas).
    4. Gates: hold. same-project gates pass on 9a7ce531. The run's semantic check passes too (42 models, 57,056 elements, advisory).

    So the change reaches no export: it is the text a --redact run scrubs, which the run does not exercise, and the failure-first tests of the helper in CI do. PR #1873 carries it.

  3. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows for the run at 7e825868, registered before it is dispatched. The head now also scrubs a name no separator follows (rvtDevelop's review of #1873), and that logic is src/, so the gates need a verdict on it. No export reads the helper (git grep finds redact_sensitive and redact_path_str only in the CLIs' --redact paths and in MetadataSummary::redact), so the run, with no base side, is read against the one before it:

    1. Gates: hold. same-project gates pass on 7e825868.
    2. Exports and diagnostics: hold. Every ifc.sha256 and diagnostics.json of the models this run exports equals the file of the same model in run 43368277871, which equalled main's on all 146 and 121.

    A row that does not hold stops the PR until its cause is read.

  4. added a commit that references this issue on Nov 13, 2026
  5. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The gates run at 7e825868 failed for a reason that is not this change, so it stands as a fail until a newer pass replaces it. Run 43374029664 scored a head cut before #1850 with main's bodies_across_saves.py as it is since #1850, which holds each further piece of a Tag to its own GlobalId; the six rme saves of 2025 to 2027 each show 25 differences, all IfcSlab pieces' GlobalIds, the very pieces #1850 fixes and this head lacked. main is merged into the branch now (72c1d95d, no conflict; its diff against main is src/redact.rs, src/research/partition_column_nodes.rs and the changelog fragment).

    Row for the new run, registered before it is dispatched: same-project gates pass on 72c1d95d. The exports are not re-read: run 43368277871 held 146 of 146 and 121 of 121 diagnostics equal to main's with redact.rs as it then was, and nothing in src/ifc calls the helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions