Skip to content

Harden review matching, import guest reuse, explain parse, autopilot tiers - #370

Merged
telivity-otaip merged 4 commits into
mainfrom
cursor/harden-fragile-surfaces-9d9b
Sep 24, 2026
Merged

telivity-otaip merged 4 commits into
mainfrom
cursor/harden-fragile-surfaces-9d9b

Conversation

@telivity-otaip

@telivity-otaip telivity-otaip commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Hardens remaining fragile surfaces in public HAIP (no third-party AI SDK or product branding in the tree):

  1. Autopilot risk tiers (from prior harden work) — guest comms / review replies never auto-execute; money-moving agents need a higher confidence floor.
  2. Review drafts — word-boundary topic matching (stops bar/ac substring false positives); rating-3 sentiment uses simple praise/complaint cues; draft confidence stays modest.
  3. Explain JSON — prefer whole-body parse, reject bad shapes, cap rationale/suggestion length.
  4. Grounding — regression tests for fake prices / bad percent scaling (production rules already correct).
  5. CSV import — reuse guests by email when already linked at the property (same rule as channel/Connect), dedupe within a batch, map common header aliases (Guest E-mail, etc.).
  6. Property dedup — spec/docs only: same / maybe (human) / different. No merge module.

Test plan

  • review-response.models.spec.ts
  • llm.service.spec.ts / grounding.spec.ts
  • import.service.spec.ts (aliases, batch email dedupe, property-linked reuse)
  • agent-autopilot-tiers.spec.ts / agent.service.spec.ts
  • README / docs/test-stats.json synced for new cases (2418 / 281)

@telivity-otaip
telivity-otaip marked this pull request as ready for review September 24, 2026 07:05
cursoragent and others added 4 commits September 24, 2026 07:20
Stop substring false positives (bar/ac) and lean mixed-star reviews using
simple positive/negative word cues. Keep draft confidence modest.

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
Prefer whole-body JSON.parse, reject non-string rationale, and cap
rationale/suggestion length before display.

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
Find-or-create guests like channel/Connect when already linked at the
property, dedupe within a batch, and map Guest E-mail style headers.

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
Account for new review, LLM parse, and import unit cases so the
README stale-count gate matches CI.

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/harden-fragile-surfaces-9d9b branch from b0dfcc8 to f882da8 Compare September 24, 2026 07:20
@telivity-otaip
telivity-otaip merged commit cb8d140 into main Sep 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants