Follow-ups from the xpd feature-review ledger#3

opened18h agobyBBjørn Aagaard

Migrated from GitHub issue bjoernaagaard/xpd#42.

Follow-ups found while building the feature-review ledger (PR #41, released as 0.61.0).

Hook false positives for product features

These prompts each get the xpd feature-review hint, though they are about product features:

  • Add a new feature to the model selection page of my app
  • Make the model picker feature work on mobile
  • Check this feature flag on the forecast page

feature_review_prompt matches any intent word plus "feature" plus "model" or "forecast". The spec says product features stay on their existing routes.

Next line after a fully answered plan

After a plan that answers every item and leaves no open fix, the plan's Next line still says "Read the ledger with xpd feature-review --format json and judge each finding..." and does not point to xpd feature-review finish. Reproduce with C3's final plan (6 accepted, 35 answered).

Unstable finding IDs for target encoders and pack findings

Target-encoder finding keys are owner plus the outer call text (for example "cross_val_score"), and pack-finding keys are owner, rule and message, with no call identity. Two unsafe encoders in one file feeding cross_val_score get ordinal-based IDs, so inserting a new one above the first renumbers both IDs. Not reproduced. Seen in static_survey.rs encoder_findings and append_pack_findings.

🤖 Generated with Claude Code