Commit graph

3 commits

Author SHA1 Message Date
Cursor Agent
eaefc4f2ec
test(surveys): assert stable order when created_at timestamps tie
Patch _now_ts so two answers share the same second; verify both fetch
paths return rows ordered by id when timestamps match.

Co-authored-by: nic <nicsins@users.noreply.github.com>
2026-03-22 06:44:24 +00:00
Cursor Agent
b0677baf30
fix(surveys): stable order for unprocessed answers when timestamps tie
SQLite orders rows with identical created_at arbitrarily. Tie-break on id
so fetch_unprocessed_* results are deterministic under concurrency or rapid
inserts (avoids flaky tests and consumers assuming FIFO order).

Co-authored-by: nic <nicsins@users.noreply.github.com>
2026-03-22 05:40:43 +00:00
nic
37e696b104
Agent persona profiles (#7)
* Add survey profile DB, parser, and background refiner

Co-authored-by: nic <nicsins@users.noreply.github.com>

* Block external survey domains unless allowlisted

Co-authored-by: nic <nicsins@users.noreply.github.com>

* Add persona creation tool for survey personas

Co-authored-by: nic <nicsins@users.noreply.github.com>

* Add local survey demo and documentation

Co-authored-by: nic <nicsins@users.noreply.github.com>

* Add profile update tool and email env fallback

Co-authored-by: nic <nicsins@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: nic <nicsins@users.noreply.github.com>
2026-03-17 02:41:34 -05:00