Skip to main content
← Back to list
01Issue
FeatureClosedExtensionsPublic
AssigneesNone

Relationships

#4651 Swampify: @swamp/agent-sessions copies core's contracts, and assess writes candidate set v2

Opened by skunk-ape · 11/11/2026

Part of Swampify onboarding. Depends on #4650, which moves the Swampify contracts into swamp core (src/domain/agent_sessions/swampify.ts): candidate set v2, offer v1 and comparison v2.

Repo: swamp-extensions (@swamp/agent-sessions).

Goal

@swamp/agent-sessions stops owning the Swampify contracts and copies core's, the same way it already copies the agent session record. assess writes candidate set v2.

Changes

  • Delete the owned contract. Replace extensions/models/_lib/contract/swampify.ts, its generator and its four JSON Schemas with a copy of core's module and core's checked-in JSON Schemas.
    • The copy is changed only in its zod import specifier.
    • A test fails when the copy disagrees with the copied JSON Schemas, as the session record copy's test does.
    • Remove deno task swampify-schema.
  • assess writes v2. Fill the new fields: the weighted-tokens range per occurrence, and each candidate's score and rank, which rank.ts already computes. Add thin to the summary tag. Ids, ranking and everything else stay as they are.
  • Behavior name. The README and the existing agent-sessions skill say that Swampify writes through a behavior called swampify. assess itself still writes to whichever behavior runs it.
  • swampify.md. Cut it down to what the extension does: how assess mines, what it reads, and the thin and registry rules. Point to core's design doc for the contracts instead of restating them.
  • Version. Bump the model version with an upgrade entry. An existing v1 set is read as older and is rebuilt by running assess again.

Out of scope

  • The offer item's writer method and the skill (#4642).
  • compare.

Done when

  • The copy and its drift test are checked in, and the owned module and generator are gone.
  • assess tests and the golden output are updated for v2, and the property tests still hold.
  • The README and swampify.md match.
02Bog Flow
✓OPEN○TRIAGED○IN PROGRESS◉CLOSED

Closed

11/11/2026, 5:42:19 PM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

system commented 11/11/2026, 5:30:58 PM

Classified automatically when this issue was filed.

  • Source: Extensions

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.