Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PG Language — Integrated SDK 0.4.0 RC4

Experimental prerelease / 試験公開候補

PG is a semantic programming language that fixes word senses, types, units and contracts before execution. This unofficial fan software is inspired by Trickcal (トリッカル・もちもちほっぺ大作戦). It is not endorsed by the game developer or publisher. No game artwork, audio or game executable is included. AI-assisted development; the SDK excludes Pira-Raw and PG-Agent/AI Mode.

Installation

Python 3.11+; install into a fresh virtual environment. Native C execution requires a compatible C compiler. The cryptography dependency is installed by pip.

Private development build: install the provided local wheel; the version is not published. The following index command applies only after publication:

python -m pip install pg-language-integrated==0.8.0rc1
pg-preview --version
pg-core --help
pg-sdk --help

Two profiles are provided: pg-core (legacy core, Native C, Saki, Bridge, System) and pg-preview (independent runtime, networking, standard library and limited experimental CUDA). Their IR/ABI formats are not interchangeable. Do not install this package alongside other PG distributions that share its module names.

Quick start

Create light.pg:

(recipe: light_observation)
(input: hikari/lit LightValue lux)
(output: sample LightValue)
(Observe)
hikari hakaru => sample
sample wo kiroku/observation ni nokosu

Create light.json:

{
  "hikari/lit": {
    "value": 42.5,
    "provenance": {
      "source": "demo:synthetic",
      "captured_at": "2026-12-03T00:00:00Z"
    },
    "unit": "lux"
  }
}
pg-preview check light.pg
pg-preview run light.pg light.json

Scope and safety

The integrated SDK includes Core, Native Lite, Saki, Jisho, Live, System, System Link, VM, Mining, Health, Safe, Recovery, Team, Root, OrgNet, Multi-node, Robustness, Chaos, Adaptive and the independent preview runtime. Many legacy components are reference implementations. Full self-hosting, complete multi-host execution, full GPU support and formal 742/750-case conformance are not established.

PG-Net supports policy-controlled HTTPS/JSON, bounded retries and persistent queues. The independent RC2 profile was tested on Windows (119 passed, one TLS fixture skipped) and a public GitHub HTTPS GET succeeded. The integrated build has Linux regression results; its Windows and physical CUDA tests remain pending. Earlier Kaggle matrix multiplication results are not SDK GPU qualification.

Use trusted programs only. Legacy Bridge/FFI can execute external code with host permissions. This is not an OS sandbox, a security-certified product, or a production PKI. Do not run untrusted programs or use real secrets. CUDA is optional and requires a compatible PyTorch installation and driver.

Rights

Author-supplied PG code. Distribution license for downstream modification, redistribution and commercial use has not been selected. Availability for download is not a grant of those permissions. Third-party dependencies retain their own terms. This candidate is for author review before upload; third-party rights and applicable fan-content conditions must be checked before public release. See the official fan-content guidance: https://trickcal.biligames.com/news/jp/?news_detail_id=181782100307091368

RC3 hardening and common entry point

pg-language requires an explicit runtime profile; it never silently migrates an IR or falls back to another semantic engine. The source envelope is checked against recompilation. The built-in shared vocabulary is read from Core's dictionary, with explicit Preview capabilities. These are not a single execution IR.

pg-language --version
pg-language catalog
pg-language check --profile core examples/light.pg
pg-language run --profile preview examples/light.pg examples/light.json

Both engines share matrix, scalar, money, provenance, and credential validation. Real credential values are rejected; synthetic demo values require explicit host opt-in. Native credential code generation is disabled. Core Python also has bounded input, step and result budgets. Existing Native binaries, direct PGIN inputs, debugger, FFI and all OS resources are not fully isolated. A host-only pg_common.guard AES-256-GCM API protects bounded JSON data with explicit caller-held keys and context; it is not a key manager or replay protection. See docs/ROADMAP_1_0.md for remaining release gates. This is a hardening prerelease, not version 1.0.0.

0.4.0 RC1 — private integration candidate

