Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c8c64fa
feat(query): a read-only guest grant and its role
ascalva Nov 10, 2026
309054b
feat(sentence): withhold vault paths from a grant without the mirror
ascalva Nov 10, 2026
1b8cb9e
feat(mcp): serve the guest's read-only surface
ascalva Nov 10, 2026
88b70cd
test(adversarial): the guest leaks no note, and cannot tell two palac…
ascalva Nov 10, 2026
68c4d46
feat(formal): SCO-9, the guest's grant in Lean
ascalva Nov 10, 2026
4aee45d
docs(design): dn-guest-principal, a read-only grant for an external a…
ascalva Nov 10, 2026
f370fe7
test(adversarial): ask reach in each direction the battery names
ascalva Nov 10, 2026
1b8a0c3
docs(paper): the article for the guest principal
ascalva Nov 10, 2026
3db0337
docs(readme): name the guest's surface, and count its law and tests
ascalva Nov 10, 2026
d231ee2
fix(sentence): show a guest a causal edge only from an allow list
ascalva Nov 10, 2026
4a97aa4
fix(mcp): tell a guest a fixed sentence for a refusal raised in the run
ascalva Nov 10, 2026
8d39b07
fix(sentence): write the query log as ASCII and print it escaped
ascalva Nov 10, 2026
948efa2
fix(sentence): read a doc's id as a name when judging an edge
ascalva Nov 10, 2026
1ff0342
fix(mcp): run a tool with stdout pointed at stderr
ascalva Nov 10, 2026
0c2fa1c
fix(mcp): write a reply the stream cannot encode as ASCII
ascalva Nov 10, 2026
a84921e
test(sentence): pin the origin's witness, the normal form, the note
ascalva Nov 10, 2026
bf3dda6
fix(mcp): write a reply with a lone surrogate as ASCII on any stream
ascalva Nov 12, 2026
d27a915
docs(design): the guest's allow list, refusal text and limits
ascalva Nov 12, 2026
5e52674
docs(paper): the guest article's allow list, refusals and limits
ascalva Nov 12, 2026
fc46ead
docs(readme): count the deterministic tier with the guest's fixes
ascalva Nov 12, 2026
40f3cea
docs(readme): the Lean counts from this tree's check.sh run
ascalva Nov 12, 2026
fc98175
feat(mcp): the guest's overview says what the lite profile adds
ascalva Nov 12, 2026
4cfb046
test(adversarial): the guest over an instance that embeds nothing
ascalva Nov 12, 2026
cfa7186
test(adversarial): every lexical read a guest causes names its classes
ascalva Nov 12, 2026
23a346b
docs(design): the guest on an instance that embeds nothing
ascalva Nov 12, 2026
4f8da86
docs(lite): serve the code instance to an agent with the guest's surface
ascalva Nov 12, 2026
ccc25d3
docs(paper): the guest article over a store that embeds nothing
ascalva Nov 12, 2026
5302edd
docs(readme): the guest serves the code instance, and the tier's count
ascalva Nov 12, 2026
b8dfb35
test(adversarial): give the two lite palaces one landing time
ascalva Nov 12, 2026
60c41c2
fix(sentence): judge a commit's witnesses before choosing the first
ascalva Nov 12, 2026
21f6214
test(sentence): what the vault check folds and the vault's resolved form
ascalva Nov 12, 2026
31ddd0d
fix(mcp): compile a refused sentence again with the call's trace
ascalva Nov 12, 2026
ce5d24f
fix(mcp): answer a line that is no request, and read on
ascalva Nov 12, 2026
7c3c80d
fix(mcp): keep file descriptor 1 for the protocol while serving
ascalva Nov 12, 2026
14fcfaa
fix(sentence): read a string literal in memory its text bounds
ascalva Nov 12, 2026
0131911
fix(sentence): bound a log line in bytes, and read the log by lines
ascalva Nov 12, 2026
e76add2
docs(design): the guest note after the audit's repairs
ascalva Nov 12, 2026
37281ef
docs(paper): the guest article after the audit's repairs
ascalva Nov 12, 2026
b004726
docs(readme): count the deterministic tier with the audit's tests
ascalva Nov 12, 2026
0cf27a4
test(mcp): serve the nested lines on a stack the test chooses
ascalva Nov 12, 2026
eac002e
fix(mcp): repeat only a string version, and write each reply in a guard
ascalva Nov 12, 2026
a591934
docs(design): the guest note after the confirmation's findings
ascalva Nov 12, 2026
7e3080e
docs(paper): count the article's tier with the confirmation's tests
ascalva Nov 12, 2026
186504e
docs(readme): count the deterministic tier with the confirmation's tests
ascalva Nov 12, 2026
d8caf7e
test(adversarial): give the code overlay's instance its landing-log item
ascalva Nov 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

[![CI](https://github.com/ascalva/mind-palace/actions/workflows/ci.yml/badge.svg)](https://github.com/ascalva/mind-palace/actions/workflows/ci.yml)
[![Lean](https://github.com/ascalva/mind-palace/actions/workflows/lean.yml/badge.svg)](https://github.com/ascalva/mind-palace/actions/workflows/lean.yml)
[![laws](https://img.shields.io/badge/laws-105_rows_in_16_families-blue)](docs/LAWS.md)
[![Lean statements](https://img.shields.io/badge/Lean-375_statements_judged-blue)](formal/README.md)
[![laws](https://img.shields.io/badge/laws-106_rows_in_16_families-blue)](docs/LAWS.md)
[![Lean statements](https://img.shields.io/badge/Lean-380_statements_judged-blue)](formal/README.md)
[![sorry](https://img.shields.io/badge/sorry-0-brightgreen)](formal/sorry-budget)
[![kernels](https://img.shields.io/badge/kernel_replay-6_checkers-6f42c1)](formal/check.sh)
[![attacks](https://img.shields.io/badge/attacks-232_with_controls-blue)](formal/PalaceTest)
[![tests](https://img.shields.io/badge/tests-3673-brightgreen)](docs/runbook.md)
[![tests](https://img.shields.io/badge/tests-3721-brightgreen)](docs/runbook.md)
[![coverage](https://img.shields.io/badge/coverage-77%25-green)](pyproject.toml)
[![mypy](https://img.shields.io/badge/mypy-0_errors_in_core-brightgreen)](pyproject.toml)
[![sealed core](https://img.shields.io/badge/sealed_core-zero_egress-6f42c1)](scripts/check_imports.py)
Expand All @@ -33,7 +33,7 @@ read "reference:openai-math:Local-smoothing" chunk 3

There are five sorts: a *field* (a score on every node), a *region* (a set of nodes), *chains* (paths that spell a word over the edge types), a *witness* (the commit that minted an edge) and a *text* (one record). The verbs move between them: `near`, `diffuse`, `reach`, `relate`, `trace`, `walk … via`, `witness`, `read`. The connectives compose them: `and`, `or`, `minus`, `then`; `within`, `over` and `as of` restrict; `top k`, `atleast t`, `far` and `not` bound; `assume … in` evaluates a sentence under a hypothesis, and its answer is a `Hyp` beside the actual answer, never a fact. The grammar is `core/sentence/grammar.py`; [`docs/query/asking.md`](docs/query/asking.md) is the guide to writing a sentence.

Two surfaces share one grant. `mind-palace query "<sentence>"` runs a sentence read-only from the live checkout. The Ambassador's MCP server has one read tool, `query`, and the Open WebUI bridge serves the same manifest. Both hold the Ambassador's grant with the hypothetical overlay the owner switched on; `--as <role>` labels the asker in the query log and grants nothing. A sentence that cannot be answered is refused with the reason: the production that failed to parse, the sort rule it broke, the plane no grant covers, the note that matched twice. It is not answered with nearest neighbours instead.
Two surfaces share one grant. `mind-palace query "<sentence>"` runs a sentence read-only from the live checkout. The Ambassador's MCP server has one read tool, `query`, and the Open WebUI bridge serves the same manifest. Both hold the Ambassador's grant with the hypothetical overlay the owner switched on; `--as <role>` labels the asker in the query log and grants nothing. A third surface holds a narrower grant: `scripts/palace_mcp.py --role guest` serves an external agent `query` and `overview` alone, read-only over the dialogue, the repository's code and docs, the papers and the observed records, never the notes or the interpretations derived from them (SCO-9, `docs/design-notes/dn-guest-principal.md`); it is how the code instance below serves a coding agent. A sentence that cannot be answered is refused with the reason: the production that failed to parse, the sort rule it broke, the plane no grant covers, the note that matched twice. It is not answered with nearest neighbours instead.

## From a sentence to an answer

Expand Down Expand Up @@ -121,12 +121,12 @@ A law has one row in [`docs/LAWS.md`](docs/LAWS.md): its statement, the structur
| | |
|---|---|
| toolchain | Lean `v4.36.0-rc2`, Mathlib; Plausible for the attacks |
| the library | 38 proof modules, 37 models, 27 statement files; 25,652 lines of models and proofs, 3,810 of statements, 5,757 of attacks |
| theorems | 1,538 proved in `formal/Palace`; 375 statements in `formal/Spec` judged identical by the comparator |
| the ledger | 105 rows in 16 families, 381 cited declarations, 92 law markers checked against the rows |
| the library | 38 proof modules, 37 models, 27 statement files; 25,700 lines of models and proofs, 3,841 of statements, 5,757 of attacks |
| theorems | 1,544 proved in `formal/Palace`; 380 statements in `formal/Spec` judged identical by the comparator |
| the ledger | 106 rows in 16 families, 386 cited declarations, 93 law markers checked against the rows |
| attacks | 232 Plausible attacks and 206 negative controls over 33 modules, fixed seeds |
| axioms | `propext`, `Classical.choice`, `Quot.sound`; `sorry` 0 |
| the replay | 56,231 declarations accepted by all six checkers on the run of `formal/check.sh` this commit was built with |
| the replay | 56,238 declarations accepted by all six checkers on the run of `formal/check.sh` this commit was built with |
| families | memberships · Laplacian, balance and spectral · cut and conductance · curvature · the global event clock · the shared prose plane · capability scopes · the abstraction ultrametric σ* · bridges · the retrieval curve · the query sentence algebra · the ingress · stored vectors · the growth readout · the utility field · the temporal snapshot |

## The mathematics
Expand Down Expand Up @@ -177,7 +177,7 @@ The build's own history is a dataset. Every commit's structure is snapshotted in

```sh
uv sync --extra dev
uv run pytest -q -m 'not live and not podman and not needs_vault and not needs_restic' # the deterministic tier: 3,673 tests
uv run pytest -q -m 'not live and not podman and not needs_vault and not needs_restic' # the deterministic tier: 3,721 tests
uv run mypy # strict core: 0 errors (the 67 in tests/ are pinned)
uv run python scripts/check_imports.py # the sealed core names no network module
uv run python -m ops.type_gate # every core-reaching package is type-checked
Expand Down
Loading
Loading