Repository navigation
docs(vendor): adopt the vendor-policy kit from motofreedom - #1
Conversation
… CI, PR template Imported from motofreedom's vendor-policy-adoption-kit.md. Adapted for TypeScript source roots, added JS/TS scrub patterns (hardcoded API keys, npm tokens), kept the cut-down 5-field PR template. GPL-3.0 subtree carve-out: not applicable. third_party/ghidra-nativeaot is Washi1337/ghidra-nativeaot (MIT), a Ghidra plugin and not a Ghidra fork; THIRD_PARTY_NOTICES.md already records it as MIT. Policy still documents the carve-out because future upstreams may trigger it. 10 existing third_party/ upstreams covered from day one by the boundary CI job. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
`if grep …; then exit 1; fi` only catches exit 0. grep exits 2 on missing dir / unreadable file / zsh word-splitting on some runners. Silent success on a grep error means the vendor-boundary enforcement decays to honor-system with no CI signal. Capture grep's exit code explicitly and treat 0=violation (exit 1), 1=no match (pass), anything else=check failure (exit 1 with a descriptive message). Pin the step's shell to bash so a runner switched to dash can't silently change semantics. Fixes the same shape in both call sites added by #1 (in-ci.yml job) and #2 (standalone workflow). Pattern from motofreedom PR morluto#265. Co-authored-by: Jonathan Henson <[email protected]> Co-authored-by: Claude Opus 4.7 <[email protected]>
Summary
Ports the vendor-policy adoption kit from
bqw371/motofreedom(merged therein PRs morluto#166 / morluto#176 / morluto#182 / morluto#190 / morluto#191 / morluto#193 / morluto#194 on 2026-11-28).
Governs how a new upstream enters
third_party/<name>/with provenance,GPL subtree isolation, scrub regexes, supply-chain hygiene, and a boundary
CI check. Operator asked for adoption across repos; REA fits because it
already vendors 10 upstreams.
Change and scope
Three files:
docs/vendor-policy.md— import boundary, GPL-3.0 carve-out, exact-commit ingestion rule, 5 immediate supply-chain items and 5 tooling-gated items deferred until triggered. Scrub regexes repo-agnostic (keys, bearer tokens, AWS creds) plus JS/TS-flavoured (hardcodedprocess.env.*_KEY,npm_<token>,.npmrcauth tokens, bearer in fixtures). Omits motofreedom's hardware-identifier regexes (serial/IMEI/keybox) — REA's domain is binary analysis, not device operator state..github/PULL_REQUEST_TEMPLATE/vendor.md— cut 5-field template (upstream URL, 40-char SHA, SPDX id, scrub-clean yes/no with pasted grep, GPL-family yes/no ack). Two reviewers in the upstream cohort recommended the cut version for repos with modest reviewer load; REA fits..github/workflows/ci.yml— newvendor-boundaryjob grepssrc/andbridge/for TS/JS and Python imports ofthird_party/. Draft-PR skip matches the rest of the workflow. Added to therequired:aggregate'sneeds:list.scripts/ci/required.mjsfails on any non-skippedfailure/cancelledresult, so the gate catches regressions automatically.Verified on current
mainthat nosrc/orbridge/file imports athird_party/path, so the boundary CI is green from day one.Skipped
.github/labeler.ymlfrom the kit: REA has noactions/labelerworkflow installed, so a labeler config would be dead scaffolding.GPL-3.0 subtree carve-out
Not applicable today.
third_party/ghidra-nativeaotisWashi1337/ghidra-nativeaot, which is MIT-licensed (Ghidra .NET Native AOT Analyzer plugin, not a Ghidra fork). This is already recorded correctly inTHIRD_PARTY_NOTICES.md. The policy still documents the carve-out so a future GPL-family upstream has the mechanism ready.Upstream LICENSE / provenance audit (10 existing
third_party/entries)Submodule
LICENSEfiles live upstream and only appear on disk aftergit submodule update --init; the gate below is whether REA records license + pinned commit SHA somewhere in-tree (per-upstream README,third_party/README.md, orTHIRD_PARTY_NOTICES.md).binwalkthird_party/README.md)third_party/README.md— SHA4fdab3d4…, v3.1.0evmolethird_party/evmole/LICENSE)third_party/evmole/README.md— pins npm0.9.6+ commit9eff02da…ghidra-nativeaotTHIRD_PARTY_NOTICES.md)third_party/README.md, nothird_party/ghidra-nativeaot/README.mdjadx-headless-mcpthird_party/README.md)third_party/README.md— SHA2b2a560e…, v0.8.0pwndbgthird_party/pwndbg/LICENSE.md)third_party/pwndbg/README.md— SHA55596aa6…, 2026.09.15pwntoolsthird_party/pwntools/README.mdtable)third_party/pwntools/README.md— docs caller-supplied pwntools/pyelftools/Unicornunblobthird_party/README.md)third_party/README.md— SHA1fcc7a0a…, 26.6.4wabtthird_party/wabt/README.md)third_party/wabt/README.md— SHAff0ef7e0…, 1.0.42wakarupionxzh/wakaru)third_party/README.md, nothird_party/wakaru/README.mdweb-network-capturesthird_party/web-network-captures/README.md— documents 6 upstream packagesProvenance gaps for a human to fill
third_party/ghidra-nativeaot/— add a shortREADME.md(or a row inthird_party/README.md) recording the upstream URLhttps://github.com/Washi1337/ghidra-nativeaot, pinned commiteffeb734fc570c32650f88b159608979dc7b423e, and the MIT license. Note:THIRD_PARTY_NOTICES.mdalready preserves the MIT notice, so this is a provenance-doc gap, not a license gap.third_party/wakaru/— add aREADME.mdrecording the upstream URLhttps://github.com/pionxzh/wakaru, pinned commit8219bf5016a063d7fb215101a8c45d5959ec733f, and the Apache-2.0 license, plus whatever REA's adapter actually consumes from it.Neither gap is a blocker for this policy PR — the policy sets the expectation forward; the gaps are a backfill task. Flagging for a maintainer to decide whether to fold into this PR or follow up.
Validation performed
python3 -c 'import yaml; yaml.safe_load(open(".github/workflows/ci.yml"))'— OK.grep -rnE "(from|require|import)\s*\(?\s*['\"][^'\"]*third_party/" src/ bridge/— zero matches; vendor-boundary passes on current tree.grep -rnE "^\s*(from|import)\s+third_party[._]" src/ bridge/— zero matches.scripts/ci/required.mjsfails on anyfailure/cancelledresult among needs (line 81-86), sovendor-boundaryis enforced by the existingrequiredgate without script changes.gh api repos/{owner}/{repo} --jq '.license.spdx_id'forWashi1337/ghidra-nativeaot(MIT) andpionxzh/wakaru(Apache-2.0).Compatibility, safety, and release
.github/CODEOWNERSalready routesthird_party/and.github/workflows/edits to maintainers; policy edits remain gated.🤖 Generated with Claude Code