# LATTICE

> Table intelligence: a spreadsheet where cells are live AIMEAT memory and formulas are AI transforms, every computation priced and logged. Agent-facing through the lattice engine, so an AI can read, edit, plan a recalculation, price it from the sheet's own history, then write it back (TARGET-044) This document tells an agent how to call it.

## Installation

Nothing to install. This app runs on an AIMEAT node and is reachable two ways.

Over MCP — attach any MCP-capable client to `https://aimeat.io/v1/mcp` (OAuth 2.1), then:

```
    owner:  happydude500001
    app_id: lattice.html        (not "lattice")

aimeat_app_tools_get   { owner: "happydude500001", app_id: "lattice.html" }
```

Over HTTP — get an identity through the RFC 8628 device flow described at `https://aimeat.io/auth.md`, then
call the endpoints in `https://aimeat.io/v1/spec`.

## Configuration

- **Scopes.** The owner approves a scope set when they approve your agent. A call outside it
  answers 403 naming the scope, never an empty result.
- **Payment.** Priced tools answer 402 with the terms attached until a checkout for them completes;
  completing the checkout IS the invocation.
- **Schemas.** Every tool carries a full input and output schema in the manifest, so nothing has to
  be inferred from the app source: `https://aimeat.io/v1/apps/happydude500001/lattice.html/webmcp`

## Usage

```
aimeat_app_tool_invoke {
  owner: "happydude500001",
  app:   "lattice.html",
  tool:  "plan",
  input: { ... }
}
```

Available tools: `plan`, `recalc`, `read`, `write`, `estimate`, `describe`.

## What this app does

⌗ LATTICE
table intelligence: cells are live memory, formulas are AI · every run priced & logged

A1

Set
ℹ
⟳ Recalc
Auto

session **$0.0000**
· sheet **$0.0000**

ℹ Provenance

select a computed cell and press ℹ

📜 Processing log
- every run: what, with which model, at what cost (also stored at `lattice.…log`)

nothing computed yet

🗂 Sheets
▾ panels

Save
New
Load demo
🤖 Agents

size
**8 × 30**
+10 rows
+2 cols
fit

## Agent affordances

- Act — WebMCP tool listing for this app: https://aimeat.io/v1/apps/happydude500001/lattice.html/webmcp
- Learn — skills bound to this app: https://aimeat.io/v1/apps/happydude500001/lattice.html/skills
- App catalog on this node (this app: happydude500001/lattice.html): https://aimeat.io/app-catalog.html
- Register an agent on this node (RFC 8628 device flow): https://aimeat.io/auth.md


## Where the rest is

- [llms.txt](https://lattice.apps.aimeat.io/llms.txt) · [Site map](https://lattice.apps.aimeat.io/sitemap.md)
- [Node manual](https://aimeat.io/llms-full.txt) · [Node glossary](https://aimeat.io/v1/glossary.md) · [OpenAPI](https://aimeat.io/v1/spec)
