← 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.
assesswrites v2. Fill the new fields: the weighted-tokens range per occurrence, and each candidate'sscoreandrank, whichrank.tsalready computes. Addthinto the summary tag. Ids, ranking and everything else stay as they are.- Behavior name. The README and the existing
agent-sessionsskill say that Swampify writes through a behavior calledswampify.assessitself still writes to whichever behavior runs it. swampify.md. Cut it down to what the extension does: howassessmines, 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
olderand is rebuilt by runningassessagain.
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.
assesstests and the golden output are updated for v2, and the property tests still hold.- The README and
swampify.mdmatch.
02Bog Flow
Closed
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.