Commit 763a2ba
exclude: remove user-contributed domain-skills from vendored harness (#27)
* exclude: remove user-contributed domain-skills from vendored harness
Domain-skills (`agent-workspace/domain-skills/` post-PR-#229 +
top-level `domain-skills/` from PR #247) are user-contributed
site recipes maintained on browser-use/browser-harness. We
exclude them from browsercode's vendored tree on quality,
maintenance, and prompt-injection grounds. Browsercode (cloud-
first, performance-focused) curates its own skills server-side.
Mechanism — three places that all reference UPSTREAM.md §3
"Excluded paths" as the source of truth:
1. `script/check-harness-diff.sh` gains an `IGNORED_PATHS_REGEX`
filter applied before the noise/expected/unexpected split, so
future syncs treat upstream domain-skills changes as if they
don't exist.
2. `harness-sync.md` step 5 documents the skip rule as a top-row
action in the file-category table; sync agents pre-filter
excluded paths instead of deciding per-file.
3. The directories themselves are removed from the vendored tree
(`git rm -r`).
Runtime safety: `helpers.goto_url()` already guards with
`if d.is_dir():`, so absence is a clean no-op (no exception, no
missing key, no broken tool). Smoke-tested:
`from browser_harness import run, helpers, daemon, admin, _ipc`
imports cleanly; `browser-harness --version` prints 0.1.0.
Doc trims (`SKILL.md`, `README.md`, `install.md`) are minimal
surgical edits — only direct `domain-skills/` references are
removed; surrounding prose is preserved so future sync diffs
stay localized to specific lines. UPSTREAM.md §3 records these
as "expect ongoing drift on sync" so future sync agents reconcile
them hunk-by-hunk.
Net: 82 files removed (76 agent-workspace skills + 4 shopify-admin
+ 2 README files), 7 files modified, 1 PR. Maintenance cost going
forward: zero on the excluded paths (filtered automatically); small
on the three trimmed docs.
Refs: AGENTS.md, UPSTREAM.md \u00a73.
* revert doc-file trims; keep verbatim, plan custom prompt later
Per discussion in originating thread: `README.md` and `install.md`
are not referenced by any browsercode prompt or TS code, so trimming
them changed nothing the agent reads. `SKILL.md` IS referenced by
`packages/opencode/src/tool/browser-execute.txt`, but that pointer
is ours — long-term plan is to replace it with a browsercode-owned
prompt file that we evolve independently of upstream, which makes
vendored `SKILL.md` inert too.
Net: trimming these files added per-sync drift forever for zero
agent-behavior benefit. Reverting to upstream verbatim eliminates
the drift and keeps future syncs mechanical.
UPSTREAM.md §3 'Modified files' table loses three rows (only
`.gitignore` remains). Replaced with a paragraph explaining why
domain-skills mentions are tolerated in these files: the agent
never reads them, or won't once we own the prompt.
Verified: smoke test clean, `check-harness-diff.sh` post-revert
shows only the expected `.gitignore` divergence + 3 real upstream
commits we haven't synced (daemon.py, run.py, test_run.py).
Roadmap entry for the custom prompt replacement work tracked
separately in maintainer memory.
---------
Co-authored-by: bcode <bcode@agents.local>86 files changed
Lines changed: 58 additions & 26949 deletions
File tree
- packages/bcode-browser/harness
- agent-workspace/domain-skills
- amazon
- archive-org
- arxiv-bulk
- arxiv
- atlas
- booking-com
- capterra
- centilebrain
- coingecko
- coinmarketcap
- coursera
- craigslist
- crossref
- dev-to
- duckduckgo
- ebay
- etsy
- eventbrite
- expedia
- facebook
- framer
- fred
- g2
- genius
- github
- glassdoor
- gmail
- goodreads
- gutenberg
- hackernews
- howlongtobeat
- imdb
- itch-io
- job-boards
- letterboxd
- linkedin
- loom
- macrotrends
- medium
- metacritic
- musicbrainz
- nasa
- news-aggregation
- open-library
- openalex
- openstreetmap
- package-registries
- polymarket
- producthunt
- pubmed
- quora
- rawg
- reddit
- rest-countries
- salesforce
- sec-edgar
- soundcloud
- spotify
- spreadshirt
- stackoverflow
- steam
- substack
- thetechgeeks
- tiktok
- tradingview
- trello
- trustpilot
- walmart
- wayback-machine
- weather
- wellfound
- world-bank
- xiaohongshu
- youtube
- zillow
- domain-skills/shopify-admin
- script
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
109 | 126 | | |
110 | 127 | | |
111 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
Lines changed: 0 additions & 198 deletions
This file was deleted.
0 commit comments