Skip to content

Skill API reference: a task's own reasoning level, and sharing a session by link - #3

Open
eric-epsilla wants to merge 1 commit into
HarnessRouter:mainfrom
eric-epsilla:task-reasoning-and-share
Open

eric-epsilla wants to merge 1 commit into
HarnessRouter:mainfrom
eric-epsilla:task-reasoning-and-share

Conversation

@eric-epsilla

Copy link
Copy Markdown

Problem

Builders work from the Skill, not the protocol. Two things the service already serves are missing from it:

  • reasoning_effort appears only among a Harness's fields. A reader concludes a task cannot set its own level, and keeps two Harnesses to offer a "quick" and a "thorough" mode.
  • No session endpoint says a session can be published as a read-only link. A builder who wants a run link to paste into a report doesn't know it exists.

Change

references/api-reference.md:

  • Task request table: reasoning: {"effort": "<level>"} wins over the Harness's reasoning_effort.
    • Levels: none, minimal, low, medium, high, xhigh; any other value is 400.
    • Use the levels the model lists under reasoning in GET /v1/bases. A model with an empty list takes no level.
  • Response notes:
    • reasoning is null when no level was asked.
    • Otherwise it is {"effort", "applied"}; applied: "default" means the level was not applied.
  • New POST /v1/sessions/{session_id}/share:
    • the share object; publishing again reuses the token;
    • {"enabled": false} takes it back, and the link then answers 404;
    • url is a path on the console's address, and the API host answers the same path with JSON;
    • the link shows the whole conversation and every file, so share only what the user chose to make public.

The page address is written as "the console's address" rather than a host, because test_skill_is_self_contained allows only the API host.

tests/test_cloud_scope.py: checks that both stay. It fails on main.

Verification

  • python3 -m unittest discover -s tests -p 'test_*.py': 45 tests, OK (1 skipped).
  • With the reference change reverted, the new test fails.
  • Without a key I could only confirm that the share path answers on both hosts: the console's page route answers HTML, and the API host answers JSON (404 for an unknown token). The field shapes match the service's code.

🤖 Generated with Claude Code

…ion by link

Builders work from the Skill, not the protocol, and two things the service already serves were
missing from it. reasoning_effort was listed only among a Harness's fields, so a team concluded a
task could not set its own level and kept two Harnesses for a quick and a thorough mode. And no
session endpoint said a session can be published as a read-only link.

The task table gains `reasoning` ({"effort": level}, wins over the Harness's), with the levels and
where a model's own list is read. The response notes say what `reasoning` holds, including
`applied: "default"`. A new section documents POST /v1/sessions/{id}/share: the share object, taking
it back with {"enabled": false}, that `url` is a path on the console's address, and that the link
shows the whole conversation and every file.

tests/test_cloud_scope.py checks both stay; it fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eric-epsilla

Copy link
Copy Markdown
Author

@richard-epsilla, this one is documentation only, for two features the service already serves.

Problem. A task's own reasoning level and session sharing are both live, but the Skill names neither. Builders conclude these don't exist.

Approach. I added one row to the task table, one note on the response, and one endpoint section, using the shapes the service answers today.

What I'd like from you:

  1. Check that it's right to send people to the console's address for the share page, and to the API host for JSON. That's how both answer today.
  2. Merge order: Skill: keep .env.harnessrouter out of a Next.js server build #2 first (key leak), then Skill references: the codes for a task refused for credit, stopped early, or failed #1 and Skill API reference: a task's own reasoning level, and sharing a session by link #3 in either order. All three touch tests/test_cloud_scope.py at the same spot. If one conflicts after another merges, I'll rebase it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant