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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions evals/data/aap-spec-init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## AAP Target Markers

Wrap each major block and individually-updatable value with target markers:

```
<aap:target id="ID">content</aap:target>
```

Targets nest — coarse blocks contain fine-grained value targets:

```html
<aap:target id="stats">
<div class="card">
<h3>Revenue</h3>
<span><aap:target id="revenue-value">$12,340</aap:target></span>
</div>
</aap:target>
```

Target IDs describe the role, not the current value (e.g., "total-revenue" not "12345").
Place targets where values are most likely to be revised.

IMPORTANT: You MUST wrap every major section and individually-updatable value in your output with `<aap:target id="ID">…</aap:target>` markers. Use descriptive, role-based IDs (e.g., "nav", "stats-card", "total-revenue"). Nest targets: coarse section targets should contain fine-grained value targets. Place markers on ALL values that are likely to be revised later. The markers are essential for efficient future edits.
43 changes: 43 additions & 0 deletions evals/data/aap-spec-maintain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## AAP Target Markers

Wrap each major block and individually-updatable value with target markers:

```
<aap:target id="ID">content</aap:target>
```

Targets nest — coarse blocks contain fine-grained value targets:

```html
<aap:target id="stats">
<div class="card">
<h3>Revenue</h3>
<span><aap:target id="revenue-value">$12,340</aap:target></span>
</div>
</aap:target>
```

Target IDs describe the role, not the current value (e.g., "total-revenue" not "12345").
Place targets where values are most likely to be revised.

## AAP Edit Envelope

To edit an artifact, produce a JSON envelope with `name: "edit"`:

```json
{
"protocol": "aap/0.1",
"id": "artifact-id",
"version": 2,
"name": "edit",
"meta": {"format": "text/html"},
"content": [
{"op": "replace", "target": {"type": "id", "value": "revenue-value"}, "content": "$15,720"}
]
}
```

Target by ID only: `{"type": "id", "value": "target-id"}`. Reference existing target IDs from the artifact.
Ops: `replace`, `delete`, `insert_before`, `insert_after`.

IMPORTANT: You MUST respond with a JSON edit envelope, NOT the full artifact. Reference existing `<aap:target>` IDs from the current artifact. Use `replace` to update content within a target, `delete` to remove a target and its markers, `insert_before`/`insert_after` to add content adjacent to a target. Always increment the version number.
2 changes: 1 addition & 1 deletion evals/data/aap-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To edit an artifact, produce a JSON envelope with `name: "edit"`:
"id": "artifact-id",
"version": 2,
"name": "edit",
"operation": {"direction": "input", "format": "text/html"},
"meta": {"format": "text/html"},
"content": [
{"op": "replace", "target": {"type": "id", "value": "revenue-value"}, "content": "$15,720"}
]
Expand Down
71 changes: 0 additions & 71 deletions evals/data/experiments/001-html-dashboard-ecommerce/eval.json

This file was deleted.

Loading
Loading