Skip to content

docs(skills): add source attribution and evidence handoff guidance - #2701

Closed
rohitg00 wants to merge 34 commits into
morluto:mainfrom
rohitg00:fix/composite-cleanup-diagnostics
Closed

rohitg00 wants to merge 34 commits into
morluto:mainfrom
rohitg00:fix/composite-cleanup-diagnostics

Conversation

@rohitg00

@rohitg00 rohitg00 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add an installed skill workflow for attributing captured website code and handing off an investigation without losing Evidence provenance or unresolved questions. Agents can select retained script bytes, interpret source-map coordinates and module candidates, and resume from a portable Evidence bundle while preserving coverage limits.

Change and scope

  • Add the authored web-feature-attribution.md reference for script export, source-map lookup and module attribution. Keep source identity, execution coverage and feature causality distinct, including the scenario response-body limitation.
  • Extend Evidence guidance with discriminating probes, residual-unknown revision handling, export/import handoffs and historical-observation limits. Raw error observations without recorded Evidence IDs require separate preservation.
  • Register the reference in the managed skill inventory, update its two installation expectations, and advance skill metadata to version 43.

This is the remaining skills contribution requested in the maintainer's scope review. Already-delivered cleanup and retention changes are removed from the diff against main. Other runtime additions, including Evidence-summary pagination, are excluded from this narrowed PR; the guidance uses the current unpaged summary contract.

Contract and boundary impact

The authored .agents skill sources own the guidance. Managed installation includes the new reference; generated skills/ output is not committed. CLI/MCP schemas, analysis implementations, provider behavior and session semantics match main. No dependency, migration or new execution authority is introduced.

  • Documentation or usability only; no target interaction.

Evidence and validation

  • Reviewed all six changed files against main bec88b9d and traced the guidance to current source contracts and documentation. Applied the code-simplifier review to the small inventory/metadata changes.
  • oxfmt --check on all six changed files: passed.
  • git diff --check origin/main: passed.
  • Source audit: five fenced JSON examples parse; 27 linked repository source paths exist; skill version and managed reference entries agree. Package metadata regenerated with the existing generator.
  • Updated installation expectations were inspected, not executed. Tests, builds, packaged installation and provider runs remain skipped at the maintainer's request. Earlier test and CI receipts do not validate this revision. Live workflow behavior remains unverified.

Author readiness

Human owner: @rohitg00

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T15:55:39.767603Z
We couldn’t complete this review. Comment @codex review to try again.
b4a5cf0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable correctness or security issue was found.

Summary

Adds installed skill guidance for tracing captured website scripts and handing off investigations.

  • The skill guides agents from captured scripts to source points and candidate modules.
  • Open questions stay tied to the evidence and probes that could answer them.

No new actionable issues were found. Tests, builds and browser workflows were not run. GitHub status and possible replacement PRs could not be checked because authentication was unavailable.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Saved browser capture] --> B[Export scripts and manifest]
  B --> C[Trace selected source point]
  B --> D[Trace module imports]
  C --> E[Bounded conclusion]
  D --> E
  E --> F[Export Evidence and Unknown history]
  F --> G[Import into destination session]
  H[Preserved scripts and maps] --> G
Loading

Reviews (17) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

@rohitg00 rohitg00 changed the title fix(binary): retain all composite cleanup failures feat(evidence): preserve artifact observations and support paged handoffs Oct 13, 2026
Comment thread src/artifacts/apple/NibViewHierarchy.ts Resolved
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open.

  1. thread 1

Legacy traversal now examines every physical copy before deduplicating logical IDs. It removes disputed incoming links from each copy, then unions descendant lists from detached duplicate copies using per-node child indexes, retaining fuller later branches. Ownership follows moved child lists; existing observed non-disputed links remain. Added a repeated-ancestor/depth-limited-copy regression source.

Source-inspected at 3cfbeb675b9adc240de9a33199a39fa19e0800e8. Tests, checks, builds and real-provider runs were not executed, as explicitly requested by the user. This resolves the source correction; no executed verification is claimed.

@morluto morluto added enhancement New feature or request area: evidence Evidence, artifacts, and reconstruction area: cli CLI adapter and one-shot commands labels Oct 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7ec8a9f202

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/domain/sqlite/sqliteDatabase.ts Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@rohitg00
rohitg00 marked this pull request as draft October 14, 2026 10:14
@rohitg00
rohitg00 marked this pull request as ready for review October 14, 2026 10:22
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

… cases

The completed-reply fixture nested row_selection inside inspection, which the strict reply parser rejects. Split it as the real worker does. Extract mismatch and expectation helpers so both new boundary tests satisfy max-lines-per-function.
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Compared this PR with main fc712b375 during the fixed/superseded backlog audit.

The linked #2591/#2612 cleanup and retained-Evidence semantics are already delivered, including 31b9930 and b940ad0. That alone does not make this aggregate PR redundant.

