Repository navigation
feat: Add a docs eval for secure apis - #544
jeremenichelli wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
czenko
left a comment
There was a problem hiding this comment.
This is thorough. The seed contract and the positive controls are clear.
Issue: The README says this has not run end to end, because it was written and typechecked without a Docker daemon. Could the correct solution, the empty workspace and the page's revoke block be scored on a real stack before this merges? That is also what settles the pg_default_acl question it raises.
Issue: The prompt's "30 days" and "returns how many it closed" are only partly measured. I think where updated_at < now() - interval '1 day' returning the count would pass the server key can run close_stale_tickets, because the 60 day ticket closes and the ticket touched today stays open. Could the scorer seed a ticket idle for 10 days that has to stay open, and compare the count to the tickets closed? Or the README could name both as out of scope.
Nit: neither a customer nor a signed-out visitor can run close_stale_tickets treats any error as a refusal. I think a function with the default invoker security and execute left open reads as refused, because the call fails with 42501 on the tickets update grant. The whitelist still reds it through anon, but a revoke from anon alone leaves this check green. The README could say that the whitelist is what catches that case. :)
Read the README, prompt, scorer and seed. Unverified: I ran none of the fixtures.
What kind of change does this PR introduce?
Feature: a new docs eval,
build-docs-020-securing-your-api.What is the current behavior?
There is no eval for the Securing your API guide, so nothing checks what an
agent leaves reachable through the Data API after following it.
What is the new behavior?
The eval has an agent build a support console's replies and notes tables and
its nightly job. It then checks that:
close_stale_ticketsAdditional context
PGRST303 JWT issued at futureafter sign-up.It reports could-not-measure if the error never clears.
service_role, sincethe console never does. It confirms the reply row as the superuser, and the
check is now named
the server key can write replies, and write and read notes.