Do not upload until the author decides to release. This candidate extends RC3 without removing the legacy commands. RAW and AI remain excluded.

pg-language compare examples/light.pg examples/light.json
pg-language local examples/light.pg examples/light.json --timeout 5

compare checks outputs, bindings, records and last value for one input in the offline common subset. It rejects a difference and does not imply general equivalence or a shared executable IR. local runs the Preview CPU path in a child process with a 1–30 second deadline and a 1 MiB result limit; network, credentials, external programs and nondeterministic time operations are excluded. This is not an OS security sandbox. See docs/NEXT_PLATFORM.md for the host APIs and limitations.

Private development RC2

See docs/PRIVATE_RC2.md in the source distribution. pg-language portable runs the bounded offline profile; pg-language matrix runs verified bounded integer arithmetic; optional pg-workbench requires Tk. These are development features, not a production-safety guarantee.

Private development RC3

See docs/PRIVATE_RC3.md. Adds a three-engine offline differential check, authenticated HTTPS loopback transfer, Linux worker kernel resource limits, local package lock CLI, GUI file actions and a physical CUDA qualification command. These are limited profiles, not full ABI unification, OS sandboxing or 1.0.0 certification.

RC4 private features

See docs/PRIVATE_RC4.md for ABI, Linux syscall isolation, trusted peer sync, package distribution, GPU qualification and IDE instructions. New features are optional, experimental, and not a general security guarantee. This is not 1.0.0.

Experimental PG-Science-1 (0.6.0rc1)

pg-language science examples/science_mean.json runs the new strict quantity and uncertainty profile. pg-language science-matrix examples/science_matrix.json runs a dimension-aware exact integer product. pg-language observe-checked gates existing offline ABI execution with strict calibration/time metadata. See docs/SCIENCE.md for input contract, assumptions and limitations. Legacy routes do not enforce this strict profile by default.

PG Research 0.8.0rc1 (private)

See research workflow and limits. pg-rd provides science jobs, full-factorial designs, strict CSV import, authenticated local records and exact replay; pg-rd-workbench is the optional local GUI. Install the fast extra for NumPy.

Experimental semantic events (0.9.0rc1)

See PG-Event-1 and R&D security extensions. Offline Linux only for semantic event execution.

Private 0.9.0rc2 upgrade

See docs/RC2_UPGRADE.md in the source archive. New pg-event-graph, pg-snapshot, pg-rd-secure register-v2/run-v2, bounded scientific models and compound units. Not a production or stable release.

Metadata

Release files for pg-language-integrated 0.9.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pg-language-integrated 0.9.0rc2
File Size Uploaded Provenance Actions
pg_language_integrated-0.9.0rc2.tar.gz 333.9 kB Without provenance Details for pg_language_integrated-0.9.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pg-language-integrated 0.9.0rc2
File Interpreter ABI Platform Actions
pg_language_integrated-0.9.0rc2-py3-none-any.whl Python 3 none any Details for pg_language_integrated-0.9.0rc2-py3-none-any.whl

Total release size: 681.6 kB

Release files / pg_language_integrated-0.9.0rc2.tar.gz

Download URL pg_language_integrated-0.9.0rc2.tar.gz
Size 333.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce3b5a9a795da7120a1130cd9159b2a4a97e9f969695da12519fa60bbbc12f30
BLAKE2b-256 checksum
How to use checksums
7d3094988b33c02d2c38ac2827faa525c6e33e3de0a2c07031d2149b99d18f95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / pg_language_integrated-0.9.0rc2-py3-none-any.whl

Download URL pg_language_integrated-0.9.0rc2-py3-none-any.whl
Size 347.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dfa4b64a5df4b903ac084365f2ef52a20a92071c493bd19a3d8bb48e192f8b8
BLAKE2b-256 checksum
How to use checksums
c7d274803477b242b67ca33be8ecd193ab749f423db596be0fa835ef63a4ebba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for pg-language-integrated 0.9.0rc2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page