Directories
¶
| Path | Synopsis |
|---|---|
|
extension-conformance
|
|
|
sdkscenarios
Package sdkscenarios is the one table of SDK conformance scenarios.
|
Package sdkscenarios is the one table of SDK conformance scenarios. |
|
testfixture
Command sdk-fixture is a minimal SDK-based extension for integration testing.
|
Command sdk-fixture is a minimal SDK-based extension for integration testing. |
|
testfixture/childsession
Package childsession is the Go SDK extension of the child agent session conformance rows: it creates a session over the host's model runtime with a custom tool, subscribes, prompts, reads the transcript and state back and disposes.
|
Package childsession is the Go SDK extension of the child agent session conformance rows: it creates a session over the host's model runtime with a custom tool, subscribes, prompts, reads the transcript and state back and disposes. |
|
testfixture/cmd
command
Command sdk-fixture runs the canonical Go SDK conformance extension over a subprocess socket.
|
Command sdk-fixture runs the canonical Go SDK conformance extension over a subprocess socket. |
|
testfixture/earlydispatch
Package earlydispatch is the Go SDK extension of the pre-ready dispatch row (early_dispatch_conformance_test.go): one listener that echoes the payload it was dispatched, so a host that scripts the wire can tell which request each handler served.
|
Package earlydispatch is the Go SDK extension of the pre-ready dispatch row (early_dispatch_conformance_test.go): one listener that echoes the payload it was dispatched, so a host that scripts the wire can tell which request each handler served. |
|
testfixture/earlydispatch/cmd
command
Command early-dispatch runs the pre-ready dispatch row's Go extension over a subprocess socket.
|
Command early-dispatch runs the pre-ready dispatch row's Go extension over a subprocess socket. |
|
testfixture/extensionapi
Package extensionapi is the Go SDK extension of the Pi 0.99.1 extension API conformance rows.
|
Package extensionapi is the Go SDK extension of the Pi 0.99.1 extension API conformance rows. |
|
testfixture/modeltypes
Package modeltypes is the Go SDK extension of the typed model operation conformance rows: ctx.modelRegistry's typed reads, getAvailableOfType, classify and registerVirtualModel, and the image and classifier implementations of a provider config and of a Provider object.
|
Package modeltypes is the Go SDK extension of the typed model operation conformance rows: ctx.modelRegistry's typed reads, getAvailableOfType, classify and registerVirtualModel, and the image and classifier implementations of a provider config and of a Provider object. |
|
testfixture/nestedevents
Package nestedevents is the Go SDK extension of the nested-event conformance row (TestRPCNestedEventsCompleteInEverySDK): one command sends a triggering message while a before_agent_start handler is subscribed, and one appends an entry and then names the session while a session_info_changed handler is subscribed.
|
Package nestedevents is the Go SDK extension of the nested-event conformance row (TestRPCNestedEventsCompleteInEverySDK): one command sends a triggering message while a before_agent_start handler is subscribed, and one appends an entry and then names the session while a session_info_changed handler is subscribed. |
|
testfixture/nestedevents/cmd
command
Command nested-events runs the nested-event conformance row's Go extension as a standalone executable, so the host gives it its own isolated process.
|
Command nested-events runs the nested-event conformance row's Go extension as a standalone executable, so the host gives it its own isolated process. |
|
testfixture/nestedevents/pig
command
Command nested-events-pig is pig with the nested-event conformance row's Go extension fused in, as a Piglet Binary fuses one (fusepack.Register): the host serves the extension named nested-go-fused in this process instead of building it.
|
Command nested-events-pig is pig with the nested-event conformance row's Go extension fused in, as a Piglet Binary fuses one (fusepack.Register): the host serves the extension named nested-go-fused in this process instead of building it. |
|
testfixture/sessiongraph
Package sessiongraph is the Go SDK extension of the session graph conformance rows (session_graph_test.go): Pi's SessionManager constructors, listing and log methods as an extension builds them.
|
Package sessiongraph is the Go SDK extension of the session graph conformance rows (session_graph_test.go): Pi's SessionManager constructors, listing and log methods as an extension builds them. |
|
Package integration holds end-to-end tests that drive the real `pig` binary through a tmux PTY and assert on captured pane output.
|
Package integration holds end-to-end tests that drive the real `pig` binary through a tmux PTY and assert on captured pane output. |
|
Package journeys holds PiG's end-to-end journeys: long sessions in a real pseudo-terminal against a scripted provider, run on PiG and on the pinned Pi release, with provider requests, session files and rendered frames compared.
|
Package journeys holds PiG's end-to-end journeys: long sessions in a real pseudo-terminal against a scripted provider, run on PiG and on the pinned Pi release, with provider requests, session files and rendered frames compared. |
|
cmd/probe
command
Command probe drives PiG and Pi through a short script in a real terminal and prints each product's screen, to learn what an interaction looks like before writing a journey step.
|
Command probe drives PiG and Pi through a short script in a real terminal and prints each product's screen, to learn what an interaction looks like before writing a journey step. |
|
Package longsession writes a long Pi session fixture: a version 3 session file whose active context holds a chosen number of tokens, the agent directory that declares a scripted model with a chosen context window, and a metadata record.
|
Package longsession writes a long Pi session fixture: a version 3 session file whose active context holds a chosen number of tokens, the agent directory that declares a scripted model with a chosen context window, and a metadata record. |
|
cmd/longsession
command
Command longsession writes long Pi session fixtures and measures a harness's memory with one loaded.
|
Command longsession writes long Pi session fixtures and measures a harness's memory with one loaded. |
|
mcp-conformance
|
|
|
client
command
Command client is the client under test for the official MCP client conformance suite.
|
Command client is the client under test for the official MCP client conformance suite. |
|
run
command
Command run runs the official MCP client conformance suite against PiG (../client) and compares every check with the committed baseline (../baseline.json).
|
Command run runs the official MCP client conformance suite against PiG (../client) and compares every check with the committed baseline (../baseline.json). |
|
parity
|
|
|
closure
Package closure stores and verifies the evidence graph used to assess PiG's correspondence with the pinned Pi source.
|
Package closure stores and verifies the evidence graph used to assess PiG's correspondence with the pinned Pi source. |
|
cmd/asynccheck
command
Command asynccheck proves that every upstream source file with Promise/async behavior has an explicit cross-language disposition and durable evidence.
|
Command asynccheck proves that every upstream source file with Promise/async behavior has an explicit cross-language disposition and durable evidence. |
|
cmd/behaviorcheck
command
|
|
|
cmd/checkparityran
command
Command checkparityran answers one question: did the parity suite actually compare pig against a real pi, or did it just skip?
|
Command checkparityran answers one question: did the parity suite actually compare pig against a real pi, or did it just skip? |
|
cmd/closure
command
|
|
|
cmd/correspondence
command
|
|
|
cmd/coverage
command
Command coverage produces a markdown report linking parity scenarios to docs/parity/PORT_MAP.md entries.
|
Command coverage produces a markdown report linking parity scenarios to docs/parity/PORT_MAP.md entries. |
|
cmd/customfactoryledger
command
Command customfactoryledger derives the internal custom-UI factory draft ledger from the pinned upstream public interface inventory.
|
Command customfactoryledger derives the internal custom-UI factory draft ledger from the pinned upstream public interface inventory. |
|
cmd/extensioncorpus
command
|
|
|
cmd/familygaps
command
Command familygaps reports, for one behavior family, which upstream PORT_MAP entries fall within its scope and which lack behavioral verification.
|
Command familygaps reports, for one behavior family, which upstream PORT_MAP entries fall within its scope and which lack behavioral verification. |
|
cmd/formatversions
command
|
|
|
cmd/gointerfaces
command
|
|
|
cmd/interfacedelta
command
|
|
|
cmd/interfaceinventory
command
|
|
|
cmd/interfacerecommend
command
|
|
|
cmd/lint
command
Command lint validates parity scenarios against quality rules that AGENTS.md declares.
|
Command lint validates parity scenarios against quality rules that AGENTS.md declares. |
|
cmd/methodrefs
command
Command methodrefs reports, with type information, which functions call each method of one Go type.
|
Command methodrefs reports, with type information, which functions call each method of one Go type. |
|
cmd/newscenario
command
|
|
|
cmd/porter
command
|
|
|
cmd/portmapcheck
command
Command portmapcheck derives the PORT_MAP ✅ ticks instead of trusting them.
|
Command portmapcheck derives the PORT_MAP ✅ ticks instead of trusting them. |
|
cmd/portmapskeleton
command
Command portmapskeleton writes one marker-test skeleton per Pi file that has no `// pi:` marker test yet.
|
Command portmapskeleton writes one marker-test skeleton per Pi file that has no `// pi:` marker test yet. |
|
cmd/portreconcile
command
Command portreconcile produces the honest gap ledger for the Pig port.
|
Command portreconcile produces the honest gap ledger for the Pig port. |
|
cmd/prodreach
command
Command prodreach lists the functions that the PiG binary can reach, by rapid type analysis from the main function and the package initializers of the given main packages, and from the exported API of the given library packages.
|
Command prodreach lists the functions that the PiG binary can reach, by rapid type analysis from the main function and the package initializers of the given main packages, and from the exported API of the given library packages. |
|
cmd/sdksurface
command
Command sdksurface generates docs/extension-sdk-surface.md: every extension-facing surface of Pi's extension API, read from the pinned upstream types.ts and the declarations it re-exports or exposes, with one column per PiG extension runtime (the Node runtime and the Go, Rust and Python SDKs).
|
Command sdksurface generates docs/extension-sdk-surface.md: every extension-facing surface of Pi's extension API, read from the pinned upstream types.ts and the declarations it re-exports or exposes, with one column per PiG extension runtime (the Node runtime and the Go, Rust and Python SDKs). |
|
cmd/sourcehygiene
command
|
|
|
cmd/testinventorycheck
command
Command testinventorycheck validates the reviewed disposition mapping over the upstream-test inventory.
|
Command testinventorycheck validates the reviewed disposition mapping over the upstream-test inventory. |
|
cmd/testprune
command
Command testprune inventories and classifies PiG's tests, measures the coverage a deletion batch would lose, and enforces the provenance ratchet for golden files and for expectations edited together with the code they test.
|
Command testprune inventories and classifies PiG's tests, measures the coverage a deletion batch would lose, and enforces the provenance ratchet for golden files and for expectations edited together with the code they test. |
|
cmd/upstreamdelta
command
Command upstreamdelta proves that every changed upstream source file in a version leap received an explicit disposition and durable evidence.
|
Command upstreamdelta proves that every changed upstream source file in a version leap received an explicit disposition and durable evidence. |
|
correspondence
Package correspondence compares pinned Pi source interfaces with PiG targets and produces deterministic review packets.
|
Package correspondence compares pinned Pi source interfaces with PiG targets and produces deterministic review packets. |
|
interface-closure/autobind
command
Command autobind is a deterministic gap detector for the Pi interface ledger.
|
Command autobind is a deterministic gap detector for the Pi interface ledger. |
|
interface-closure/autobind/rules
Package rules is the registry of deterministic mapping rules from Pi's TypeScript shapes to PiG's Go shapes.
|
Package rules is the registry of deterministic mapping rules from Pi's TypeScript shapes to PiG's Go shapes. |
|
interface-closure/breakdown/testrefs
command
testrefs prints, per directory with Go tests, which identifiers each Test function reaches (itself plus same-package helper functions, depth 3) and whether it asserts (calls t.Error*/Fatal*/Fail*/assert/require).
|
testrefs prints, per directory with Go tests, which identifiers each Test function reaches (itself plus same-package helper functions, depth 3) and whether it asserts (calls t.Error*/Fatal*/Fail*/assert/require). |
|
interface-closure/stubfields
command
Command stubfields generates the missing plain-data fields of Go structs from the interface-gap list.
|
Command stubfields generates the missing plain-data fields of Go structs from the interface-gap list. |
|
internal/gitsnapshot
Package gitsnapshot resolves and validates immutable Git tree identities for parity evidence.
|
Package gitsnapshot resolves and validates immutable Git tree identities for parity evidence. |
|
internal/ledgertarget
Package ledgertarget pins the platform the interface ledger is derived for.
|
Package ledgertarget pins the platform the interface ledger is derived for. |
|
knowngaps
Package knowngaps loads test/parity/known-gaps.toml, the one ledger of parity gaps that gates tolerate against the pinned Pi version.
|
Package knowngaps loads test/parity/known-gaps.toml, the one ledger of parity gaps that gates tolerate against the pinned Pi version. |
|
porter
Package porter exposes the single deterministic process contract used by the direct Porter adapter and the Pig Porter extension.
|
Package porter exposes the single deterministic process contract used by the direct Porter adapter and the Pig Porter extension. |
|
upstreampackages
Package upstreampackages is the one list of the upstream monorepo packages that the parity tools account for.
|
Package upstreampackages is the one list of the upstream monorepo packages that the parity tools account for. |
|
Package perfgate holds the whole-process count gates: a built pig runs the print, RPC and startup paths with PIG_PROFILE=metrics under GOMAXPROCS=1, and its exit record (allocations, bytes, GC cycles, live heap, peak RSS, goroutines, descriptors, child processes), plus the entries it left in its private TMPDIR, is checked against automation/perf/ratchet.toml.
|
Package perfgate holds the whole-process count gates: a built pig runs the print, RPC and startup paths with PIG_PROFILE=metrics under GOMAXPROCS=1, and its exit record (allocations, bytes, GC cycles, live heap, peak RSS, goroutines, descriptors, child processes), plus the entries it left in its private TMPDIR, is checked against automation/perf/ratchet.toml. |
|
Package termengines replays the D205 terminal-engine corpus through real terminal emulators (make test-term-engines, docs/testing/term-engines.md).
|
Package termengines replays the D205 terminal-engine corpus through real terminal emulators (make test-term-engines, docs/testing/term-engines.md). |
|
Package parity parses upstream pi TypeScript declarations to drive parity tests.
|
Package parity parses upstream pi TypeScript declarations to drive parity tests. |
Click to show internal directories.
Click to hide internal directories.