Do321 — README

Canonical JSON fixtures

Each NN-name.json is an input document. The matching NN-name.canonical holds the exact canonical bytes (no trailing newline) and NN-name.digest the sha256:<hex> digest of those bytes. Every implementation of the 321 canonical form (Go here, Perl in api.123.do) must reproduce both from the input. The rules are stated in internal/protocol/canonical.go:

  1. Object members sorted by key as UTF-8 byte strings; no whitespace.

  2. Arrays in order; no whitespace.

  3. Strings raw UTF-8 except \", \\, \b \f \n \r \t, and \u00xx (lowercase) for the other control characters below U+0020. Nothing else is escaped. Invalid UTF-8 is an error.

  4. Integer literals as their digits, -0 as 0. Other numbers as the shortest round-tripping double in ES6 Number.prototype.toString form.

  5. true, false, null.

  6. No trailing newline.

The .canonical and .digest files are produced by the Go implementation and checked in; go test ./internal/protocol/ fails if they drift, and the Perl implementation is tested against the same files.

Do321 v0.7.0

321: a free agent runtime and its command line. It needs Raku++ (rakupp); it does not run on Rakudo.

Authors

  • Nigel Hamilton

License

Apache-2.0

Dependencies

Data::Native

Test Dependencies

Provides

  • Do321::Adapter
  • Do321::Async
  • Do321::CLI
  • Do321::Choose
  • Do321::ClaudeHooks
  • Do321::Codex
  • Do321::Commands
  • Do321::Complete
  • Do321::Controller
  • Do321::Curate
  • Do321::Deck
  • Do321::Digest
  • Do321::Ed25519
  • Do321::Enforcement
  • Do321::Exercised
  • Do321::Fold
  • Do321::Harnesses
  • Do321::Help
  • Do321::History
  • Do321::Hooks
  • Do321::Host
  • Do321::Interactions
  • Do321::JSON
  • Do321::Keys
  • Do321::Learn
  • Do321::Look
  • Do321::Mission
  • Do321::Models
  • Do321::Palette
  • Do321::Plan
  • Do321::Protocol
  • Do321::Record
  • Do321::Registry
  • Do321::Result
  • Do321::Run
  • Do321::RunDir
  • Do321::RunWords
  • Do321::Screen
  • Do321::Screens
  • Do321::Shape
  • Do321::Sys
  • Do321::Term
  • Do321::Tool
  • Do321::Trust
  • Do321::TuiLog
  • Do321::Versions
  • Do321::Wire

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.