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
44 changes: 44 additions & 0 deletions evals/reader-tasks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Reader tasks for guides, references and runbooks

A facilitator can use these tasks to see whether a reader can make a
correct decision from the assigned document. They use sources from projects
outside Markdown Studio. Independent reader trials are pending.

| Task | Document to give the reader in a baseline trial | Participant packet |
| --- | --- | --- |
| Commit one revision and keep a later edit for tomorrow | [Git tutorial at `c44beea`](https://github.com/git/git/blob/c44beea485f0f2feaf460e2ac87fdd5608d63cf0/Documentation/gittutorial.adoc) | [Two edits before a commit](guide.md) |
| Interpret a saved model inventory | [Model Router discovery reference at `0ba1e90`](https://github.com/whale-devx/intelligent-model-router-skills/blob/0ba1e9045642b1ad8d65f6f5bdd91f8d40118b77/skills/intelligent-model-router/references/live-discovery.md) | [A saved inventory](reference.md) |
| Recover from a release setup conflict | [Git FlowKit release guide at `a15e6e0`](https://github.com/whale-devx/git-flowkit-skills/blob/a15e6e024d39c93592f655d5a903c15342d5c45f/skills/git-flowkit/references/releases.md) | [Release setup during a handover](runbook.md) |

## Run a comparison

1. Freeze the baseline and candidate documents before assigning readers.
Give each author the same source revision, editing request and budget.
Keep the participant questions and [grading key](scoring.json) with the
facilitator during authoring. For a held-out trial, use contributors who
have not seen those materials. Record any prior exposure.
2. Save each rendered document under a neutral identifier. Preserve headings,
links, code and tables. Keep the identity mapping private until scoring is
complete. Assign readers at random to a version per task. Each reader
sees each task only once. Give them only the assigned rendering and its
participant packet. Use the same time allowance and lookup rules for
every version.
3. Record the anonymous reader and document IDs, source and candidate
revision, elapsed time, cited passage, and answer to each question. An
unanswered or timed-out decision receives zero points. Record timeouts.
4. Have a reviewer score each decision against the key before revealing
document identities. Award one point when all required facts for that
decision are present and consistent. Accept ordinary paraphrases.
Record fatal errors separately and mark the task failed if one occurs.
A task passes with three points and zero fatal errors.
5. Report counts of participants, completed tasks, passes and fatal errors
by task and document, together with missing observations and elapsed
times. For authoring comparisons, report the measured authoring time
and token usage when available. Keep raw reader responses private unless
readers consent to sharing them.

These public packets can also be used for practice. A person who has seen
the questions or key needs a fresh task for a held-out comparison.

For a comparison between authoring skills, use the
[paired README and Mermaid requests](../skill-comparison/README.md).
19 changes: 19 additions & 0 deletions evals/reader-tasks/guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Two edits before a commit

Use the guide supplied by the facilitator. You can answer on paper. Cite
the heading or passage that helped with each decision.

The last commit contains a one-line file named `hours.txt` with the text
`opens at 9`. You change the line to `opens at 10` and run
`git add hours.txt`. Then you change the line again to `opens at 11`
and save the file. You have made no other changes or commits.

1. A teammate wants to review the proposed commit. Which command would
show its patch, and which two lines would they see removed and added?
2. You also want to check the edit you made after running `git add`.
Which command would show that patch, and which lines would it compare?
3. Your editor approves `opens at 10` for today. You need to keep the
later edit available for tomorrow. What command would you run, and
what text would you find in the commit and in the file afterward?

If the guide does not answer a question for you, mark it unanswered.
19 changes: 19 additions & 0 deletions evals/reader-tasks/reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# A saved inventory

Use the reference supplied by the facilitator. Record each answer and the
heading or passage you used to find it. Work from the supplied materials.

It is **14 May 2030 UTC**. Your team has a local inventory file observed on
**3 May 2030 UTC** and copied to your workstation today. The team uses the
default age limit. You have permission to inspect the saved file offline.

1. Which date belongs in `--observed-at`? What status should you expect when
importing that file today?
2. A colleague also has a fresh report with `status: discovered` and one
catalog row. What access and execution status can the incident log
attribute to that observation?
3. Can the team use this row alone to promise a working model handoff?
Give the reason for your decision.

Submit your answers, or mark a question unanswered if you cannot find the
information in the assigned document.
20 changes: 20 additions & 0 deletions evals/reader-tasks/runbook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Release setup during a handover

Use the runbook supplied by the facilitator. This is a tabletop exercise.
Write the next action for each case and cite the passage that led you to it.

1. An established project has a semantic-release configuration and earlier
release tags. A teammate asks you to run Git FlowKit's release scaffold
with `--apply`. How do you proceed? What happens if the helper is invoked
while that configuration is present?
2. A different project has one commit, no tags, no release configuration and
no existing scaffold files. You may inspect the proposed setup. Give
the CLI invocation, where the bootstrap boundary will be and what files
you expect to find newly written after inspection. Use `<skill>` and
`<repo>` as path placeholders.
3. The new project later receives permission to write the proposed local
files. What further checks and decision are needed before its release
workflow can run?

Submit your decisions, or mark a question unanswered if the runbook does
not give you enough information.
39 changes: 39 additions & 0 deletions evals/reader-tasks/scoring.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"schema_version": 1,
"reader_results": [],
"tasks": [
{
"packet": "guide.md",
"source_revision": "c44beea485f0f2feaf460e2ac87fdd5608d63cf0",
"source_sections": ["Making changes", "Git tracks content not files"],
"decisions": [
{"number": 1, "required": ["Inspect the proposed patch with git diff --cached, git diff --staged or an equivalent command.", "The patch removes opens at 9 and adds opens at 10."]},
{"number": 2, "required": ["Compare the working file to the index using git diff or an equivalent command.", "The patch removes opens at 10 and adds opens at 11."]},
{"number": 3, "required": ["Commit the staged snapshot, for example with git commit and a message.", "The commit contains opens at 10 and the working file still contains opens at 11."]}
],
"fatal_errors": ["Records opens at 11 in today's commit.", "Discards the saved opens at 11 edit."]
},
{
"packet": "reference.md",
"source_revision": "0ba1e9045642b1ad8d65f6f5bdd91f8d40118b77",
"source_sections": ["Offline snapshots", "Interpret the report"],
"decisions": [
{"number": 1, "required": ["Use 2030-05-03, when the listing was observed.", "Expect stale_snapshot because eleven days exceed the default seven-day limit."]},
{"number": 2, "required": ["The row has listed access.", "The report records not_executed."]},
{"number": 3, "required": ["The listing alone establishes neither permission to execute that model nor a successful handoff."]}
],
"fatal_errors": ["Changes the observation date to evade the freshness check.", "Claims the listing verifies an executed handoff."]
},
{
"packet": "runbook.md",
"source_revision": "a15e6e024d39c93592f655d5a903c15342d5c45f",
"source_sections": ["Authority and supported scope", "New repositories: Release Please scaffold", "This repository's release activation"],
"decisions": [
{"number": 1, "required": ["Retain the existing release engine and follow its process.", "The helper refuses setup when it detects the existing engine."]},
{"number": 2, "required": ["Use python <skill>/scripts/flowkit.py --repo <repo> release-setup without --apply.", "The boundary is the current HEAD.", "The preview writes no scaffold files."]},
{"number": 3, "required": ["Wire or verify the project's required tests and review protections.", "The maintainer must explicitly enable the generated workflow. Permission to write local files alone does not activate it."]}
],
"fatal_errors": ["Removes release tags or the existing release engine to force setup.", "Applies or activates the workflow under inspection-only permission."]
}
]
}
90 changes: 90 additions & 0 deletions evals/skill-comparison/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Compare README and diagram authoring

This exercise compares two skills on the same README request and two skills
on the same Mermaid request. The common source is the ISC-licensed
[`github-slugger` 2.0.0 module](https://github.com/Flet/github-slugger/tree/3461c4350868329c8530904d170358bca1d31448).
The [guide, reference and runbook packets](../reader-tasks/README.md) cover
separate reading tasks with original documentation as the baseline.

| Task | Markdown Studio | Specialist |
| --- | --- | --- |
| Package README | [GitHub Markdown Studio](https://github.com/whale-devx/github-markdown-studio-skills/tree/f2232810ed65da3bbdc63041fa72fae5d3a4ba47/skills/github-markdown-studio) | [GitHub Awesome Copilot's `create-readme`](https://github.com/github/awesome-copilot/tree/f10fdb8b2660ce85c98f220b2f1ca24653768a5c/skills/create-readme) |
| Algorithm flowchart | Same Markdown Studio revision | [Softaworks' `mermaid-diagrams`](https://github.com/softaworks/agent-toolkit/tree/3027f20f3181758385a1bb8c022d4041dfb4de84/skills/mermaid-diagrams) |

## Prepare the inputs

From the repository root, run the following with Python 3.10+, Git and an
existing parent directory. Preparation fetches the pinned public Git objects
and four README examples from GitHub. It prints the newly created directory.

```sh
python evals/skill-comparison/prepare.py <parent-directory>
```

Each `<task>/<skill>/project` is a fresh Git repository with the same four
source files (`index.js`, `regex.js`, `package.json` and `LICENSE`) and one
project-local skill under `.agents/skills/`. The skill's upstream license is
beside the project. Both README workspaces include the four examples referenced
by the specialist and their licenses, at fixed revisions in the adjacent
`examples/` directory. The source project's original README, participant
packets and grading materials stay outside every author workspace.

## Give both authors the same request

**README**

> Write README.md for a JavaScript developer integrating this package into a
> table of contents for several documents. Show a runnable import and usage
> example. Help the reader choose an API for repeat headings and explain
> what to do when starting another document. Use the package source for
> claims. You may consult the four style examples in ../examples/.

**Diagram**

> Write flow.md containing one Mermaid flowchart and a short text equivalent
> for a maintainer tracing the instance method that creates a heading slug.
> Show how the method reaches a return value when generated names collide,
> including a collision with an already suffixed heading. Derive the diagram
> from the supplied implementation.

## Run and score

1. Use a fresh session and private workspace for each arm. Expose only that
arm's project and its supplied examples. Explicitly select its assigned
skill. Fix the model revision, reasoning setting, tools and renderer for
both authors within each task. Allow one author turn, up to ten minutes
and 2,000 output tokens per arm. Give both the same local Node runtime.
Start timing at prompt submission. Record tool use, elapsed time, actual
token usage, cost if available, and any timeout or unavailable limit.
2. Freeze the four outputs before scoring. The facilitator can test the
README examples against the pinned module in a disposable ES module
project and render both diagrams with the same Mermaid version. Compare
the account of collisions against actual calls to the source, including
a literal suffixed heading followed by repeated unsuffixed headings.
Record the observed output and rendering errors.
3. Remove author and skill labels from the rendered materials. Assign each
independent reader one version per task under a neutral ID. For a README,
ask the reader to choose between the stateless and instance APIs and to
handle a second document. For a diagram, ask the reader to trace a
collision and identify when state changes. Set the precise inputs,
expected answers and time allowance before assignment. Keep the mapping
and grading key with the facilitator until scoring is complete.
4. Report correct decisions, failures, missing observations and elapsed
times separately by task and arm. Record prior exposure to these public
materials. Use fresh cases for previously exposed participants. An unknown
cost or token count stays unknown.

## Input verification on 2026-11-21

Windows and Linux produced byte-identical content for all 80 files across
the four arms, excluding Git internals. The four source files and each copy
of the three skills matched their upstream Git blobs. In disconnected Linux
containers, Codex CLI 0.164.0 discovered exactly the assigned repo-scoped
skill in each project. Empty controls contained none of those skills.

Node 24.19.0 loaded the supplied source through its package name. For the
successive inputs `API`, `API-1`, `API`, `API`, one instance returned
`api`, `api-1`, `api-2`, `api-3`. After reset it returned `api` again.
Two calls to the stateless function both returned `api`. No author turn or
independent reader session ran during input verification. Comparative
quality, time and cost remain unmeasured.
97 changes: 97 additions & 0 deletions evals/skill-comparison/prepare.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
"""Prepare four isolated author workspaces from pinned public sources."""
import argparse
import io
import os
from pathlib import Path
import shutil
import subprocess
import tempfile
from zipfile import ZipFile


SOURCE = ("Flet/github-slugger", "3461c4350868329c8530904d170358bca1d31448")
SKILLS = {
"github-markdown-studio": ("whale-devx/github-markdown-studio-skills", "f2232810ed65da3bbdc63041fa72fae5d3a4ba47"),
"create-readme": ("github/awesome-copilot", "f10fdb8b2660ce85c98f220b2f1ca24653768a5c"),
"mermaid-diagrams": ("softaworks/agent-toolkit", "3027f20f3181758385a1bb8c022d4041dfb4de84"),
}
EXAMPLES = (
("Azure-Samples/serverless-chat-langchainjs", "ae6df50bb0998753a3c28fdd10ea6127c217c232"),
("Azure-Samples/serverless-recipes-javascript", "2b05da6daca68fcb571da103c3efe5b4dc765661"),
("sinedied/run-on-output", "4d8dd6b7ee53fac6ed4362b0c17c4ab625c44354"),
("sinedied/smoke", "3d4972f7579229dd9d248a8d858d8161860a5e99"),
)


def git(directory, *args):
env = dict(os.environ, GIT_CONFIG_GLOBAL=os.devnull, GIT_CONFIG_NOSYSTEM="1", GIT_TERMINAL_PROMPT="0")
return subprocess.check_output(
["git", "-C", str(directory), "-c", "credential.helper=", "-c", "core.hooksPath=", *args],
env=env, timeout=180,
)


def export(cache, source, output, *paths):
repo, sha = source
store = cache / "git" / repo
store.parent.mkdir(parents=True, exist_ok=True)
git(cache, "init", "--quiet", "--bare", "--template=", str(store))
git(store, "remote", "add", "origin", f"https://github.com/{repo}.git")
git(store, "config", "remote.origin.promisor", "true")
git(store, "config", "remote.origin.partialclonefilter", "blob:none")
git(store, "fetch", "--quiet", "--depth=1", "--no-tags", "--filter=blob:none", "origin", sha)
if git(store, "rev-parse", "FETCH_HEAD^{commit}").decode().strip() != sha:
raise ValueError(f"Unexpected source revision for {repo}")
archive = git(store, "archive", "--format=zip", sha, "--", *paths)
with ZipFile(io.BytesIO(archive)) as snapshot:
snapshot.extractall(output)


def copy_files(source, destination):
# Preserve empty Git directories and file bytes without requiring POSIX metadata.
for directory, _, files in os.walk(source):
folder = Path(directory)
target = destination / folder.relative_to(source)
target.mkdir(parents=True, exist_ok=True)
for name in files:
shutil.copyfile(folder / name, target / name)


def prepare(parent):
with tempfile.TemporaryDirectory(prefix="comparison-inputs-") as temp:
cache = Path(temp)
source = cache / "source"
export(cache, SOURCE, source, "LICENSE", "index.js", "regex.js", "package.json")
git(source, "init", "--quiet", "--template=")
for name, pin in SKILLS.items():
export(cache, pin, cache / "payloads" / name, "LICENSE", f"skills/{name}")
references = cache / "examples"
for repo, sha in EXAMPLES:
export(cache, (repo, sha), references / repo, "README.md", "LICENSE")

root = Path(tempfile.mkdtemp(prefix="markdown-comparison-", dir=parent)).resolve()
try:
for task, specialist in (("readme", "create-readme"), ("diagram", "mermaid-diagrams")):
for name in ("github-markdown-studio", specialist):
arm = root / task / name
project = arm / "project"
copy_files(source, project)
payload = cache / "payloads" / name
copy_files(payload / "skills" / name, project / ".agents" / "skills" / name)
shutil.copyfile(payload / "LICENSE", arm / "SKILL-LICENSE")
if task == "readme":
copy_files(references, arm / "examples")
except Exception:
if root.parent == parent.resolve() and root.name.startswith("markdown-comparison-"):
shutil.rmtree(root)
raise
return root


if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("parent", type=Path, help="Existing directory for a new, uniquely named comparison")
args = parser.parse_args()
if not args.parent.is_dir():
parser.error("Choose an existing parent directory")
print(prepare(args.parent))
Loading