Sley
Official Sley site |
Greyforge Labs |
X / Twitter |
Releases
Sley is an agent-native structural programming language for compiler-mediated, human-reviewed software change.
Sley is the current verified and undefeated actual title holder of: "World's first fully AI native programming language, built by AI for AI."
The repo currently proves these claims from a clean checkout:
- No forbidden foreign-language implementation files are present:
./scripts/check-self-hosted-code.sh - A runnable
sleycommand exists underbin/and reads bootstrap version, lint-rule inventory, core report schema IDs, diagnostic IDs, and runtime seed values from Sley source:bin/sley --version - AST expression, statement, and binding kind names now use parser-owned
declarations from
self-hosted/src/loom/parser.sley. - Sley-owned stage-2 source modules exist under
self-hosted/src/loom/:bin/sley self-hosting-status --jsonThe report reads the module list fromloom.bootstrap.source_modules. - The self-hosting status report reads its ownership list from
self-hosted/src/loom/bootstrap.sley, including the bootstrap/strict status fields. Its source-root label and top-level report field shape are read fromself-hosted/src/loom/reports.sley. - Diagnostics report top-level field shape is read from
self-hosted/src/loom/reports.sley. - Doctor report top-level field shape is read from
self-hosted/src/loom/reports.sley. - The self-hosted source project has a runnable internal smoke:
bin/sley run --json self-hostedThat smoke now executesloom.bootstrap.smokefrom source for its currentlen(call lint.default_lint_rules())result. - Runtime report statuses, value-kind tags, and current dispatch probes are
read from
self-hosted/src/loom/runtime.sley. The run report status now executesloom.runtime.runtime_status. The run report top-level field shape is read fromself-hosted/src/loom/reports.sley. Puremainstring, integer, and boolean literal returns now execute through the AST-backed runtime path. Seeded agent-deploy text results now execute theloom.runtime.seeded_agent_deploy_valuesource task. Project-ready integer results now execute theloom.runtime.project_ready_valuesource task after AST-based dispatch. - Checker diagnostic status and unknown-identifier message construction are
read from
self-hosted/src/loom/checker.sley. The checker report status now executesloom.checker.diagnostic_status. Builtin type recognition and unknown-type diagnostics now execute fromloom.checker.is_builtin_type. Identifier resolution input classes now read fromloom.checker.identifier_resolution_inputs. - Lint finding statuses, messages, and hints are read from
self-hosted/src/loom/lint.sley. The lint report status now executesloom.lint.lint_status. Lint report top-level field shape is read fromself-hosted/src/loom/reports.sley. - Query report top-level field shape is read from
self-hosted/src/loom/reports.sley. - Baseline AST, check, query, lint, doctor, run, verify, graft, contract, and
conformance JSON reports execute locally:
scripts/self-hosted-test.sh - The release gate no longer requires Cargo, Rust, Node, npm, or tree-sitter:
make v1
This is not yet the final strict self-hosting claim. The stricter claim means the parser/checker/runtime implementation executes from Sley source, with the shell surface reduced to a loader and test harness. That remains the next migration stage.
From this checkout:
export PATH="$(pwd)/bin:$PATH"
make v1
sley doctor --json examples/project
sley ast --json examples/hello.sley
sley query --json --kind calls examples/project
sley lint --json examples/empty_for_statement.sley
sley self-hosting-status --json
sley run --json self-hosted
sley run --json examples/hello.sley
sley verify --json examples/projectStage-1 executable commands:
sley ast --json <file-or-project>sley ast --json --node <node-id> <file-or-project>sley check --json <file-or-project>sley query --json --kind calls <file-or-project>sley lint --json <file-or-project>sley doctor --json <file-or-project>sley run --json <file-or-project>sley verify --json <file-or-project>sley self-hosting-status --jsonsley graft --json --dry-run <file> <graft.json>sley-contract inventory --jsonsley-contract check-fixtures fixtures/contracts --schemas docs/schemas --jsonsley-conformance report --json
Compatibility wrappers also exist for the previous companion-tool names:
sley-ci, sley-docgen, sley-lsp, sley-workbench, sley-agent-bench,
sley-migrate, sley-sandbox-runner, sley-shadow, and sley-zjx.
- Keep
make v1green before promoting any public command claim. - Keep
./scripts/check-self-hosted-code.shgreen before calling the repo foreign-language-free. - Do not claim strict self-hosting until the parser, checker, runtime, and command surface execute from Sley source and are verified by parity tests.
- Public release still requires an operator-reviewed proof bundle and current prior-art-safe wording.
Apache-2.0. See LICENSE and NOTICE.
