Repository navigation
Releases
v0.11.0
Changed
Pattern identities now bind each placeholder to its definition (canonicalization v3). A card's dependencies map
each placeholder in its text, such as {{judge}}, to a target. Canonicalization v2 hashed which targets a category
binds and how many times, but not which placeholder each one fills; v3 hashes that pairing as well. A pairing stays
implied when the placeholder names its own target ({{judge}} bound to Judge) and no other placeholder name in the
card folds to the same name. A card whose pairings are all implied hashes exactly as under v2. Every other pairing is
hashed explicitly under the reserved key @bindings. Section 4.2 of the specification defines v3,
and docs/specification/canonicalization-v3-test-vectors.json gives its test vectors. New identities use v3; v2 stays
available for verifying what was published under it.
55 of the 617 bootstrap patterns take new identities: the 8 whose placeholders carry role names (Aggregate,
EmpathySim, InvariantFilter, NormativeJudge, OsmoticFilter, PURECheck, Rally, Refine) and the 47 that
depend on them. Each lists its 0.10.0 identity in _meta.supersedes, and sema pull updates each in place. The
other 562 keep their identities. The semantic-set and catalog roots change accordingly.
Added
- Library manifests:
manifest_schema2 adds a requiredcanonicalization. A schema-1 manifest still installs and
means v2.sema packagewrites schema 2 for a v3 database and schema 1 for a v2 one, so a v2 library stays
installable by earlier releases; installed-library records carry the version, and re-verification uses it. Earlier
semaversions refuse a schema-2 manifest rather than misread it. - Workspaces record their canonicalization. A database written before this release that holds patterns stays on v2;
a new one starts on v3, andsema buildgives a selective copy the version of its source.sema pullfrom a v3
upstream moves a v2 workspace to v3 inside the same atomic update and recomputes every local identity, user
patterns included. An exactextendspin follows its parent to the new identity when the parent is the same
definition re-identified; a pin to a parent whose content changed upstream is refused as before. A v3 workspace
refuses a v2 upstream. The hash audit checks under the version of the database the vocabulary was exported from,
or--canonicalization. sema_handshakeandsema_rootreport the canonicalization of the active vocabulary, andsema_handshake
takesyour_canonicalization. A v2 and a v3 workspace compute the same digest for a card whose pairings are all
implied, but only v3 has checked the bindings. When the peer's version differs from the workspace's, strict mode
returnsHALTand cooperative mode adds a warning to its verdict. Releases before this one declare no version,
and they hash under v2, so strict mode reads a presented hash with no declared version as v2: a v3 workspace then
returnsHALTwithCANONICALIZATION REQUIREDuntil the peer's version is supplied. A v2 workspace, cooperative
mode, and a call that only asks for the canonical hash behave as before.sema pullreportscanonicalization_beforeandcanonicalization_after, and keeps its undo snapshot when the
canonicalization moved even if no identity did. A refused or rolled-back pull reports the version it left in place.- An installed library is verified only if its database records the canonicalization its release declares, and a
workspace whose recorded canonicalization is unreadable or unsupported answers every handshake withHALT. scripts/test_hash_verification.pytakes--canonicalization {2,3}and--all;
scripts/rebuild_vocabulary.pytakes--retarget-extends.
Upgrading
Upgrade semahash and restart connected MCP servers to use the new bundled vocabulary.
For an editable local vocabulary, run sema pull to migrate its identities to v3.
Upgrade clients before installing v3 libraries: older releases reject their schema-2 manifests.
Hosted registries must upgrade their runtime and pass the caller's canonicalization to strict
handshakes before importing the v3 bootstrap release.
Sema 0.10.0
Sema 0.10.0 improves pattern discovery and separates general conceptual decomposition from solver-specific decomposition.
- Search matches individual meaningful query words and supports layer and category filters across keyword and semantic search.
- The local viewer preserves relevance scores and search sources.
- Handshake accepts full written references for patterns and vocabulary roots.
- The vocabulary contains 617 patterns.
ConceptualDecompositionis general-purpose; the newSolverDecompositioncarries the solver-specific contract. Ten existing patterns receive new identities and retain their released predecessors in_meta.supersedes. - The manual and paper match the updated vocabulary.
Upgrade the semahash package and restart the MCP server to use the bundled vocabulary. Editable local vocabularies can update with sema pull.
The attached library.json and ZIP provide the same verified vocabulary as the package. Code is MIT; vocabulary and documentation remain CC BY 4.0 (see LICENSE-CONTENT).
Validation: 761 tests, supported Python versions, Lean proofs, vocabulary verification, release-artifact checks, and an installed-wheel viewer smoke test pass.
v0.9.1
Added
Ten patterns for verification, change management and triage bring the vocabulary to
616 patterns:
ClosureConservationCheck,ExpandContractMigration,FailurePreservingReduction,
FinalizedIntervalRead,FixPathTriage,MeaningChangeSweep,
MetamorphicTesting,ReleaseArtifactVerification,SpecBindingand
SpecIntentCheck.
ExpandContractMigration is the first pattern in Infrastructure/Safety, which the
design manual now defines: authored procedures for changing a running system without
breaking the parts that depend on it. Each pattern includes its design commentary and
use boundaries. The existing 606 definitions retain their identities.
Release builds now verify wheel and source archive contents against approved inputs,
including the bundled vocabulary, database and complete viewer assets, before upload.
Changed
Rebuilding the bundled database recomputed the search embeddings of 84 existing
patterns from their current text. Identities are unchanged; semantic search results
for those patterns may shift slightly.
v0.9.0
Changed
Every layer now has a Dynamics category for patterns that describe how a system
behaves (a process, a regularity or a limit) and prescribe no response. A pattern
filed there is a model to recognise in a case, not steps to follow. The rule runs one
way: structures, primitives, judgment errors and states of the evidence also stay
outside Dynamics, so a pattern outside it is not thereby a procedure. 43 patterns move
there from categories that held procedures or topics:
- Physics/Dynamics:
Brakefade,Ripplelag,Swayhold,Syncdrift,
VirginSoilEpidemicandWaveOfAdvance. - Infrastructure/Dynamics:
Formelt,LimitblurandRegulapse. - Mind/Dynamics:
Aimscatter,Capacitylag,Crossripening,Echohollow,
Echoverturn,Foundationfray,Futurefold,Identitylag,Labelloop,
Meaningthin,Mirrorbloom,Quietroot,ReadyriseandRegressionToMean. - Society/Dynamics:
CumulativeCulture,DemographicTransition,
DensityRatchet,DiminishingComplexityReturns,ExitCage,Focalpeer,
FreeRiderProblem,InnovationDiffusion,Linkfade,MalthusianTrap,
Quietsever,Recifluence,Scaleasynchrony,SecurityDilemma,
Sideinherit,StructuralDemographicCycle,Sunbound,SurplusBound,
TwinflowandWarsift.
No layer changes. The category is unhashed metadata, so every pattern keeps its
identity and both vocabulary roots are unchanged. Patterns naming a judgment error or
a state of the evidence stay with the inference and reasoning patterns, while
RegressionToMean, a phenomenon that occurs whether or not anyone misjudges it,
moves. Elementary concepts stay primitives as general building blocks, including
those that describe change over time, such as Decay and PhaseTransition. The design manual states the rule, and the MCP
server's instructions and the usage skill tell agents to apply a Dynamics pattern as
a model to test against the case, not as steps to run.
Clients from 0.8.1 and earlier reject patterns on the new Infrastructure, Mind and
Society Dynamics paths wherever they validate patterns: in sema pull --source from
this vocabulary, and when installing or updating a library that uses the new paths. A
0.8.1 sema pull --source stops with validation errors and restores its database
unchanged. Upgrade the client before taking the new vocabulary; a plain sema pull
reads the vocabulary bundled with the installed client, so the two arrive together. A
service that hosts the vocabulary, such as sema-web, must deploy this runtime first,
then update its bootstrap vocabulary and refresh its caches; updating the bootstrap
first fails validation.
The suggested credit for reusing the vocabulary now names the shared project rather
than an individual: Vocabulary from Sema (https://github.com/emergent-wisdom/sema),
licensed under CC BY 4.0. The licence itself is unchanged, and contributors keep the
copyright in their contributions. The GitHub release attaches the licence file next to
the bootstrap package, which cannot carry it itself.
Sema 0.8.1
Added
Sixteen patterns for population dynamics, cultural transmission, resource
constraints and intergroup competition bring the vocabulary to 606 patterns:
CumulativeCulture,DemographicTransition,DensityRatchet,
DiminishingComplexityReturns,ExitCage,FreeRiderProblem,
InnovationDiffusion,MalthusianTrap,SecurityDilemma,
StructuralDemographicCycle,Sunbound,SurplusBound,Twinflow,
VirginSoilEpidemic,WarsiftandWaveOfAdvance.
Each pattern includes its design commentary and use boundaries. The existing
590 definitions retain their identities.
Sema 0.8.0
Sema 0.8.0 expands the bootstrap vocabulary from 457 to 590 patterns and updates the agent guidance for using patterns in reasoning tasks.
What changed
- 133 new patterns cover reasoning, evidence, coordination, and changing processes.
- Five definitions are aligned with the September revision of the Fractal Intelligence paper. Including dependent patterns, 20 released identities change; their 0.7.1 predecessors are recorded in
_meta.supersedes. - MCP instructions and the
sema-usageskill now guide agents to search for applicable patterns and use their mechanisms, invariants, failure modes, and cautions. - Vocabulary verification detects when the installed package is used instead of the source checkout, and the audit runner rejects an invalid checkout.
Upgrading
Upgrade semahash using the same package manager and environment that run your MCP server, then restart the server. Users of the bundled vocabulary receive the new patterns immediately; they do not need sema pull.
For an editable local vocabulary, upgrade the package and run sema pull --dry-run to review the changes, then sema pull to apply them. Explicit --source inputs and published libraries remain separate ways to distribute vocabulary.
Existing snapshots retain their original identities. Exact references to older definitions require the corresponding retained snapshot.
Bootstrap library
library.json and sema-bootstrap-0.8.0.zip contain the portable bootstrap library. Its 590 cards and vocabulary roots match the bundled database.
See CHANGELOG.md for the complete list of additions and changes.
v0.7.1
This release refines five bootstrap definitions, including two dependency
cascades. Existing snapshots retain their original identities; consumers choosing
to upgrade should use the new definitions and vocabulary roots.
Fixed
MechanisticDesignProposalrequires novelty claims to name their comparison
and records weak or outdated comparisons as a failure mode.SemanticTabudefines avoidance against the listed mechanisms using a stated
canonical form; satisfying the tabu list does not establish novelty against
unlisted solutions.DiscoveryProtocolrequires declared distinct cognitive modes, references
SolverandNovelty, and describes unminted solver roles in ordinary prose.- The five changed identities, including the dependency cascade to
DesignArchitectandPUREBrainstorming, record their published predecessors.
The library still contains 457 patterns.
v0.7.0
This release changes bootstrap definitions and discovery signatures. Existing
0.6.0 snapshots remain valid for their original hashes. Consumers choosing to
upgrade should use the new definitions and roots; old exact references require
the corresponding retained snapshot.
Fixed
- Ten bootstrap patterns no longer identify evidence, agreed terms, historical
circumstances, interpretation context, or decision information with the
portable agent executionContext: Belief, Contract, ExploreExploit,
GenealogicalTrace, HumanApprove, InternalConsistency, Interpret, OutputGuard,
Specialize, and Understand. Their substantive obligations remain explicit.
Context's own definition is unchanged. InternalConsistencynow advertisesCheck(Artifact), matching its actual
subject.Understandno longer advertisesThink(Context); callers using
signature discovery should resolve Understand directly. Its model-adequacy
wording now follows the already documented caller-relative standard.Cacheguarantees stored-value reuse on a hit instead of promising that
every lookup is significantly faster than the source. Existing consistency,
freshness, and serialization requirements are retained; latency targets belong
to the caller or a specialized pattern.Interpretno longer uses reversibility to distinguish translation from
interpretation. Translation can be one-way; its existing representation-change
boundary remains intact, as do Interpret's context-recording and input-preservation
obligations.- Design commentary for Context, Cache, Greet, Sign, and the affected consumers
now matches their contracts. In particular, Greet requires mutual authentication
and Sign describes cryptographic artifact binding, not handwritten signatures. - Stale commentary for Permission, Noise, Reversibility, Interpret, and Translate
now reflects their existing general-purpose contracts without adding new
requirements to those patterns. - All 117 changed identities, including dependency cascades from the eleven
directly edited patterns, record their published 0.6.0 predecessors. The three
exact parent links on RequestFraming, OptimisticSolver, and RigorousSolver
were reviewed and explicitly retargeted. The library still has 457 patterns;
no new patterns were added.
Documentation
- The vocabulary design manual includes source-card links, parameter definitions,
complete instance schemas, and dependency mappings. Its authoring instructions
follow the staging workflow, and its introduction distinguishes structural
validation from semantic review.
Sema 0.6.0
All 457 bootstrap pattern identities and both aggregate roots are unchanged.
Added
sema login,sema logout, andsema whoamilog the CLI in to a hosted
Sema registry through the OAuth 2.0 device authorization flow (RFC 8628).
The token is stored per registry origin under the Sema configuration
directory and can be revoked from the registry profile page.sema login --keystores a key created on the registry's profile page,
after checking it with the registry.--key -reads the key from standard
input.sema registry import|list|removepublish, list, and remove your libraries
on the registry from the command line or from an agent, with no browser
visit after the one-time approval.--registryandSEMA_REGISTRY_URL
select another registry, andsema installstill needs no account. A successful
login remembers the selected registry, with explicit flags and environment
settings taking precedence. Logging out keeps the registry choice.sema registry search [WORDS...]andsema registry show NAMElist and
describe published libraries without an account, andsema install NAME
installs one by name: exactly the release that the registry verified.
Before it writes anything, Sema checks the manifest's name, version, both
roots, and archive checksum against the listing, and it refuses a different
release, such as a replacement served after an account takeover. The
release is then verified as before.sema updatekeeps that protection for libraries installed by name: it
takes only a release that the original registry has verified, even if the
default registry changes later. A mismatched release or an unavailable
registry leaves the installed and active snapshot unchanged. Libraries
installed from a URL or a file update from their own source as before.- Agents can find, install, and publish libraries from a chat. The MCP tools
sema_library_search,sema_library_install,sema_library_login, and
sema_library_publishsearch the public registry, install a library by name
or from anylibrary.jsonURL, store a key that the user gives the agent,
and publish a GitHub release after the user agrees. - The local view.
sema serveopens a view of the active vocabulary in the
visual design of semahash.org: its name, whether it is writable, its root,
and the patterns in card, list, and JSON views. The 3D graph grows in place
while an agent mints; new patterns light up, and a live panel lists them and
can follow each one. A writable vocabulary's page ends with the optional
steps to publish it on semahash.org.sema serve --openopens the view in a
browser. - The MCP server instructions tell connected agents that they can suggest the
local view while building a vocabulary with the user, and describe the
optional publishing path: package, GitHub release,sema login, and
sema registry import.
Changed
sema serveopens the vocabulary selected withsema use, using the same
database resolution as the CLI and the MCP server, and follows a later
sema useorsema_usefrom another process.SEMA_DB_PATHstill pins it.
Previously the server showed the bundled catalog unlessSEMA_DB_PATHwas
set.- The
sema-uiskill reuses a running server and no longer stops whatever
process listens on its port.
Fixed
- Credential files now use unique temporary files with owner-only permissions
from creation, avoiding exposure before the credentials are atomically saved. - The server tests no longer read the developer's own active vocabulary.
v0.5.5
All 457 bootstrap pattern identities and both aggregate roots are unchanged.
Fixed
- The MCP Registry launch command installs the required MCP extra and pins the
package version advertised by the registry. Release metadata synchronization
now checks and updates that requirement, with regression coverage for missing
extras and stale versions.