Skip to content

egress-class-core.ts: USER/WORK/CUSTOMERS/ RESTRICTED anchor never matches — install scaffold ships no such directory #1615

Description

@JohnnyDisco7

install/hooks/lib/egress-class-core.ts includes this path-classification rule:

{ re: /(?:LIFEOS|PAI)\/USER\/WORK\/CUSTOMERS\//, cls: "RESTRICTED" },

but the install scaffold (install/USER/WORK/) creates MY_ORG/, YOUR_COMPANIES/,
SAMPLE_CONSULTING/, and SAMPLE_CUSTOMER/ — there is no CUSTOMERS/ directory anywhere
in the shipped tree, and nothing in the docs instructs users to create one. The rule is a
dead anchor: it can never match on a stock install, so customer data placed where the
scaffold actually puts it (e.g. under YOUR_COMPANIES/) never gets the RESTRICTED class.

Practical impact is softened by the LIFEOS\/USER\// catch-all later in PATH_CLASS_RULES
(everything under USER still classifies CONFIDENTIAL, which blocks identically at the
PUBLIC ceiling on the GLM route), but the RESTRICTED-vs-CONFIDENTIAL distinction is lost,
which matters for any future route whose ceiling sits between the two.

Suggested fix — either:

  1. Re-anchor the rule to the shipped schema (e.g. USER\/WORK\/(?:YOUR_COMPANIES|MY_ORG)\//
    or whatever directory the schema intends for customer/client data), or
  2. Ship a USER/WORK/CUSTOMERS/ directory in the scaffold and document it as the home for
    customer-restricted material.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions