-
Notifications
You must be signed in to change notification settings - Fork 0
sync: bring personal Hyperlex product tip onto org main #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| name: Docs (MkDocs) | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "docs/**" | ||
| - "mkdocs.yml" | ||
| - ".github/workflows/docs.yml" | ||
| - "scripts/sync_mkdocs_pages.py" | ||
| - "README.md" | ||
| - "ARCHITECTURE.md" | ||
| - "DESIGN.md" | ||
| - "SPEC.md" | ||
| - "STATUS.md" | ||
| - "ROADMAP.md" | ||
| pull_request: | ||
| paths: | ||
| - "docs/**" | ||
| - "mkdocs.yml" | ||
| - "scripts/sync_mkdocs_pages.py" | ||
| - "STATUS.md" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Install docs deps | ||
| run: pip install -U pip "mkdocs>=1.5" "mkdocs-material>=9.0" | ||
| - name: Sync root pages into docs/ | ||
| run: | | ||
| cp ARCHITECTURE.md docs/architecture.md | ||
| cp DESIGN.md docs/design.md | ||
| cp SPEC.md docs/spec.md | ||
| cp STATUS.md docs/status.md | ||
| python3 scripts/sync_mkdocs_pages.py | ||
| - name: Build site (strict) | ||
| run: mkdocs build --strict | ||
| - name: Upload artifact | ||
| if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: site | ||
|
|
||
| deploy: | ||
| if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Hyperlex Skill Validation | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| validate: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| runs-on: ${{ matrix.os }} | ||
| env: | ||
| HYPERLEX_OFFLINE: "1" | ||
| HYPERLEX_NO_RATE_LIMIT: "1" | ||
| PYTHONPATH: src | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install test dependencies | ||
| run: python -m pip install -U pip pytest jsonschema | ||
| - name: Check skill | ||
| run: python3 scripts/hyperlex.py check | ||
| - name: Doctor | ||
| run: python3 scripts/hyperlex.py doctor | ||
| - name: Verify sources command | ||
| run: python3 scripts/hyperlex.py sources | ||
| - name: Run smoke | ||
| run: python3 scripts/hyperlex.py smoke | ||
| - name: Diagram from golden | ||
| run: python3 scripts/hyperlex.py diagram --from-golden --out-dir out/ci-diagrams --no-html | ||
| - name: Case study runner | ||
| run: python3 scripts/run_case_study.py --out-dir out/ci-case-study | ||
| - name: Run tests | ||
| run: python3 -m pytest -q | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Project Constitution: Hyperlex | ||
|
|
||
| **Version**: 1.0.0 | ||
| **Ratified**: 2026-09-04 | ||
| **Last Amended**: 2026-09-04 | ||
| **Status**: SHADOW / ADVISORY until operator promotion | ||
| **Remote**: scrimshawlife-ctrl/Hyperlex | ||
| **Notion owner**: Hyperlex spine (01 Specs & Spines) | ||
|
|
||
| This constitution is the evaluation gate for every later Spec Kit artifact (`specify`, `plan`, `tasks`, `implement`, `converge`). Existing `DESIGN.md`, `SPEC.md`, `SKILL.md`, and `docs/api-v1.md` remain runtime truth until an implement cycle lands. This file does not mutate API_V1. | ||
|
|
||
| ## Principles | ||
|
|
||
| ### I. Catch becoming-culture, not settled culture | ||
| Hyperlex exists to catch language while it is still becoming culture. Lineage, receipts, and settlement are first-class. Lexicon dumps without operator and mutation structure are incomplete. | ||
|
|
||
| ### II. Offline-first, fail-closed on scores, fail-open on ingest | ||
| Baseline analysis MUST run under `HYPERLEX_OFFLINE=1` / `source=mock` with no network. Ingest failures degrade. Missing settlements yield `NOT_COMPUTABLE`. Never crash the analyze path for optional enrichers. | ||
|
|
||
| ### III. Settled Brier only | ||
| Open analysis, Phase 5, mutation prediction, and mutation-grammar watch scores MUST keep `brier: null`. Numeric Brier exists only after operator settlement on an eligible forecast class. Mutation-grammar packets are never forecast-eligible. | ||
|
|
||
| ### IV. Provenance discipline | ||
| Every claim is `OBSERVED`, `INFERRED`, or `SPECULATIVE`. Lineage confidence is INFERRED. Next-form prediction is SPECULATIVE. Operator-stack detection on an attested surface may be OBSERVED for the surface and INFERRED for the stack. | ||
|
|
||
| ### V. No Abraxas hard import | ||
| Hyperlex MUST NOT import Abraxas. Wire shapes live under `hyperlex.compat.abraxas` as export-only. Hyperlex MUST NOT write Abraxas rune registry rows, p89 binds, or Forecast spines. | ||
|
|
||
| ### VI. Receipt integrity is frozen history | ||
| Lineage backprop, mutation traces, and grammar overlays MUST NOT rewrite historical receipt hashes or `provenance.integrity`. | ||
|
|
||
| ### VII. Detector over generator for adversarial grammar | ||
| Mutation *prediction* may emit civilian next surface forms of a slang atom (existing `hyperlex.mutation_prediction.v1`). Mutation *grammar* (this expansion) is a detector, tracer, and watcher. It MUST NOT generate restricted-intent wraps, jailbreak recipes, or reconstructable payloads when `restricted_intent_suspected` is true. Store hash + layer tags only in that case. | ||
|
|
||
| ### VIII. Human sovereignty on promotion | ||
| Schema landings, registry family adds, Chroma promotes, cron registration, and canon status changes require an operator gate. Specs do not self-promote. | ||
|
|
||
| ### IX. Library-first additive modules | ||
| New capability ships as a package module (`hyperlex.analysis.*` or `hyperlex.mutation.*`) with tests before CLI sugar. API_V1 stays frozen; additive symbols go on `API_EXTENDED`. | ||
|
|
||
| ### X. Dual-use bound | ||
| Cite safety literature. Do not reproduce restricted payloads. SUAS/SS may consume watch-language tags only. No operational evasion playbook in this repo. | ||
|
|
||
| ## Constraints | ||
| - Python ≥ 3.10, stdlib-first baseline. | ||
| - Atomic terms; do not density-stack multi-term bags as one seed by default. | ||
| - RUNE.HLX.* envelopes are advisory. No execute_production. | ||
| - Sacred-slang metrics (ritualCharge, paraphraseResistance, …) are overlays, not Brier inputs. | ||
|
|
||
| ## Amendment | ||
| Operator amends this file, bumps version, restamps Last Amended. Dependent specs must re-check principles I–X. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.