The authored web-feature-attribution.md skill reference and related Evidence workflow guidance still differ from main. Please split or rebase those remaining contributions, preserve provenance/session semantics, and remove already-delivered code from the pending summary. Edit the authored .agents skill sources; generated skills/ output should not become a second owner.

PR head reviewed: 0bebf1258. This is a source comparison; no new PR-branch tests or provider runs were performed for this comment.

@CassieFox23

Copy link
Copy Markdown
Contributor

TL;DR: I ran the 12 test files this PR adds or changes, on Node 24.18.0 and 26.11.1. All 12 pass, with 126 passed and 1 skipped on purpose. On Node 22.23.1 the SQLite tests skip by design, because they need Node 24.15 or newer.

Thanks, rohitg00, for the work. I tested head 0bebf12 against its merge base cf0a38a (#3853). Main was at 40f73f6 (#3735).

Results

Check Node 22.23.1 Node 24.18.0 Node 26.11.1
Test files passed 10 of 12 (2 skipped whole) 12 of 12 12 of 12
Tests passed 75 126 126
Tests skipped 52 1 1
Failures 0 0 0
  • On Node 22 the SQLite tests skip, as the code intends. The test says it needs "Node.js 24.x >=24.15 or 26+". So the 52 skips are expected, not hidden failures.
  • On Node 24 and 26, one test skips. It checks the error shown when SQLite limits are missing, so it does not apply.
  • The tests cover SQLite inspection and worker cleanup. They also cover NIB parent conflicts and paged evidence summaries over MCP.
  • They also cover cleanup, server lifecycle and owned commands.
  • The PR title says "feature", so there is no before and after on main. The new tests have nothing to run against on main.

Not run

  • The setupSkill test file: it calls the doctor command. That command reads agent files in the home folder, so I skip any file that does.
  • The full test suite, and any real-provider run (Ghidra and similar).
  • Windows and macOS.
  • I did not review the skill and docs edits for wording. The build step that regenerates skills passed.
  • I did not try the split morluto asked for on 2026-10-15. These results are for the PR as it stands.
Commands
git -C ~/code/rea-mirror/rea.git fetch origin
git -C ~/code/rea-mirror/rea.git archive 0bebf1258c25744cddb7f81af8baf3c30187b3ee | tar -x -C /tmp/fresh-1015/2701-head
npm ci && npm run build && npm run test:prepare   # Node 24.18.0, all exit 0
node scripts/run-development-tests.mjs focused \
  src/application/sqlite/SqliteDatabaseService.test.ts \
  src/artifacts/apple/NibViewHierarchy.test.ts \
  tests/acceptance/applications/nibParentConflicts.test.ts \
  tests/acceptance/evidenceSummaryPagination.test.ts \
  tests/acceptance/sqliteDatabaseCli.test.ts \
  tests/boundary/mcp/compositeCleanupMcp.test.ts \
  tests/boundary/mcp/evidenceSummaryPaginationMcp.test.ts \
  tests/boundary/mcp/serverLifecycleMcp.test.ts \
  tests/boundary/process/ownedCommand.test.ts \
  tests/boundary/sqlite/sqliteDatabaseProvider.test.ts \
  tests/boundary/sqlite/sqliteDatabaseSelection.test.ts \
  tests/boundary/sqlite/sqliteDatabaseWorkerCleanup.test.ts
# run once per Node (22, 24, 26); each exit 0; about 30 to 45 seconds each
Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB DDR4-3600
  • Node: 22.23.1, 24.18.0, 26.11.1 (dependencies installed once, with Node 24, and reused for all three runs)
  • Head: 0bebf12
  • Base: cf0a38a
  • Other: the box was shared with other test agents, so timings are rough.

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

@rohitg00 rohitg00 changed the title feat(evidence): preserve artifact observations and support paged handoffs docs(skills): add source attribution and evidence handoff guidance Oct 17, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@rohitg00

Copy link
Copy Markdown
Contributor Author

Split the remaining skill guidance from this PR into #10506 on current main, as asked in review. It edits only the authored .agents skill sources and drops the parts main already delivered. This PR can be closed once #10506 is reviewed.

@morluto morluto added the documentation Improvements or additions to documentation label Nov 23, 2026
@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@rohitg00 thanks for the PR — this branch has merge conflicts with main. Could you merge or rebase onto the latest main and resolve them? Once it's clean and CI is green we can take another look.
cc @gensokyo-dev @dandgabr

…-diagnostics

# Conflicts:
#	.agents/skills/reverse-engineer-anything/SKILL.md
#	.agents/skills/reverse-engineer-anything/references/evidence-workflows.md
#	src/generatedPackageMetadata.ts
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@vincentkoc

Copy link
Copy Markdown
Collaborator

thanks for splitting this out! we’ve reviewed the successor and are continuing the remaining guidance and test work in #10506. closing this older PR as requested so the contribution has one review thread.

@vincentkoc vincentkoc closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands area: evidence Evidence, artifacts, and reconstruction area: server Server layer and tool wiring documentation Improvements or additions to documentation enhancement New feature or request P2: medium Medium priority issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants