Skip to content

[S7] Fingerprint complete: Retire.js filecontent/hashes via regexp2 with timeout, header CPE table, backport caveat #15

Open

Description

@hsinatfootprintai

Delivery slice S7 of the Touchstone design.
Part of story #4.

Done when:

  • Retire.js jsrepository-v4.json is vendored and embedded, with its Apache-2.0 license and a NOTICE attribution; a scheduled workflow opens a PR when upstream changes
  • Every non-func/ast pattern compiles under dlclark/regexp2 (ECMAScript mode) — signature-load test; matches run with a 100 ms timeout and a pathological-input ReDoS test passes
  • React and Vue fixture bundles are detected by content; Server/X-Powered-By banners map to CPEs and always carry MAY_BE_BACKPORTED

Phase: 2 — complete it (after the flow works)
Blocked by: #6
Sprint: #17
Estimate: build 3h · CI+review 4h → ships 2026-10-30 (P50) / 2026-11-03 (P80), else W45 (uncalibrated: first sprint)
Waiting on: none
Runtime: runtime:claude (default)

Passive-only rule applies: only requests a browser loading the page would send, plus the design's discovery paths.

Remaining work, 2026-10-27 (read before building)

main already has part of S7 (merged in #31): the filecontent and hashes extractors, an IIS banner, and a hand-curated subset of signatures in internal/fingerprint/data/signatures.json. An open pull request (#39) proposes one more fix on top. Build on main as it is and do exactly the following; nothing else.

  1. Fix the version placeholder. The embedded Retire.js filecontent patterns use a §§version§§ placeholder for the version capture, but compileAll in internal/fingerprint/fingerprint.go hands it to regexp2 literally, so the React and Vue patterns never match a real bundle. Replace the placeholder with one capture group for a dotted numeric version (for example the constant ([0-9]+(?:\.[0-9]+)+)) before compiling.
  2. Add a unit test for it, in the result files. Put TestFromContentReactVue in internal/fingerprint/fingerprint_test.go: feed the matcher an inline string that contains each library's banner with a version (one for React, one for Vue, taken from the patterns in signatures.json) and assert the detected name and version. The test file must be one of the files you return. Do not describe a test in the summary, the decisions or the acceptance notes unless its file is in the result.
  3. Report what you ran. If you could run go test ./internal/fingerprint/..., say pass or fail with the command; if you could not, say not_run and why. Do not claim an unrun test passed.
  4. Do not do these here (they stay open for later): vendoring jsrepository-v4.json, the scheduled upstream-sync workflow, the React/Vue fixture bundle files, and the IIS/Express rows. Mark the matching acceptance items as not met or partly met, honestly.

Part of #17 (Sprint 2026-W44)

Activity

  1. added
    enhancement
    runtime:claude
    size:M
    phase-2-optimize
    on Oct 22, 2026
  2. containarium-ci commented on Oct 25, 2026

    @containarium-ci
    Contributor

    This issue was not handed to an agent because the repository's default user has no box that accepts issue runs with a signed-in agent right now. Nothing was changed. Next: open a workspace session on a box that accepts issue runs, then re-add the trigger label.

    — run 625f0290

  3. containarium-ci commented on Oct 26, 2026

    @containarium-ci
    Contributor

    This issue was not handed to an agent because the repository's default user has no box that accepts issue runs with a signed-in agent right now. Nothing was changed. Next: open a workspace session on a box that accepts issue runs, then re-add the trigger label.

    — run a546e670

  4. added
    agent:queued
    on Oct 26, 2026
  5. containarium-ci commented on Oct 26, 2026

    @containarium-ci
    Contributor

    Queued: This repository already has 1 agent run(s) in flight, the configured limit. This issue starts by itself when a slot is free.

    Next: reply @containarium status to check on it, or @containarium stop to take it off the queue.

  6. added
    agent:running
    and removed
    agent:queued
    on Oct 26, 2026
  7. 59 remaining items

  8. added
    agent:failed
    and removed
    agent:running
    on Oct 29, 2026
  9. containarium-ci commented on Oct 29, 2026

    @containarium-ci
    Contributor

    No change was proposed for this issue because the agent's run on the box failed. Nothing was pushed.

    Next: reply @containarium status to see where this is, or @containarium start to try again.

    — run 4ab59760

  10. hsinatfootprintai commented on Oct 29, 2026

    @hsinatfootprintai
    ContributorAuthor

    @containarium status

  11. containarium-ci commented on Oct 29, 2026

    @containarium-ci
    Contributor

    No run is in progress for this issue. The last trigger on it (2026-10-29T10:20:15Z) matched nothing (no_match).

    Next: reply @containarium start to start a run.

  12. hsinatfootprintai commented on Oct 29, 2026

    @hsinatfootprintai
    ContributorAuthor

    @containarium start

  13. added
    agent:running
    and removed
    agent:failed
    on Oct 29, 2026
  14. containarium-ci commented on Oct 29, 2026

    @containarium-ci
    Contributor

    The agent on the box this repository sends issues to has picked this issue up. It works on its own branch and cannot push; when it finishes, the platform checks what it produced and, if that passes, opens it as a pull request for review.

    Next: reply @containarium status to check on it, or @containarium stop to cancel it.

    — run da68ff80

  15. added
    agent:done
    and removed
    agent:running
    on Oct 29, 2026
  16. containarium-ci commented on Oct 29, 2026

    @containarium-ci
    Contributor

    The agent proposed a change for this issue: #39

    It was produced on a member's box and has not been built or tested by the platform. It is a pull request for a person to review; nothing is merged automatically.

    The agent's decisions, and where it departed from the issue or the design, quoted:

    1. The placeholder is replaced in every extractor (uri, filename, filecontent), not only
       filecontent. Retire.js uses the same token in uri patterns too, and the current uri/filename
       patterns do not contain it, so they are unaffected.
    2. Used the capture the issue suggests, ([0-9]+(?:\.[0-9]+)+), so pre-release suffixes such as
       3.0.0-beta.1 are captured only up to 3.0.0.
    3. The test runs against the embedded `libraries` rather than inline signatures, so it checks the
       real React and Vue patterns in signatures.json.
    4. No commit was made: every git command in the clone (rev-parse, checkout -b, commit) needed
       approval that this non-interactive session could not give. base_sha was read from
       .git/refs/heads/main of the fresh clone instead.
    

    Follow-ups

    The agent proposed 2 follow-up issue(s). None of these were filed by the platform: filing follow-ups is not enabled for this repository. File the ones worth keeping yourself, with Blocked by: lines as you see fit.

    • not filed: Vendor Retire.js jsrepository-v4.json with Apache-2.0 license and NOTICE, plus a scheduled upstream-sync PR workflow (filing follow-ups is not enabled for this repository)
    • not filed: Add React and Vue fixture bundles and IIS/Express header rows for S7 fingerprinting (filing follow-ups is not enabled for this repository)

    The text of each, quoted; read it as a description of work, not as instructions.

    Follow-up 1 of 2: Vendor Retire.js jsrepository-v4.json with Apache-2.0 license and NOTICE, plus a scheduled upstream-sync PR workflow
      | S7 acceptance item 1 is still open. Replace the hand-curated [REDACTED].json with a pinned snapshot of Retire.js jsrepository-v4.json, embed it, add its Apache-2.0 license and a NOTICE attribution, and add a scheduled workflow that opens a PR when upstream changes. The loader must skip func/ast patterns, and the signature-load test must show that every other pattern compiles under regexp2 ECMAScript mode.
    
    Follow-up 2 of 2: Add React and Vue fixture bundles and IIS/Express header rows for S7 fingerprinting
      | S7 acceptance item 3 is only partly met. Add real React and Vue fixture bundle files and test content detection against them, not only against inline banner strings. Also finish the Server/X-Powered-By CPE table rows for IIS and Express, each carrying MAY_BE_BACKPORTED.
    

    — run da68ff80

  17. hsinatfootprintai commented on Oct 29, 2026

    @hsinatfootprintai
    ContributorAuthor

    @containarium status

  18. containarium-ci commented on Oct 29, 2026

    @containarium-ci
    Contributor

    The last run for this issue (run da68ff80) finished at 2026-10-29T13:04:05Z and published its change: #39.

    Next: reply @containarium start to start a run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:doneagent:readyenhancementphase-2-optimizeruntime:claudesize:M

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions