{"category_id":"repository","default_severity":"warning","description":"Warn once per Git blob tracked as a script source (the executable-script extensions) under two or more package roots, where a package root is the nearest directory holding a tracked package manifest. __init__.py, *.config.* and *.d.ts basenames are skipped. Size and generated status are not inspected.","examples":[{"after":"{\"manifest\":\"repository_id = \\\"example-repository\\\"\\ncomponents = []\\n\",\"tracked\":[\"apps/a/package.json\",\"apps/b/package.json\",\"packages/retry/package.json\",\"packages/retry/src/retry.ts\"]}","before":"{\"manifest\":\"repository_id = \\\"example-repository\\\"\\ncomponents = []\\n\",\"tracked\":[\"apps/a/package.json\",\"apps/a/src/retry.ts\",\"apps/b/package.json\",\"apps/b/src/retry.ts\"]}","expected_severity":"warning","id":"sarj-artifact-cross-package-duplicates","language":"json","title":"Import one shared helper instead of two copies"}],"fix":"Move the file to a shared package and import it, deleting duplicated tests once the shared suite covers the same contracts. Retain required copies with an existing exact, dated fingerprint exception. No autofix.","kind":"rule","references":[],"rule_id":"repository/artifacts/cross-package-duplicates","rule_version":1,"slug":"cross-package-duplicates","source":{"path":"src/repo_standards/policy_sarj/policy.py","symbol":"repository/artifacts/cross-package-duplicates"},"title":"Share files copied across packages","topic_id":"artifacts","why":"Byte-identical sources and tests copied between packages must be fixed and reviewed once per copy, and the copies drift silently after the first divergent edit."}
