Skip to main content

Skilj

@gklijs/skiljv2026.11.17.1· MIT· 11d agoBEHAVIORSWORKFLOWSREPORTSSKILLS
01README

SkilJ 0.4.0 REST and GraphQL: token lifecycle management, offline operation validation, frontend JSON/SDL schema export, command debugging, commands and explicit proposal decisions, schema compatibility checks, ordered batches, historical event reads, tag discovery, tracing, and skills for vault-backed setup, workflows, frontends and debugging.

02Release Notes

Support SkilJ 0.4.0 with verified REST and GraphQL contracts; improve the first-run guide and command verification recipes; add safe failure diagnostics and recovery guidance; add bounded correlation timeline reports over explicitly selected artifact versions with evidence-gap markers and private-data filtering.

03Behaviors3
@gklijs/skiljv2026.11.17.1skilj.ts

Global Arguments

ArgumentTypeDescription
baseUrlstringBase URL of the SkilJ REST server, e.g. https://skilj.example.com
tokenstringSkilJ access token in '<id>.<secret>' form - store it in a vault
debug?booleanLog request method, route, attempt, status and elapsed time; excludes headers, query values and bodies
traceparent?stringW3C traceparent header to connect requests to an upstream distributed trace
tracestate?stringOptional W3C tracestate header accompanying traceparent
timeoutMs?numberPer-request timeout in milliseconds
maxRetries?numberRetries for transient failures (timeouts, 408/429/502/503/504) on
fn triggerCommands(commands: array, stopAtFirstFailure?: boolean)
Trigger ordered commands (POST /v1/commands/trigger/batch); per-item failures are recorded, not thrown. Not atomic
ArgumentTypeDescription
commandsarray
stopAtFirstFailure?boolean
fn ingestExternalEvents(events: array, stopAtFirstFailure?: boolean)
Ingest ordered external events (POST /v1/events/external/batch); per-item failures are recorded. Not atomic
ArgumentTypeDescription
eventsarray
stopAtFirstFailure?booleanStop after a failure to avoid advancing a source watermark past it
fn searchUsedTags(key: string, prefix?: string, limit?: number)
Discover distinct tag values by literal prefix (GET /v1/events/tags) within the token's event type and owner scope
ArgumentTypeDescription
keystring
prefix?string
limit?number
fn triggerCommand(payload: record)
Trigger the token's command type (POST /v1/commands/trigger). A business rejection is recorded, not thrown
ArgumentTypeDescription
payloadrecordThe command payload, as the command type's schema expects it
fn dryRunCommand(payload: record)
Ask whether the token's command type would accept a payload, storing nothing (POST /v1/commands/dry-run)
ArgumentTypeDescription
payloadrecordThe command payload to decide on without storing anything
fn fetchEvents(after?: string, epoch?: string, correlationId?: string, upToSequence?: number, maxPages?: number)
Read the token's event type (GET /v1/events), following nextCursor up to maxPages
ArgumentTypeDescription
after?stringStart after this cursor (a previous nextCursor, or a bare sequence)
epoch?stringDatabase epoch the 'after' cursor was read in, if not inside it
correlationId?stringOnly return events with this correlation id
upToSequence?numberRead history as known at this sequence, inclusive (SkilJ 0.3.0)
maxPages?numberFollow nextCursor for up to this many pages
fn consumeEvents(mode?: enum)
Serve the token's event type from its server-tracked cursor (GET /v1/events/consume); the cursor advances itself, nothing is passed back
ArgumentTypeDescription
mode?enumServer-tracked cursor mode: required on the token's first consume
fn acknowledgeEvents(sequence: number, epoch?: string)
Advance a manual_ack consume cursor (POST /v1/events/consume/ack) up to a served sequence
ArgumentTypeDescription
sequencenumberAdvance a manual_ack cursor up to this served sequence
epoch?stringEpoch from the consume response that served the sequence
fn ingestExternalEvent(payload: record, sourceContent: string, sourceContext?: string, dedupe?: object)
Record an event from an outside system (POST /v1/events/external), deduplicated by Idempotency-Key or watermark
ArgumentTypeDescription
payloadrecordThe external event payload
sourceContentstringThe original message, verbatim, as received from the source
sourceContext?stringWhere the message came from, e.g. a topic or queue name
dedupe?objectWatermark dedupe for an in-order source: partition and its sequence
fn createDirectEvent(payload: record)
Store an event directly, bypassing any command (POST /v1/events/direct)
ArgumentTypeDescription
payloadrecordThe event payload
fn reportParkedDelivery(source: string, kind: enum, identifier: string, error: string, attemptCount: number, firstFailedAt: string, request: record, idempotencyKey?: string)
Report a broker delivery the bridge gave up retrying (POST /v1/parked-deliveries), for a later retryParkedDelivery
ArgumentTypeDescription
sourcestringThe bridge's own name for itself, e.g. 'kafka-inbound'
kindenumWhich original route the delivery was bound for
identifierstringBroker-native message id, e.g. '{topic}:{partition}:{offset}'
errorstringWhy the bridge gave up retrying this delivery
attemptCountnumberHow many delivery attempts the bridge made
firstFailedAtstringISO-8601 timestamp of the first failed attempt
requestrecordThe verbatim original POST body for the delivery, in the shape the
idempotencyKey?stringThe Idempotency-Key header the original POST carried, if any -

Resources

batchCommands(30d)— Ordered command outcomes, including per-item errors and pending approvals
batchEvents(30d)— Ordered external-event outcomes, including per-item errors
usedTags(30d)— Distinct used tag values visible to the event-read token
commandResult(infinite)— Outcome of a triggered or dry-run command
events(30d)— A page (or several) of events read with an EventRead token
consumedEvents(30d)— Events served from a server-tracked consume cursor with an EventRead token
ack(infinite)— Record of a manual_ack cursor acknowledgement
eventWrite(infinite)— Result of writing an external or direct event
parkedDelivery(infinite)— A bridge's parked-delivery report stored by SkilJ
@gklijs/skilj-graphqlv2026.11.17.1skilj_graphql.ts
fn compareSchema(before?: union, after?: union)
Compare schema compatibility; before defaults to the stored schema, after defaults to a fresh deployment read without overwriting the baseline
ArgumentTypeDescription
before?union
after?union
fn listCommandProposals(boundedContext: string, commandTypeName?: string, status?: enum, after?: string, maxPages?: number, includePayloads?: boolean)
List scoped command proposals with bounded pagination; payloads are fetched only when includePayloads is true
ArgumentTypeDescription
boundedContextstring
commandTypeName?string
status?enum
after?string
maxPages?number
includePayloads?boolean
fn approveCommand(boundedContext: string, proposalId: string)
Explicitly approve one proposal using an admin Role; command rules run at decision time, and may reject it. Never retried
ArgumentTypeDescription
boundedContextstring
proposalIdstring
fn rejectCommand()
Explicitly reject one proposal using an admin Role with an optional private reason. Never retried
fn validateOperation()
Validate GraphQL fields, selection sets, operation names and variables without executing resolvers; reuse an introspected schema or supply SDL
fn exportSchemaSdl(schema?: record)
Export sorted GraphQL SDL; supply introspection JSON to reuse a captured schema, or fetch the deployed schema
ArgumentTypeDescription
schema?record
fn execute(document: string, variables?: record, operationName?: string)
Execute a GraphQL query or mutation with variables; inspect succeeded/errorCount even for HTTP 200. Never automatically retried
ArgumentTypeDescription
documentstring
variables?record
operationName?string
fn introspect()
Fetch the deployed GraphQL schema for frontend tooling; requires server introspection to be enabled
fn exportSchema()
Export a standard GraphQL introspection JSON file for frontend tooling without manual envelope conversion
fn revokeAccessToken(tokenId: string)
Revoke a REST capability by ID using an admin Role; does not return its secret. Never automatically retried
ArgumentTypeDescription
tokenIdstring
fn createAccessToken(kind: enum, boundedContext: string, typeName: string, scope?: string, startFrom?: enum, startAtSequence?: number, startAtTime?: iso.datetime)
Create a scoped REST capability token using an admin Role; vault-protects the returned <id>.<secret> credential. Never retried
ArgumentTypeDescription
kindenum
boundedContextstring
typeNamestring
scope?string
startFrom?enum
startAtSequence?number
startAtTime?iso.datetime
fn debugCommand(boundedContext: string, commandTypeName: string, payload: record)
Admin-only GraphQL dry run showing would-be events and scoped matching history, without storing a command
ArgumentTypeDescription
boundedContextstring
commandTypeNamestring
payloadrecord

