Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
faa50e6
archive: checkpoint dirty primary before reconciliation
BigSimmo Jul 24, 2026
9945505
feat: implement document subsystem audit recommendations
BigSimmo Jul 24, 2026
80212dd
fix: remove leftover merge conflict markers from audit remediation
BigSimmo Jul 24, 2026
632e84c
style: prettier format after conflict-marker cleanup
BigSimmo Jul 24, 2026
e386d07
docs: record Run PR sweep ledger row for PR #1162
BigSimmo Jul 24, 2026
a398316
docs: supersede PR #1162 ledger row with final HEAD
BigSimmo Jul 24, 2026
9664fb2
docs: ledger aborted main merge for PR #1162
BigSimmo Jul 24, 2026
b4675d7
docs: ledger re-sync sweep for PR #1162
BigSimmo Jul 24, 2026
b666ffa
Merge branch 'main' into execute-audit-code-remediation
cursoragent Jul 24, 2026
1a77de9
fix(pr-1162): restore atomic upload after merge and align private-acc…
cursoragent Jul 24, 2026
3cb7c97
Merge branch 'main' into execute-audit-code-remediation
cursoragent Jul 24, 2026
1ea38c7
fix(pr-1162): restore CI and mobile back guards
BigSimmo Jul 24, 2026
cb90d3f
docs: record PR 1162 maintenance
BigSimmo Jul 24, 2026
638c4a2
Merge remote-tracking branch 'origin/main' into HEAD
BigSimmo Jul 24, 2026
97278ce
Merge remote-tracking branch 'origin/execute-audit-code-remediation' …
BigSimmo Jul 24, 2026
7091d2b
Merge remote-tracking branch 'origin/main' into execute-audit-code-re…
cursoragent Jul 24, 2026
a4fe9ce
Merge remote-tracking branch 'origin/main' into execute-audit-code-re…
cursoragent Jul 24, 2026
c39983e
Merge remote-tracking branch 'origin/main' into execute-audit-code-re…
cursoragent Jul 24, 2026
caf0e54
Merge cursor/pr-queue-hygiene-72ec for postcss audit + PR branch sync
cursoragent Jul 24, 2026
692eb24
Merge branch 'main' into execute-audit-code-remediation
github-actions[bot] Jul 24, 2026
0ac5d52
fix: merge main and resolve audit remediation conflicts
cursoragent Jul 25, 2026
aaeef86
fix: remove duplicate relevance fixture and allowlist prompt-perfector
cursoragent Jul 25, 2026
d545583
fix: surface view-only images and fail closed on cleanup ledger
cursoragent Jul 25, 2026
e5c8c49
docs: record PR #1162 merge/CI/Bugbot review in ledger
cursoragent Jul 25, 2026
f07c711
fix: clear remaining CI blockers for audit remediation
cursoragent Jul 25, 2026
09c6eb2
docs: ledger CI unblock for PR #1162
cursoragent Jul 25, 2026
1de1b32
fix: align services referral UI test with live heading and filters
cursoragent Jul 25, 2026
96188ec
docs: ledger Production UI fix for PR #1162
cursoragent Jul 25, 2026
a420b86
Merge branch 'main' into execute-audit-code-remediation
github-actions[bot] Jul 25, 2026
b9b56c1
Merge branch 'main' into execute-audit-code-remediation
github-actions[bot] Jul 25, 2026
edcd17a
docs: re-trigger CI after bot branch-sync for PR #1162
cursoragent Jul 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .agents/skills/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@
"categories": [
{
"name": "Everyday",
"skills": ["skills", "plan", "run", "test", "fix", "review", "task", "handover", "health", "audit", "export"]
"skills": [
"skills",
"plan",
"run",
"test",
"fix",
"review",
"task",
"handover",
"health",
"audit",
"export",
"prompt-perfector"
]
},
{
"name": "Clinical and app",
Expand Down
20 changes: 20 additions & 0 deletions .agents/skills/prompt-perfector/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: prompt-perfector
description: Refine, structure, and optimize user prompts for LLMs while ensuring execution occurs in a isolated environment. Use when asked to polish, perfect, or evaluate prompts safely.
---

# Prompt Perfector

Refines user prompts into structured, highly effective instructions and executes evaluation tasks in an isolated workspace (`Workspace: "branch"`).

## Core Capabilities

1. **Prompt Refinement**: Analyzes input prompts for clarity, context, constraints, output format specifications, and edge cases.
2. **Environment Isolation**: Ensures any code execution, prompt testing, or subagent tasks spawned for prompt validation run within an isolated workspace (`Workspace: "branch"` or `"share"`).

## Workflow

1. **Deconstruct Intent**: Identify the goal, target model, domain constraints, and missing specifications.
2. **Enhance Structure**: Apply structured formatting (System Instructions, Context, Input Schema, Output Constraints, Examples).
3. **Isolated Testing**: If prompt validation requires subagent execution or file testing, invoke subagents with `Workspace: "branch"`.
4. **Deliver Output**: Present the perfected prompt with a summary of structural enhancements and usage recommendations.
4 changes: 4 additions & 0 deletions .agents/skills/prompt-perfector/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface:
display_name: "Prompt Perfector"
short_description: "Refine prompts and evaluate them in isolation"
default_prompt: "Use $prompt-perfector to refine this prompt for clarity, constraints, and safe isolated evaluation."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
!/.agents/skills/performance/
!/.agents/skills/plan/
!/.agents/skills/privacy/
!/.agents/skills/prompt-perfector/
!/.agents/skills/rag-change-lab/
!/.agents/skills/rag/
!/.agents/skills/recovery/
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ Record one `docs/branch-review-ledger.md` row per PR touched, and end with the p

## Repository productivity skills

Automatically apply repo-local skills under `.agents/skills/` when their descriptions match the user's request. Run `npm run skills` for the validated catalog of 32 canonical single-word skills and `npm run check:skills` to verify catalog integrity. The older long names remain compatibility aliases and must not be counted as unique skills.
Automatically apply repo-local skills under `.agents/skills/` when their descriptions match the user's request. Run `npm run skills` for the validated catalog of 33 canonical single-word skills and `npm run check:skills` to verify catalog integrity. The older long names remain compatibility aliases and must not be counted as unique skills.

The foundational orchestration skills are:

Expand Down
26 changes: 13 additions & 13 deletions docs/audit-handover-2026-07-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,19 @@ evals, service-role tenancy regression class, upstream OCR quality labels drivin

### 4.1 Security / privacy / API

| ID | Finding | Evidence | Remediation wave |
| --- | ----------------------------------------------------------- | -------------------------------------------------------- | ---------------- |
| S1 | Authed public-doc DTOs leak `storage_path` / `content_hash` | `documents/route.ts`, `documents/[id]/route.ts` | Wave D1 |
| S2 | Auth UI trusts `getSession()`; APIs use `getUser` | `src/lib/supabase/client.tsx` | Wave D3 |
| S3 | Public-upload quarantine pool high blast radius if enabled | `upload/route.ts` + pool owner | Wave D4 |
| S4 | Auth 401 envelope `{ error }` only | `supabase/auth.ts` vs `http.ts` | Wave H1 |
| S5 | Many hand-rolled `{ error }` omit `code`/`message` | upload, doc 404s, feedback, demo | Wave H1 |
| S6 | Auth write/admin routes lack rate limits | bulk, labels, table-facts, ingestion/*, eval-cases, jobs | Wave H2 |
| S7 | Document list offset max `1_000_000` | `documents/route.ts` | Wave H3 |
| S8 | Upload reserves max body when Content-Length absent | `upload/route.ts` | Wave H4 |
| S9 | Authed stream summarize excludes public docs | `answer/stream` → `summarizeDocument` owner-only | Wave H5 |
| S10 | Bulk returns raw DB `error.message` | `documents/bulk/route.ts` | Wave D5 |
| S11 | `/api/jobs` can return demo jobs when env missing | `jobs/route.ts` | Wave H6 |
| ID | Finding | Evidence | Remediation wave |
| --- | ----------------------------------------------------------- | --------------------------------------------------------- | ---------------- |
| S1 | Authed public-doc DTOs leak `storage_path` / `content_hash` | `documents/route.ts`, `documents/[id]/route.ts` | Wave D1 |
| S2 | Auth UI trusts `getSession()`; APIs use `getUser` | `src/lib/supabase/client.tsx` | Wave D3 |
| S3 | Public-upload quarantine pool high blast radius if enabled | `upload/route.ts` + pool owner | Wave D4 |
| S4 | Auth 401 envelope `{ error }` only | `supabase/auth.ts` vs `http.ts` | Wave H1 |
| S5 | Many hand-rolled `{ error }` omit `code`/`message` | upload, doc 404s, feedback, demo | Wave H1 |
| S6 | Auth write/admin routes lack rate limits | bulk, labels, table-facts, ingestion/\*, eval-cases, jobs | Wave H2 |
| S7 | Document list offset max `1_000_000` | `documents/route.ts` | Wave H3 |
| S8 | Upload reserves max body when Content-Length absent | `upload/route.ts` | Wave H4 |
| S9 | Authed stream summarize excludes public docs | `answer/stream` → `summarizeDocument` owner-only | Wave H5 |
| S10 | Bulk returns raw DB `error.message` | `documents/bulk/route.ts` | Wave D5 |
| S11 | `/api/jobs` can return demo jobs when env missing | `jobs/route.ts` | Wave H6 |

### 4.2 Ingestion / indexing

Expand Down
Loading
Loading