Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Preserve third-party license notices byte-for-byte on every checkout.
benchmarks/prospective-review-v1/*/licenses/* -text
benchmarks/path-audit-v1/** -text
benchmarks/cursor-native-v1/** -text
6 changes: 6 additions & 0 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ with the published v0.26.1 wheel. It records five directory-reference misses and
a separate post-hoc generated-output false positive. Its provisional observations
are not independent human labels or a general accuracy estimate.

A [native Cursor behavioral smoke check](cursor-native-v1/README.md) retains four
file-context cases and one explicit-selection control run in the desktop client.
Visible reply markers matched the frozen predictions in those contexts. Empty
hook attachment lists and their observability limit are retained too. This is
not a complete attachment trace or independent accuracy estimate.

None of these workflows claims that A 100 means semantic prompt quality.

## AI comparison status
Expand Down
92 changes: 92 additions & 0 deletions benchmarks/cursor-native-v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Native Cursor behavioral smoke check

Completed **2026-11-13**, with a user operating **Cursor desktop 3.29.15 on
Windows x64**. The model picker showed **Grok 4.7** at setup; the backend model
snapshot was not attested per run. Predictions came from the unchanged published
**ACS v0.26.1** wheel, with its retained runtime source identity.

Four automatic file-context cases produced visible marker sets matching the
frozen predictions. One explicit-selection control also emitted its requested
marker. **This is a small native behavioral smoke check, not a complete attachment
trace, general compatibility guarantee or independent accuracy study.**

## Observations

| Case / screenshot | Explicit file context | Predicted active rule names | Visible marker names | Observed file reads |
| --- | --- | --- | --- | --- |
| [API only](screenshots/api-only.png) | `src/api/service.py` | ALWAYS, API | ALWAYS, API | `src/api/service.py` |
| [Web only](screenshots/web-only.png) | `src/web/app.ts` | ALWAYS, WEB | ALWAYS, WEB | `src/web/app.ts` |
| [Joint](screenshots/joint.png) | Both files above | ALWAYS, API, WEB | ALWAYS, API, WEB | Both files above |
| [Root TypeScript](screenshots/root-ts.png) | `index.ts` | ALWAYS, ROOT_ONLY | ALWAYS, ROOT_ONLY | `index.ts` |
| [Explicit-selection control](screenshots/manual-control.png) | Select `always.mdc` | Control expects ALWAYS | ALWAYS | No read event retained |

Five distinct conversation identifiers and ten native events were retained:
five prompt events and five file-read events. The fixture's rule, target and
collector bytes stayed unchanged. Observed reads were all declared targets;
these two hooks are not assumed to record every possible action.

The last control selects an **always-apply** rule. It checks that the marker
response can be elicited with deliberate selection; it does not independently
validate a manual-only rule mode.

[Prepared inputs](prepared-inputs.json) retain random marker keys, original
hashes and complete frozen ACS predictions. Keys and predictions were outside
the workspace, not in prompts or target code. [Observations](observations.json)
contain assistant transcriptions of user-supplied screenshots. These are not
OCR, independent labels or complete exported transcripts. Cropped screenshots
are retained for inspection; account UI screenshots are not published.

## Preserved observability limits

The [original protocol](protocol.json) used neutral rules and proposed reading
native hook attachment lists. Actual lists remained empty even with a visible
explicit rule chip. The diagnostic collector recorded the raw count before
filtering: zero attachments, zero discarded entries. [Initial events](initial-hook-events.jsonl)
preserve both collector versions. The [transcript export](initial-transcript.md)
contained conversation text and a rule name, not its body or full context.
No Context Usage entry was visible in the supplied full-window screenshot;
the component's presence in installed code did not establish UI availability.

These limits were preserved. A [behavior addendum](behavior-protocol.json)
declared the separate marker experiment before queries. Preparation was committed
at `c97f307` before the five observed queries. This is local evidence ordering,
not independently timestamped preregistration. The user selected target file
chips in fresh chats and supplied screenshots; no assistant model run was
substituted for the native client.

Marker appearance is behavior consistent with access to a rule body. Missing
markers could be noncompliance. Neither outcome identifies the complete hidden
prompt or proves how a rule became available. User/team settings were not
independently captured. There was one run per context, with no alternate-model,
OS, nested-workspace, adversarial or long-session measurement. Do not turn these
counts into general accuracy or security claims.

## Verify retained evidence offline

From a checkout with Python 3.10+:

```bash
python scripts/verify_cursor_native_evidence.py
```

This checks the integrity index, fixture hashes, distinct conversations, event
attribution and transcribed marker sets against frozen predictions. Disagreements
remain completed observations. Exit zero means offline verification completed;
it does not mean Cursor was rerun or is safe. The index is not authentication.

For a **new** user-operated native run with an installed v0.26.1 wheel:

```bash
python scripts/prepare_cursor_behavior_probe.py --workspace /path/to/new-probe --evidence-dir /path/to/separate-evidence --python /path/to/frozen-env/bin/python
```

On Windows, use the environment's `Scripts/python.exe`. The generator launches
the installed package with isolated Python flags and checks its source identity.
It creates fresh random markers, neutral code and project hooks. It never calls
a model or uploads files. Keep keys outside the workspace; run each generated
prompt in a fresh chat, explicitly select its files, and retain all outcomes.

[Fixture](fixture) retains all captured input bytes except the host-specific
hook command configuration. Its original hash is retained, but absolute local
interpreter/workspace paths are omitted. Generate commands for your own machine.
Keep collector unit-test events separate from real native observations.
10 changes: 10 additions & 0 deletions benchmarks/cursor-native-v1/behavior-events.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{"schema_version": 3, "event": "beforeSubmitPrompt", "captured_at_utc": "2026-11-13T09:55:37.716747+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "conversation_id": "str", "cursor_version": "str", "hook_event_name": "str", "model": "str", "prompt": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "recognized_probe_marker": "NATIVE_BEHAVIOR_V1 api-only", "conversation_id_sha256": "11b686d11ee999b52c669fbfa1e45a4093539e640c77f5b3313a70dfe3d0ce72", "session_id_sha256": "11b686d11ee999b52c669fbfa1e45a4093539e640c77f5b3313a70dfe3d0ce72"}
{"schema_version": 3, "event": "beforeReadFile", "captured_at_utc": "2026-11-13T09:55:42.318618+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "content": "str", "conversation_id": "str", "cursor_version": "str", "file_path": "str", "hook_event_name": "str", "model": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "observed_read_target": "src/api/service.py", "conversation_id_sha256": "11b686d11ee999b52c669fbfa1e45a4093539e640c77f5b3313a70dfe3d0ce72", "session_id_sha256": "11b686d11ee999b52c669fbfa1e45a4093539e640c77f5b3313a70dfe3d0ce72"}
{"schema_version": 3, "event": "beforeSubmitPrompt", "captured_at_utc": "2026-11-13T09:58:28.291914+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "conversation_id": "str", "cursor_version": "str", "hook_event_name": "str", "model": "str", "prompt": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "recognized_probe_marker": "NATIVE_BEHAVIOR_V1 web-only", "conversation_id_sha256": "4684fa5cf1b8faec2a8071df26b17bb939be38b5086fc0185c6a43eba7880608", "session_id_sha256": "4684fa5cf1b8faec2a8071df26b17bb939be38b5086fc0185c6a43eba7880608"}
{"schema_version": 3, "event": "beforeReadFile", "captured_at_utc": "2026-11-13T09:58:33.282503+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "content": "str", "conversation_id": "str", "cursor_version": "str", "file_path": "str", "hook_event_name": "str", "model": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "observed_read_target": "src/web/app.ts", "conversation_id_sha256": "4684fa5cf1b8faec2a8071df26b17bb939be38b5086fc0185c6a43eba7880608", "session_id_sha256": "4684fa5cf1b8faec2a8071df26b17bb939be38b5086fc0185c6a43eba7880608"}
{"schema_version": 3, "event": "beforeSubmitPrompt", "captured_at_utc": "2026-11-13T10:00:49.276566+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "conversation_id": "str", "cursor_version": "str", "hook_event_name": "str", "model": "str", "prompt": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "recognized_probe_marker": "NATIVE_BEHAVIOR_V1 joint", "conversation_id_sha256": "1c8765f0ad56bcce997a009630bf5a85f05a18d0bab04453cd4b9d7a21b004f8", "session_id_sha256": "1c8765f0ad56bcce997a009630bf5a85f05a18d0bab04453cd4b9d7a21b004f8"}
{"schema_version": 3, "event": "beforeReadFile", "captured_at_utc": "2026-11-13T10:00:53.192002+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "content": "str", "conversation_id": "str", "cursor_version": "str", "file_path": "str", "hook_event_name": "str", "model": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "observed_read_target": "src/web/app.ts", "conversation_id_sha256": "1c8765f0ad56bcce997a009630bf5a85f05a18d0bab04453cd4b9d7a21b004f8", "session_id_sha256": "1c8765f0ad56bcce997a009630bf5a85f05a18d0bab04453cd4b9d7a21b004f8"}
{"schema_version": 3, "event": "beforeReadFile", "captured_at_utc": "2026-11-13T10:00:53.192002+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "content": "str", "conversation_id": "str", "cursor_version": "str", "file_path": "str", "hook_event_name": "str", "model": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "observed_read_target": "src/api/service.py", "conversation_id_sha256": "1c8765f0ad56bcce997a009630bf5a85f05a18d0bab04453cd4b9d7a21b004f8", "session_id_sha256": "1c8765f0ad56bcce997a009630bf5a85f05a18d0bab04453cd4b9d7a21b004f8"}
{"schema_version": 3, "event": "beforeSubmitPrompt", "captured_at_utc": "2026-11-13T10:03:08.779568+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "conversation_id": "str", "cursor_version": "str", "hook_event_name": "str", "model": "str", "prompt": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "recognized_probe_marker": "NATIVE_BEHAVIOR_V1 root-ts", "conversation_id_sha256": "e0b40bc2d447a40abf5ffd5f1a56bbc5f47accb7e5fc245e235817288fc08274", "session_id_sha256": "e0b40bc2d447a40abf5ffd5f1a56bbc5f47accb7e5fc245e235817288fc08274"}
{"schema_version": 3, "event": "beforeReadFile", "captured_at_utc": "2026-11-13T10:03:14.057555+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "content": "str", "conversation_id": "str", "cursor_version": "str", "file_path": "str", "hook_event_name": "str", "model": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "observed_read_target": "index.ts", "conversation_id_sha256": "e0b40bc2d447a40abf5ffd5f1a56bbc5f47accb7e5fc245e235817288fc08274", "session_id_sha256": "e0b40bc2d447a40abf5ffd5f1a56bbc5f47accb7e5fc245e235817288fc08274"}
{"schema_version": 3, "event": "beforeSubmitPrompt", "captured_at_utc": "2026-11-13T10:03:21.005317+00:00", "collector_sha256": "1ef5cc6efb02c131576483d376d86af1b56023a290eb49323fef407b9e0d9d85", "known_input_field_types": {"attachments": "list", "conversation_id": "str", "cursor_version": "str", "hook_event_name": "str", "model": "str", "prompt": "str", "session_id": "str", "workspace_roots": "list"}, "attachments_field_present": true, "input_attachment_count": 0, "attachment_entry_shapes": [], "unsupported_attachment_count": 0, "unusable_attachment_path_count": 0, "reported_attachments": [], "outside_workspace_attachments_omitted": 0, "interpretation": "client-reported metadata at this hook, not model compliance or proof of complete context", "recognized_probe_marker": "NATIVE_BEHAVIOR_V1 manual-control", "conversation_id_sha256": "2f1fd6b1ca564a41735e8166cb81838bf5fb5298c62494da5d496dfdc5e54cba", "session_id_sha256": "2f1fd6b1ca564a41735e8166cb81838bf5fb5298c62494da5d496dfdc5e54cba"}
15 changes: 15 additions & 0 deletions benchmarks/cursor-native-v1/behavior-protocol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"schema_version": 1,
"registered_date": "2026-11-12",
"status": "behavior_addendum_before_behavior_queries",
"reason": "Actual native hook events included an empty raw attachment list even with a visible manually selected rule chip. Export Transcript retained conversation text only. The current account UI did not visibly expose a context usage entry. Preserve these observations and use a separate behavioral smoke experiment; do not reinterpret it as a complete attachment trace.",
"product_version": "0.26.1",
"client_version_at_preparation": "Cursor desktop Windows x64 3.29.15",
"fixture": "New synthetic workspace separate from the earlier unchanged neutral-rule probe. Four rules keep the original metadata/globs and receive independent random 64-bit markers. Marker keys and ACS predictions remain outside the workspace, never in the user prompts or target code.",
"cases": ["api-only", "web-only", "joint", "root-ts"],
"manual_control": "Explicitly select always.mdc in a separate fresh chat. This tests whether marker behavior can be elicited with deliberate rule selection, not automatic attachment.",
"operator": "User operates Cursor. Use fresh chat per case, attach only the listed target file chips in automatic cases, record all replies and any tool activity. No other projects, terminal commands or edits.",
"measurement": "Compare reply marker occurrences with the frozen ACS activation predictions. Marker presence is behavior consistent with availability of that rule body. Missing markers can be noncompliance, not absence. Rule/manifest searches, input changes and unexpected reads are confounds, not silently discarded cases. Hook read-target observations help identify some extra reads but are not assumed exhaustive.",
"claims": "Versioned native behavioral smoke evidence only. No complete native context claim, general compatibility pass, independent accuracy, model superiority or adoption claim. Preserve empty attachment observations and initial sampling/observability failures.",
"cost": "Use the current available account/model. No subscription purchase, additional credits or security/privacy setting changes. Stop if the client requires payment."
}
Loading
Loading