Resources

schemaDiff(30d)— Schema compatibility counts with protected change descriptions
commandProposals(7d)— Scoped proposal metadata and a bounded paging cursor; no payloads
proposalDetails(7d)— Explicitly requested proposal payload and rejection reason, protected in a per-proposal vault slot
proposalDecision(infinite)— Operator decision and actual command outcome; approval may still be rejected by domain rules
operationValidation(7d)— Offline operation validation and variable coercion; diagnostics are vault-protected
tokenRevocation(infinite)— Revoked capability ID, concrete GraphQL type, status and revocation time; no credential
graphqlResult(7d)— GraphQL success flag and vault-protected data/errors, including partial responses
graphqlSchema(30d)— Introspection data for frontend code generation and operation discovery
accessToken(infinite)— Created REST capability token; credential is persisted through Swamp's vault

Files

schemaSdl(text/plain)— Sorted GraphQL SDL for frontend type generation and readable schema diffs
schemaExport(application/json)— GraphQL introspection JSON for frontend code generators (data.__schema envelope)
@gklijs/skilj-investigationv2026.11.17.1skilj_investigation.ts
fn investigate()
Report captured correlation evidence from explicit artifact versions; no network calls
04Workflows2
@gklijs/withdraw-and-verify8a03b69f-21ca-4c88-976e-4323dacc30a2

Trigger a withdrawal command, assert decide() accepted it, then read back the stored event. Runnable documentation for @gklijs/skilj: shows the trigger-then-fetch wiring, cursor passing, and the accepted guard.

withdraw-and-verify
1.dry-run${{ inputs.commandModel }}.dryRunCommand— Check decide() would accept the withdrawal without storing anything.
2.assert-dry-run-accepted— Stop when the dry run says decide() would reject.
3.trigger${{ inputs.commandModel }}.triggerCommand— Trigger the withdrawal under the idempotency key.
4.assert-accepted— Stop when the command was rejected or awaits approval.
5.assert-produced-events— A withdrawal must produce at least one stored event.
6.read-back${{ inputs.eventsModel }}.fetchEvents— Read the event type back to confirm the withdrawal landed.
7.assert-stored-event— Confirm the reader saw an event produced by this command.
@gklijs/skilj-command-and-verify5611e209-1066-4130-a9a0-1717eaf9947b

Dry-run an arbitrary command payload, trigger it under an idempotency key, then assert the event reader sees a sequence produced by that command.

command-and-verify
1.dry-run${{ inputs.commandModel }}.dryRunCommand— Check decide() would accept the command without storing anything.
2.assert-dry-run-accepted— Stop when the dry run says decide() would reject.
3.trigger${{ inputs.commandModel }}.triggerCommand— Trigger the command under the idempotency key.
4.assert-accepted— Stop when the command was rejected or awaits approval.
5.assert-produced-events— A command must produce at least one stored event.
6.read-back${{ inputs.eventsModel }}.fetchEvents— Read the event type back to confirm the command landed.
7.assert-stored-event— Confirm the reader saw an event produced by this command.
05Reports2
@gklijs/skilj-correlation-timelinemethod
skilj_correlation_timeline.ts

Correlation timeline of selected captured command/event artifacts with evidence gaps

skiljcorrelationinvestigation
@gklijs/skilj-reportmethod
skilj_report.ts

Operator summary of a SkilJ method run: outcome, counts, and the data artifact pointer

skiljevent-sourcingsummary
06Skills4
skilj-setup1 file
skilj-workflows1 file
skilj-debug1 file
skilj-frontend1 file
07Previous Versions3
2026.11.07.1MIT

Adds SkilJ 0.3.0 REST and GraphQL support, safe batches and event cursors, vaulted token lifecycle and proposal administration, offline GraphQL validation, schema export and compatibility checks, tracing, reusable workflows, and four bundled skills. Verified with 88 unit tests and isolated live integration tests.

Added 1, modified 1 behaviors. Added 1 workflows. Added 4 skills

2026.10.14.2MIT(was none)

Modified 1 behaviors. Added 1 workflows. Added 1 reports

2026.10.14.1
08Stats
A
100 / 100
Downloads
22
Archive size
144.7 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
09Platforms
10Labels