eliasforge/fable-agent-orchestration/seal-both-types

Claude Code and agent skill by eliasforge/fable-agent-orchestration

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

In a typed contract where holding a value is meant to prove it passed a check, "valid by construction" is false unless the value is unforgeable. Seal both the accepted (positive) type and the reject type against external construction, so no caller can fabricate an "accepted" value that skipped the check.

Install

npx vskill@latest install eliasforge/fable-agent-orchestration/seal-both-types

SKILL.md

Seal Both Types

A "possession proves validity" claim is only as strong as the caller's inability to forge the value.

The trap

It is common to seal the reject/error type but leave the accepted type an open struct with public fields. Then any caller can construct an "accepted" value directly, skipping the check the type was supposed to prove — and the "valid by construction" guarantee is a lie.

The rule

Seal both sides of the contract:

  • the reject type, and
  • the accepted / positive type.

Make the accepted value constructable only through the checking function: no public field literal, no default constructor, no deserialization path that bypasses the check. In Rust this is a non-exhaustive type with private fields and no public constructor; other languages have equivalents — a private constructor behind a factory, a sealed class, an opaque type.

Test

Try to construct an accepted value in a downstream module without calling the checker. If it compiles, the seal is incomplete.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/eliasforge/fable-agent-orchestration/seal-both-types/badge)](https://verified-skill.com/skills/eliasforge/fable-agent-orchestration/seal-both-types)

Something wrong with this skill or its page? Tell us.