Skip to content

Commit 2b1cc58

Browse files
committed
fix(docs): reconcile canonical layout and verify new pages
2 parents 51aa6ee + fb28ec1 commit 2b1cc58

677 files changed

Lines changed: 95759 additions & 35477 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/reverse-engineer-anything/SKILL.md‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: reverse-engineer-anything
33
description: Reverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.
44
metadata:
5-
version: "40"
5+
version: "41"
66
---
77

88
# REA
@@ -61,19 +61,40 @@ explicit path or endpoint and do not need it.
6161
consult the NativeAOT workflow in `references/native-and-artifacts.md` for
6262
optional metadata recovery and its supported host/layout boundary.
6363
- User-owned browser page already open: `list_browser_targets`.
64-
- Retained HAR/native mitmproxy capture: `inspect_web_network_capture`. Select
64+
- Fiddler Everywhere traffic or a native `.saz` capture: read the
65+
[Fiddler workflow](references/runtime-observation.md#fiddler-everywhere-traffic-debugging).
66+
Inspect saved SAZ with `inspect_web_network_capture` and `format: "saz"`;
67+
connect Everywhere's separate MCP server for live traffic.
68+
- Retained HAR/SAZ/native mitmproxy/aioquic qlog capture: `inspect_web_network_capture`. Select
6569
original record ordinals when useful; inspect producer fields and byte/number
6670
sidecars without fetching recorded URLs or claiming live attribution. See
6771
[historical captures](https://github.com/morluto/rea/blob/main/docs/guides/web/web-network-captures.md) for the exact upstream
68-
profile and credential exclusions.
72+
profile and credential exclusions. Qlog support starts with aioquic 1.5.0
73+
JSON 0.3; stream coverage and endpoint loss declarations do not recover bodies
74+
or establish network loss. Prefer detail summary, then kind qlog trace/stream
75+
pages; select one trace, stream ID and direction for contribution/range pages.
76+
Facts retain all-recorded-events-before-selection scope. Other qlog layouts
77+
and PCAP correlation are unsupported.
6978
- User-owned Electron runtime already open: `list_electron_targets`.
79+
- Packet-field discovery: `inspect_packet_fields` searches installed protocols
80+
and field names/types before choosing fields for `inspect_packet_capture`.
81+
Query/page the relevant records; registrations do not establish observed traffic.
7082
- Recorded packet captures: `inspect_packet_capture` with selected TShark fields,
7183
display filters and decode-as rules. Requires Linux, util-linux prlimit and `REA_TSHARK_COMMAND`; see
7284
[capture guide](https://github.com/morluto/rea/blob/main/docs/guides/data/packet-captures.md).
7385
Packet limits count input packets before filtering. Output defaults to 50 matching
7486
frames; use `match_offset` / `match_limit` for later pages, or explicit null
7587
limit for complete matching output. Preserve the source digest across pages.
7688
This does not perform live capture.
89+
For address/DNS/SNI/protocol summaries use `inspect_pcap_capture` with MCP
90+
detail summary, then retained kind pcap pages. Requires Wireshark 4.x tshark
91+
and capinfos, with Linux prlimit or Windows Job Objects; see
92+
[packet summaries](https://github.com/morluto/rea/blob/main/docs/guides/data/pcap-analysis.md).
93+
Select an exact DNS question for address pages; page exhaustion does not prove
94+
network completeness. This reads recordings and does not acquire traffic.
95+
- Decoder discovery: `inspect_signal_decoders` searches installed decoder IDs
96+
or selected decoder help, including channels and options. Query and page the
97+
relevant details before choosing settings; this does not scan hardware.
7798
- Recorded logic/signal traces: `decode_signal_recording` with explicit decoder,
7899
channel and protocol settings. On Linux with util-linux prlimit, supply sigrok-cli 0.7.2 through
79100
`REA_SIGROK_COMMAND`; see [recording guide](https://github.com/morluto/rea/blob/main/docs/guides/signals/signal-recordings.md).

‎.agents/skills/reverse-engineer-anything/references/native-and-artifacts.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ names, the native API record, and value-flow summaries. Pseudocode offsets and l
8383
code units; use the returned `next_offset` for continuation. Provider limitations
8484
and unavailable facts remain explicit; the complete parent Evidence is retained.
8585

86+
`inspect_macho` on a large framework returns megabytes of imports and exports.
87+
Select `detail: "summary"` for slice identity, UUID and per-collection counts,
88+
then page rows with `view: {kind: "macho", facet: "exports", offset: 0, limit: 64}`
89+
and `normalized_result.parent_evidence_id`. Facets are entrypoints,
90+
architectures, build_metadata, load_commands, dependencies, imports, exports,
91+
segments and provenance. `source_exhaustive: false` means unreturned symbols
92+
may exist.
93+
8694
To see which functions or Objective-C methods a Mach-O actually calls in one
8795
run, use `observe_native_calls` with explicit breakpoints and a bounded
8896
`duration_ms`/`max_events`. It launches a new process under LLDB, so the target
@@ -111,6 +119,8 @@ loaded bytes, file mappings, relocations and the entry against the immutable
111119
snapshot. Keep `mismatch` and `unsupported` explicit. Verified import covers the
112120
reported static image, not runtime DOS or PC-98 hardware behavior.
113121

122+
For Ghidra decompilation, `procedure_pseudo_code` also accepts `procedure: "file-offset:0x..."`; CLI `rea decompile <path> --file-offset=0x... --provider ghidra` resolves the source byte offset internally. An unresolved 0x-prefixed numeric procedure selector also falls back to a unique file mapping. Existing symbols and analysis addresses win; multiple mappings fail as ambiguous. Preserve the returned file-offset and address locations and raw selection observations. ELF virtual addresses are distinct from file offsets; never assume an arbitrary offset plus image base is an analysis address.
123+
114124
Use `read_bytes` for initialized analysis memory and `address_to_file_offset` to
115125
anchor one observed address to original file bytes. Loader fixups can change a
116126
word; a source offset does not imply byte equality. Complete function body ranges
@@ -194,8 +204,9 @@ every executable in the bundle. It also lists missing or weak loads and earlier
194204
`architecture`. System paths stay undetermined because the dyld shared cache
195205
provides them.
196206

197-
Use `extract_artifact` when materialized files are needed. It takes no arguments
198-
and materializes all regular files into a fresh temporary directory chosen by
207+
Use `extract_artifact` when materialized files are needed. It extracts the active
208+
target and accepts optional `integrity_policy`; see the [MCP contracts](https://github.com/morluto/rea/blob/main/docs/reference/mcp-contracts.md).
209+
It materializes all regular files into a fresh temporary directory chosen by
199210
REA. Symlinks and encrypted entries are inventory facts, not extractable files.
200211
The result reports the materialized directory; callers do not choose the
201212
destination. No separate permission grant is needed.

‎.agents/skills/reverse-engineer-anything/references/runtime-observation.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,18 @@ passive browser/Electron Evidence exist. Prefer captured-source digest identity;
2626
report path/digest disagreement as a mismatch and preserve ambiguity. Explicit
2727
path mappings are inference inputs and never broaden filesystem or CDP authority.
2828
A bundle observed at runtime does not prove every contained module executed.
29+
30+
## Fiddler Everywhere traffic debugging
31+
32+
For large saved captures, request `detail: "summary"`, then page retained Evidence
33+
with `inspect_analysis_view` and `view: {kind: "capture", detail: "preview", offset: 0, limit: 20}`.
34+
Select complete record pages only for needed headers, metadata or payloads; views
35+
read the historical parent without repeating capture decoding.
36+
37+
Inspect native `.saz` snapshots with `inspect_web_network_capture` and
38+
`format: "saz"`; encrypted archives are unsupported. For live
39+
traffic analysis, connect Everywhere's separate MCP server and use its
40+
advertised session tools with an explicit `sessionsSource` (`LiveTraffic` or
41+
`AgentCalls`). Preserve existing sessions and filters when inspecting a
42+
recorded run. See the [capture and MCP guide](https://github.com/morluto/rea/blob/main/docs/guides/web/web-network-captures.md)
43+
for the workflow and Telerik's public setup and traffic-debugging skills.

‎.gitattributes‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
# Windows command fixtures retain their native line endings.
55
*.cmd text eol=crlf
6+
7+
# Preserve whitespace in original upstream licensing texts.
8+
licenses/npm-runtime-notices.txt whitespace=-blank-at-eol

‎.github/actions/portable-build-cache/action.yml‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
name: Portable build cache
2-
description: Reuse Turbo build outputs without serializing verification jobs.
2+
description: Restore portable Turbo build outputs from the current run or cross-run cache.
33
inputs:
44
save:
55
description: Save newly built outputs after the job succeeds.
66
default: "false"
7+
build_cache_artifact:
8+
description: Reuse portable Turbo outputs uploaded by the current workflow run.
9+
default: ""
710
runs:
811
using: composite
912
steps:
13+
- name: Download portable build outputs from this workflow run
14+
if: inputs.build_cache_artifact != ''
15+
uses: actions/download-artifact@v4
16+
with:
17+
name: ${{ inputs.build_cache_artifact }}
18+
path: .turbo/cache/
1019
- name: Resolve portable build task hashes
1120
id: plan
21+
if: inputs.build_cache_artifact == ''
1222
shell: bash
1323
env:
1424
BUILD_CACHE_PREFIX: rea-portable-build-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.npmrc', '.nvmrc', 'package-lock.json') }}
@@ -28,14 +38,14 @@ runs:
2838
console.log(`prefix=${process.env.BUILD_CACHE_PREFIX}-`);
2939
' >> "$GITHUB_OUTPUT"
3040
- name: Restore portable build outputs
31-
if: inputs.save != 'true'
41+
if: inputs.build_cache_artifact == '' && inputs.save != 'true'
3242
uses: actions/cache/restore@v4
3343
with:
3444
path: .turbo/cache/
3545
key: ${{ steps.plan.outputs.key }}
3646
restore-keys: ${{ steps.plan.outputs.prefix }}
3747
- name: Restore and save portable build outputs
38-
if: inputs.save == 'true'
48+
if: inputs.build_cache_artifact == '' && inputs.save == 'true'
3949
uses: actions/cache@v4
4050
with:
4151
path: .turbo/cache/

‎.github/workflows/ci-full-pr.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Full PR qualification
2+
3+
on:
4+
pull_request:
5+
branches: [main, "release/*"]
6+
types: [labeled]
7+
8+
permissions:
9+
contents: read
10+
actions: read
11+
12+
jobs:
13+
qualification:
14+
name: Qualify labeled PR revision
15+
if: github.event.label.name == 'ci:full'
16+
uses: ./.github/workflows/ci.yml
17+
with:
18+
source_sha: ${{ github.sha }}

‎.github/workflows/ci-timings.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI timings
2+
3+
on:
4+
schedule:
5+
- cron: "17 * * * *"
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ci-timings-${{ github.repository }}
10+
cancel-in-progress: false
11+
12+
permissions:
13+
contents: read
14+
actions: read
15+
16+
jobs:
17+
report:
18+
name: Collect recent completed workflow attempts
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 5
21+
steps:
22+
# Consume only API data and execute batch code from the trusted default branch.
23+
- uses: actions/checkout@v4
24+
with:
25+
ref: ${{ github.event.repository.default_branch }}
26+
persist-credentials: false
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version-file: .nvmrc
30+
- name: Record queue, execution, and matched step timing
31+
continue-on-error: true
32+
env:
33+
GH_TOKEN: ${{ github.token }}
34+
CI_REPOSITORY: ${{ github.repository }}
35+
run: node scripts/ci/job-timings-batch.mjs
36+
- name: Upload CI timing artifacts
37+
if: always() && hashFiles('.cache/ci-job-timings/*') != ''
38+
continue-on-error: true
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: ci-job-timings-batch
42+
path: .cache/ci-job-timings/
43+
include-hidden-files: true
44+
if-no-files-found: error
45+
overwrite: true
46+
retention-days: 14

0 commit comments

Comments
 (0)