@kriya-ai/harness 0.2.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +121 -0
- package/SAFETY.md +181 -0
- package/THIRD_PARTY_NOTICES.md +113 -0
- package/bin/kriya.js +188 -2
- package/bundle/cordis.patch.yml +49 -0
- package/contract/SOURCE.md +3 -3
- package/contract/contract.json +504 -3
- package/contract/schemas/api.json +64 -0
- package/contract/schemas/auth_matrix.json +44 -0
- package/contract/schemas/component_states.json +33 -0
- package/contract/schemas/design_tokens.json +34 -0
- package/contract/schemas/scene_direction.json +82 -0
- package/contract/schemas/threat_model.json +44 -0
- package/package.json +2 -1
- package/plugins/changes/client.js +5 -3
- package/plugins/deploy/index.js +215 -0
- package/plugins/deploy/package.json +13 -0
- package/plugins/grounding/index.js +81 -0
- package/plugins/grounding/lookup.js +373 -0
- package/plugins/grounding/package.json +13 -0
- package/plugins/kriya-tools/index.js +2 -1
- package/plugins/loop/index.js +376 -10
- package/plugins/mcp/index.js +79 -0
- package/plugins/mcp/package.json +13 -0
- package/plugins/mirror/index.js +17 -0
- package/plugins/overview/client.js +5 -2
- package/plugins/preview/client.js +12 -6
- package/plugins/progress/client.js +7 -4
- package/plugins/repo/index.js +230 -0
- package/plugins/repo/package.json +13 -0
- package/plugins/repo/repo.js +348 -0
- package/plugins/runstrip/client.js +426 -0
- package/plugins/runstrip/index.js +301 -0
- package/plugins/runstrip/package.json +23 -0
- package/src/cartridges.js +133 -0
- package/src/contracts.js +130 -0
- package/src/critic.js +78 -0
- package/src/daemon.js +7 -1
- package/src/doctor.js +67 -0
- package/src/edit/core/effects.js +185 -0
- package/src/edit/core/ffmpeg.js +82 -5
- package/src/edit/core/layout.js +46 -1
- package/src/edit/core/ops.js +175 -3
- package/src/edit/core/plan.js +95 -9
- package/src/edit/core/project.d.ts +24 -0
- package/src/edit/core/project.js +64 -0
- package/src/edit/core/solver.js +34 -6
- package/src/edit/core/style-brief.js +211 -0
- package/src/edit/core/style-packs.js +57 -0
- package/src/edit/core/transitions.js +17 -0
- package/src/edit/core/type-kit.js +173 -0
- package/src/edit/director/ask.js +37 -3
- package/src/edit/director/assembly.js +829 -0
- package/src/edit/director/continuity.js +137 -0
- package/src/edit/director/custom-motion.js +88 -0
- package/src/edit/director/graphics.js +186 -0
- package/src/edit/director/intent.js +125 -0
- package/src/edit/director/mentions.js +52 -0
- package/src/edit/director/plan.js +89 -12
- package/src/edit/director/revise.js +172 -7
- package/src/edit/director/viewer.js +136 -0
- package/src/edit/director/watch-fix.js +119 -0
- package/src/edit/engine/captions.js +110 -5
- package/src/edit/engine/confine.js +81 -4
- package/src/edit/engine/custom.js +243 -0
- package/src/edit/engine/dna2.js +893 -0
- package/src/edit/engine/fonts.js +218 -0
- package/src/edit/engine/graphics.js +439 -0
- package/src/edit/engine/index.js +14 -5
- package/src/edit/engine/motion.js +153 -14
- package/src/edit/engine/music-bed.js +59 -1
- package/src/edit/engine/packs.js +11 -0
- package/src/edit/engine/reference2.js +26 -0
- package/src/edit/engine/sfx.js +56 -1
- package/src/edit/engine/tool.js +21 -5
- package/src/edit/gates/assembly.js +194 -0
- package/src/edit/gates/copy.js +7 -4
- package/src/edit/gates/index.js +76 -8
- package/src/edit/gates/picture.js +6 -3
- package/src/edit/gates/reference.js +115 -0
- package/src/edit/gates/tile.js +96 -0
- package/src/edit/host/client.js +4 -3
- package/src/edit/host/clips.js +33 -0
- package/src/edit/host/jobs.js +9 -3
- package/src/edit/host/layers.js +134 -0
- package/src/edit/host/main.js +17 -7
- package/src/edit/host/paths.js +34 -3
- package/src/edit/host/preview.js +108 -0
- package/src/edit/host/projects.js +494 -29
- package/src/edit/host/server.js +263 -19
- package/src/edit/host/tavi.js +77 -0
- package/src/edit/loop/make.js +44 -3
- package/src/edit/recipes/assembly.js +352 -0
- package/src/edit/recipes/graphic-clips.js +59 -0
- package/src/edit/recipes/openings.js +36 -0
- package/src/edit/recipes/reel.js +138 -17
- package/src/edit/recipes/reference-look.js +29 -0
- package/src/edit/recipes/short-from-long.js +3 -3
- package/src/edit/recipes/sound.js +71 -0
- package/src/edit/runtime/cli.js +26 -5
- package/src/edit/runtime/fetch.js +4 -3
- package/src/edit/runtime/licences.js +7 -1
- package/src/explore.js +103 -0
- package/src/failure.js +1 -1
- package/src/gate-commands.js +114 -0
- package/src/gates/api.js +127 -0
- package/src/gates/commands.js +111 -0
- package/src/gates/detectors.js +370 -0
- package/src/gates/http.js +62 -0
- package/src/gates/index.js +196 -0
- package/src/gates/page.js +264 -0
- package/src/gates/sast.js +64 -0
- package/src/gates/stack.js +110 -0
- package/src/gates/tenant.js +162 -0
- package/src/gates/three.js +407 -0
- package/src/gates/ui.js +111 -0
- package/src/launch.js +15 -3
- package/src/loop.js +199 -7
- package/src/mcp.js +126 -0
- package/src/milestones.js +188 -0
- package/src/modes.js +32 -0
- package/src/orchestra.js +43 -0
- package/src/outcomes.js +88 -0
- package/src/profiles.js +5 -0
- package/src/receipts.js +238 -0
- package/src/release.js +356 -0
- package/src/runstrip.js +122 -0
- package/src/stack.js +120 -0
- package/src/verify.js +67 -20
- package/studio/dist/fonts/fraunces.woff2 +0 -0
- package/studio/dist/fonts/geist.woff2 +0 -0
- package/studio/dist/fonts/jetbrains-mono.woff2 +0 -0
- package/studio/dist/studio.css +452 -3
- package/studio/dist/studio.js +3 -3
package/RELEASE_NOTES.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Kriya Harness release notes
|
|
2
|
+
|
|
3
|
+
## Unreleased: Harness 2.0, "the Autonomous Workforce" (beta)
|
|
4
|
+
|
|
5
|
+
Built on DeepSeek Harness. Everything below is **off by default**: with none
|
|
6
|
+
of it turned on, Kriya Harness behaves exactly as 0.2.5 does (prompts, tools,
|
|
7
|
+
plans, checks and mirrored turns byte for byte; tested). Turn a part on for
|
|
8
|
+
`kriya run` with its flag, or for any way of starting Kriya Harness with its
|
|
9
|
+
variable set to `on`. All of it but grounding needs the loop. What each part can touch is
|
|
10
|
+
in [SAFETY.md](SAFETY.md).
|
|
11
|
+
|
|
12
|
+
### How it works
|
|
13
|
+
|
|
14
|
+
The session's agent plans the work as before (at most 7 steps, at most 4
|
|
15
|
+
attempts each). Each step is built by a fresh builder and passes only on the
|
|
16
|
+
exit code of the check you confirmed. Harness 2.0 adds four things around that
|
|
17
|
+
loop, each one optional:
|
|
18
|
+
|
|
19
|
+
- **Role cartridges** (`--cartridges`, `KRIYA_CARTRIDGES`). Kriya serves one
|
|
20
|
+
short guidance text per discipline: frontend, designer, backend, full
|
|
21
|
+
stack, mobile, game, DevOps, cloud, systems, data, ML, security, QA, SDET
|
|
22
|
+
and database. Code picks one per step (the step's role, then its files,
|
|
23
|
+
then its words) and puts it first in the builder's prompt. A cartridge is
|
|
24
|
+
guidance only: no command, URL, tool, mode or limit can be in one.
|
|
25
|
+
- **Orchestra** (`--orchestra`, `KRIYA_ORCHESTRA`). Builders run on the
|
|
26
|
+
cheaper level Kriya's owner chose; the stronger level takes over after a
|
|
27
|
+
set number of failed attempts or when a builder is stuck, inside the same
|
|
28
|
+
4 attempts. A builder can ask the stronger level one focused question
|
|
29
|
+
(`kriya_advise`, at most twice per attempt); the advisor reads and changes
|
|
30
|
+
nothing.
|
|
31
|
+
- **Gates** (`--gates`, `KRIYA_GATES`). After your check passes, fixed code
|
|
32
|
+
runs the gates the step's role calls for: contracts, banned patterns,
|
|
33
|
+
secrets, flakiness, acceptance tracing, rendered pages and accessibility,
|
|
34
|
+
migrations and row-level security, API contract and bad input, tenant
|
|
35
|
+
isolation, Semgrep with your own rules, data pipelines, evals, sanitizers,
|
|
36
|
+
infrastructure and simulators. Live gates use only the app and database you
|
|
37
|
+
confirm with `kriya stack use`, on this machine. A gate that can't run says
|
|
38
|
+
**not checked**; it never passes by default. Roles name the contracts they
|
|
39
|
+
own under `.kriya/contracts/`, and a step that changes a contract it
|
|
40
|
+
doesn't own fails.
|
|
41
|
+
- **Critic** (`--critic`, `KRIYA_CRITIC`). After every gate passes, a
|
|
42
|
+
read-only reviewer on the stronger level may ask for one polish attempt;
|
|
43
|
+
the polish is kept only if every check and gate still passes.
|
|
44
|
+
- **Milestones** (`--milestones`, `KRIYA_MILESTONES`). For work too long for
|
|
45
|
+
one plan: `kriya_milestones` records up to 12 milestones, each planned
|
|
46
|
+
with `kriya_plan` once the one before it is done, done only when every
|
|
47
|
+
step of its plan passed your check. The ledger is in `~/.kriya/progress/`,
|
|
48
|
+
outside your project; a new session is told where the work stands.
|
|
49
|
+
Replacing open milestones needs your own click.
|
|
50
|
+
|
|
51
|
+
- **Grounding** (`--grounding`, `KRIYA_GROUNDING`). Three read-only tools
|
|
52
|
+
answer facts about the packages your project has installed, exact for
|
|
53
|
+
the installed version: `api_lookup` (a signature and its doc comment,
|
|
54
|
+
from TypeScript type definitions, `@types` or Python stubs),
|
|
55
|
+
`api_changes` (the package's own changelog since the version your
|
|
56
|
+
project declares) and `api_version` (declared, locked, installed).
|
|
57
|
+
Nothing is imported or run, nothing is fetched, and nothing outside the
|
|
58
|
+
project is read. It doesn't need the loop.
|
|
59
|
+
|
|
60
|
+
- **Repository tools** (`--repo-tools`, `KRIYA_REPO_TOOLS`). Typed `git` and
|
|
61
|
+
`gh` tools through your own sign-in: status, diff, log, pull requests,
|
|
62
|
+
checks, failing CI lines and issues to read (marked untrusted); a
|
|
63
|
+
`kriya/` branch, a commit of this session's files, a push and a draft pull
|
|
64
|
+
request, each only after you approve it. Never a merge, a force push or the
|
|
65
|
+
default branch; G-SECRETS checks every commit before a push. Kriya watches a
|
|
66
|
+
draft's checks and offers a fix step when one fails.
|
|
67
|
+
- **MCP** (`--mcp`, `KRIYA_MCP`). Tools from servers in Kriya's owner-reviewed
|
|
68
|
+
registry that need no sign-in, each pinned to the definition the owner
|
|
69
|
+
reviewed; anything not read-only asks you first.
|
|
70
|
+
|
|
71
|
+
- **Proof receipts** (`kriya receipt make`, `kriya receipt verify <file>`).
|
|
72
|
+
What Kriya checked by code on this computer (verdicts, attempts, roles,
|
|
73
|
+
tiers, gates, cartridge versions), copied from its own records, with a
|
|
74
|
+
hash chain that shows any later edit. A draft pull request's body starts
|
|
75
|
+
with it. Evidence, not a guarantee.
|
|
76
|
+
|
|
77
|
+
- **Releases and deploys** (`--deploy`, `KRIYA_DEPLOY`; `kriya release use`).
|
|
78
|
+
G-RELEASE checks a production build locally; preview and production deploys
|
|
79
|
+
run Vercel's CLI after your approval; production needs a passing release
|
|
80
|
+
check and preview check of the same commit; G-DEPLOYED checks the deployed
|
|
81
|
+
address (GET only, its host only, ≤ 20 requests) and offers a rollback.
|
|
82
|
+
Hosted-database migrations, production secrets, DNS and merges stay yours.
|
|
83
|
+
- **`kriya doctor --gates`** and **`kriya report`**: which gates work here, and a
|
|
84
|
+
redacted bundle for bug reports.
|
|
85
|
+
|
|
86
|
+
### New commands
|
|
87
|
+
|
|
88
|
+
- `kriya stack use --app <url> --db <url>`, `kriya stack`, `kriya stack
|
|
89
|
+
forget`: the local app and database the gates may use. Loopback only; a
|
|
90
|
+
project whose own environment names a hosted database makes every stack
|
|
91
|
+
gate refuse.
|
|
92
|
+
- `kriya gates use <data|eval|san|iac|sim|sim-headless> "<command>"`,
|
|
93
|
+
`kriya gates`, `kriya gates forget <gate>`: the commands the command gates
|
|
94
|
+
run, confirmed by you; `kriya eval baseline confirm` records G-EVAL's
|
|
95
|
+
baseline.
|
|
96
|
+
- `kriya share on|off|status`: off by default. On, Kriya gets counts of
|
|
97
|
+
verified, blocked and not-checked steps per cartridge version, with your
|
|
98
|
+
mirrored turns, so Kriya's owner can tell whether a new cartridge helps.
|
|
99
|
+
Counts only.
|
|
100
|
+
|
|
101
|
+
### How cartridges improve
|
|
102
|
+
|
|
103
|
+
Kriya's owner can list sources (release notes, standards, advisories). Kriya
|
|
104
|
+
reads them, keeps a finding only when its quote is found word for word twice
|
|
105
|
+
an hour apart, and may draft a cartridge change. Code lints every draft (no
|
|
106
|
+
URL, shell, tool name, credential word or protected path; small changes
|
|
107
|
+
only). The owner benchmarks it **on their own machine**, against hidden
|
|
108
|
+
graders and safety probes, and approves it by hand; `gate()` decides the
|
|
109
|
+
verdict from paired runs, never a model. Approved versions reach devices only
|
|
110
|
+
if the owner turns the overlay on, first to a canary share of devices, with
|
|
111
|
+
one-click rollback. Nothing changes on your device by itself.
|
|
112
|
+
|
|
113
|
+
### Compatibility
|
|
114
|
+
|
|
115
|
+
- Server first: a Kriya without Harness 2.0 simply doesn't serve cartridges
|
|
116
|
+
or the orchestra levels, and the client doesn't send outcome counts to a
|
|
117
|
+
Kriya that doesn't advertise them.
|
|
118
|
+
- `contract/contract.json` is Kriya's exported contract; its sha256 is in
|
|
119
|
+
`contract/SOURCE.md`.
|
|
120
|
+
- DeepSeek Harness is used through its documented seams only, never edited
|
|
121
|
+
(`npm run check:seams`).
|
package/SAFETY.md
CHANGED
|
@@ -30,6 +30,176 @@ notice the first time it runs.
|
|
|
30
30
|
`--no-budget` turns it off.
|
|
31
31
|
- Neither changes a mode, a sandbox or an approval.
|
|
32
32
|
|
|
33
|
+
## Harness 2.0 workforce: everything off by default
|
|
34
|
+
|
|
35
|
+
None of this runs unless you turn it on: a flag on `kriya run`, or the
|
|
36
|
+
variable beside it set to `on` for any way of starting Kriya Harness
|
|
37
|
+
(the Web UI takes the variables, not the flags). Left off, behaviour is
|
|
38
|
+
today's, byte for byte. `--cartridges`, `--orchestra`, `--gates`, `--critic` and `--milestones` need the loop.
|
|
39
|
+
|
|
40
|
+
| Flag | Variable | What it does |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| `--cartridges` | `KRIYA_CARTRIDGES` | Each plan step's builder gets one role's guidance from Kriya (frontend, backend, security…), chosen by code |
|
|
43
|
+
| `--orchestra` | `KRIYA_ORCHESTRA` | Builders run on a cheaper level; the stronger level takes over when a step is stuck. Only the levels your plan allows |
|
|
44
|
+
| `--gates` | `KRIYA_GATES` | The deterministic gates below run after your own check passes |
|
|
45
|
+
| `--critic` | `KRIYA_CRITIC` | After a pass, a read-only reviewer may earn one polish attempt, kept only if every check still passes |
|
|
46
|
+
| `--milestones` | `KRIYA_MILESTONES` | Long work as at most 12 plans in a ledger, each done only when every step passed your check |
|
|
47
|
+
| `--repo-tools` | `KRIYA_REPO_TOOLS` | Typed git and GitHub tools through **your own** `git` and `gh` sign-in (below) |
|
|
48
|
+
| `--mcp` | `KRIYA_MCP` | Tools from MCP servers in Kriya's owner-reviewed registry that need no sign-in (below) |
|
|
49
|
+
| `--deploy` | `KRIYA_DEPLOY` | The release check, and preview and production deploys through **your own** provider CLI, each approved by you (below) |
|
|
50
|
+
| `--grounding` | `KRIYA_GROUNDING` | `api_lookup`, `api_changes`, `api_version`: facts about your installed packages read from their own type definitions, stubs, changelogs and lockfiles. Nothing is imported or run, nothing is fetched, and nothing outside the project folder is read |
|
|
51
|
+
|
|
52
|
+
Plans stay at most 7 steps and 4 attempts per step with every one of them on.
|
|
53
|
+
|
|
54
|
+
### The gates (`--gates`)
|
|
55
|
+
|
|
56
|
+
A gate is fixed code in this package. Its settings are data you or the
|
|
57
|
+
plan's contracts give it; nothing a model writes can be a gate's command,
|
|
58
|
+
pattern or pass condition. A gate passes, fails (the builder gets the
|
|
59
|
+
failure, like a failing check), or says **not checked** with a reason
|
|
60
|
+
(a tool or stack missing, Read only mode): not checked is never a pass.
|
|
61
|
+
Gates run only after the check you confirmed passed. In Read only mode no
|
|
62
|
+
gate that starts or writes anything runs. Tools are used only if your
|
|
63
|
+
project or `PATH` already has them; Kriya installs nothing. Commands a gate
|
|
64
|
+
runs go through the same runner and time limit as your check (`psql` and
|
|
65
|
+
`semgrep` stop after 5 minutes), and each request to your app after
|
|
66
|
+
10 seconds, with a budget of requests per gate.
|
|
67
|
+
|
|
68
|
+
| Gate | What it checks | Runs what |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| G-CONTRACT | Contracts under `.kriya/contracts/` parse, match their schema and weren't changed by a step that doesn't own them | Nothing but reading files |
|
|
71
|
+
| G-DETECT | Fixed banned patterns in the files the step changed (raw colours, SQL built from strings, empty catches…) | Nothing |
|
|
72
|
+
| G-SECRETS | No secret in the lines the step added (key shapes, private keys, high-entropy values). Findings name file and line, **never the value** | `gitleaks` if installed |
|
|
73
|
+
| G-FLAKE | Your check gives the same result three times in a row | Your confirmed check, 3× |
|
|
74
|
+
| G-TRACE | Every acceptance item (AC-1, AC-2…) in the step's done-when has a passing test of that name | Reads your check's output |
|
|
75
|
+
| G-UI | Each route and state renders at 360, 390 and 1440 px, light and dark, with no console error, failed request, overflow or layout shift | A new page in the agent browser's Chrome, on your **local** app only |
|
|
76
|
+
| G-A11Y | Accessible names, headings, focus, contrast; axe-core if your project has it | The G-UI pages |
|
|
77
|
+
| G-STACK | Migrations apply (up, down, up) and tenant tables have RLS | `psql` against your **local** database |
|
|
78
|
+
| G-API | Responses match the API contract; bad input gives 4xx, never 5xx; idempotent operations hold | Requests to your **local** app |
|
|
79
|
+
| G-TENANT | One test identity can't read or change another's data, with positive controls | Requests to your **local** app, as two test identities from `.kriya/gates/tenants.json` |
|
|
80
|
+
| G-SAST | Dangerous code patterns | `semgrep` with **your project's own rules file** (as committed), metrics off; never `--config auto` or a registry, which would fetch rules |
|
|
81
|
+
| G-DATA | A pipeline gives the same output twice on your fixture | The pipeline command you confirmed |
|
|
82
|
+
| G-EVAL | A model change doesn't fall below its recorded baseline | The eval command you confirmed |
|
|
83
|
+
| G-SAN | Native builds are warning-free and sanitizer-clean | Your toolchain |
|
|
84
|
+
| G-IAC | Infrastructure validates and passes your policy tool | Your installed IaC and policy tools, offline |
|
|
85
|
+
| G-SIM | A mobile build launches in the simulator | Your installed toolchain |
|
|
86
|
+
|
|
87
|
+
Settings a builder could edit (Semgrep rules, fixtures, eval files) are read
|
|
88
|
+
as they are at the plan's starting commit, so a step can't weaken its own
|
|
89
|
+
gate. Screenshots and reports go to `~/.kriya/evidence/` (outside your
|
|
90
|
+
project, so the agent can't edit what a gate saw), and their sha256 is
|
|
91
|
+
recorded.
|
|
92
|
+
|
|
93
|
+
### Repository tools (`--repo-tools`)
|
|
94
|
+
|
|
95
|
+
They use the `git` and `gh` you're already signed in to. Kriya never reads a
|
|
96
|
+
credential: no `gh auth token`, no git credential store, and remotes are shown
|
|
97
|
+
as host and path only. If `gh` is signed out you're told to run `gh auth login`
|
|
98
|
+
yourself; nothing ever asks you for a password.
|
|
99
|
+
|
|
100
|
+
- **Reads** (status, diff, log, a pull request, its checks, failing CI lines,
|
|
101
|
+
an issue) run freely. Text from GitHub is other people's: it's marked
|
|
102
|
+
untrusted and known secret shapes are redacted before the agent sees it.
|
|
103
|
+
- **Branch, commit, push and draft pull request** each ask you first, with the
|
|
104
|
+
exact branch, files or commits. Auto, Read only and Full access modes can't
|
|
105
|
+
ask, so they refuse.
|
|
106
|
+
- A branch is always `kriya/<name>`; it isn't made over uncommitted changes.
|
|
107
|
+
- A commit holds only files this session changed, never an `.env` file (only
|
|
108
|
+
`.env.example`), with a Conventional Commit subject of at most 72 characters.
|
|
109
|
+
- A push is only of a `kriya/` branch, never the default branch, never forced.
|
|
110
|
+
G-SECRETS checks every outgoing commit first and stops the push if it finds
|
|
111
|
+
what looks like a secret (it names file and line, never the value).
|
|
112
|
+
- Pull requests are drafts. There is no tool to merge, close, delete a branch,
|
|
113
|
+
force-push, comment, release or tag: you do those.
|
|
114
|
+
- After a draft pull request Kriya polls its checks (code, no model) every
|
|
115
|
+
30 seconds for up to 20 minutes, and tells the agent which failed so it can
|
|
116
|
+
ask you about a fix step.
|
|
117
|
+
- With repository tools on, "the code before this session" is the commit the
|
|
118
|
+
plan started from, so a commit made during the session can't turn weakened
|
|
119
|
+
tests into the new originals.
|
|
120
|
+
|
|
121
|
+
### Releases and deploys (`--deploy`, `kriya release use`)
|
|
122
|
+
|
|
123
|
+
- `kriya release use --build "<cmd>" --app http://localhost:<port>` confirms,
|
|
124
|
+
once per project, how a production build is made and which production
|
|
125
|
+
server on this computer is checked. You start that server; Kriya doesn't.
|
|
126
|
+
- `release_check` (G-RELEASE) runs on a committed tree: the build, G-UI and
|
|
127
|
+
G-A11Y against your production server, environment variables named in
|
|
128
|
+
`.env.example` (names only), the bundle budget, the lockfile and licences,
|
|
129
|
+
destructive or locking migrations, and G-SECRETS. Ready only if every line
|
|
130
|
+
passes; a line that can't run withholds it.
|
|
131
|
+
- Deploys run your provider's own CLI, signed in by you (Kriya never reads its
|
|
132
|
+
credentials), each after you approve the provider, target, commit and exact
|
|
133
|
+
command. Auto, Read only and Full access refuse. Only Vercel is supported:
|
|
134
|
+
its documentation confirms how the deployment address is printed; the
|
|
135
|
+
others weren't confirmed, so they aren't offered.
|
|
136
|
+
- Production needs a passing release check **and** a passing preview check
|
|
137
|
+
of the same commit.
|
|
138
|
+
- **G-DEPLOYED** is the one gate that leaves this computer: GET only, only to
|
|
139
|
+
the host the deploy printed (on the provider's domain or the one you
|
|
140
|
+
confirmed), no cookies, credentials or body, redirects only within that
|
|
141
|
+
host, at most 20 requests. A failed production check offers a rollback,
|
|
142
|
+
which you approve.
|
|
143
|
+
- Kriya **never runs**: migrations against a hosted database, production
|
|
144
|
+
environment or secret changes, DNS or domain changes, merges or force
|
|
145
|
+
pushes, deleting deployments. With `--deploy` on, the agent's shell refuses
|
|
146
|
+
them and the command is written down for you (the receipt's "For you to
|
|
147
|
+
run").
|
|
148
|
+
- `kriya doctor --gates` shows which gates work on this computer and runs the
|
|
149
|
+
self-tests of those that need nothing installed. `kriya report` writes a
|
|
150
|
+
redacted bundle (versions, that matrix, this project's receipts) for you to
|
|
151
|
+
attach to a bug report; nothing is sent.
|
|
152
|
+
|
|
153
|
+
### Proof receipts (`kriya receipt`)
|
|
154
|
+
|
|
155
|
+
`kriya receipt make` (and a draft pull request, with repository tools on)
|
|
156
|
+
writes `~/.kriya/receipts/<project>/<session>.json` and `.md`: each step's
|
|
157
|
+
verdict, attempts, role, model tiers and gate results, the cartridge versions
|
|
158
|
+
and the commit, copied from Kriya's own records. It holds no file contents,
|
|
159
|
+
prompts, commands, check output, paths or secrets. A hash chain over the check
|
|
160
|
+
runs makes a later edit visible: `kriya receipt verify <file>` names the first
|
|
161
|
+
run that changed. It says "checked on this computer": evidence of what Kriya
|
|
162
|
+
checked, not a guarantee.
|
|
163
|
+
|
|
164
|
+
### MCP servers (`--mcp`)
|
|
165
|
+
|
|
166
|
+
Only servers in Kriya's owner-reviewed registry, only those you enabled in
|
|
167
|
+
Kriya, and only those that need no sign-in (DeepSeek Harness's MCP client
|
|
168
|
+
can't hold a sign-in, and a token kept on Kriya's server never reaches your
|
|
169
|
+
device). Each tool is used only if its full definition still matches what the
|
|
170
|
+
owner pinned; a changed tool isn't offered. A tool that isn't read-only asks
|
|
171
|
+
you before every call. No credential is sent to a server, the address must be
|
|
172
|
+
https, and what a server returns is marked untrusted.
|
|
173
|
+
|
|
174
|
+
### The local stack (`kriya stack use`)
|
|
175
|
+
|
|
176
|
+
Gates that need a running app or database use only what you confirm, once
|
|
177
|
+
per project:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
kriya stack use --app http://localhost:3000 --db postgresql://postgres:postgres@127.0.0.1:54322/postgres
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
- Kept in `~/.kriya/stack.json`. Kriya never starts Docker or a database
|
|
184
|
+
itself; you start your stack (for Supabase, `supabase start`).
|
|
185
|
+
- Both addresses must name this machine: `localhost`, a `.localhost` name,
|
|
186
|
+
`127.x.x.x` or `::1`, with no user name or password in them. Gates never
|
|
187
|
+
follow a redirect, so an app can't send them elsewhere.
|
|
188
|
+
- If your project's own environment names a database (`DATABASE_URL` and
|
|
189
|
+
similar) that **isn't** local, every stack gate refuses with "this
|
|
190
|
+
project's database URL isn't local": a gate never runs migrations or
|
|
191
|
+
probes against a hosted database.
|
|
192
|
+
- `kriya stack` shows it; `kriya stack forget` removes it.
|
|
193
|
+
|
|
194
|
+
### Role cartridges and their updates
|
|
195
|
+
|
|
196
|
+
Cartridges are guidance text only, served by Kriya: no command, URL, tool,
|
|
197
|
+
mode, approval or limit can be in one. Kriya's owner may approve an updated
|
|
198
|
+
cartridge after an automated lint and a benchmark run on their own machine;
|
|
199
|
+
with Kriya's overlay off (the default) nothing approved reaches you until it
|
|
200
|
+
ships in a release. `KRIYA_BENCH` and `KRIYA_CARTRIDGE_FILE` are for that
|
|
201
|
+
benchmark only: without `KRIYA_BENCH=on` the file is never read.
|
|
202
|
+
|
|
33
203
|
## What it can do on this machine
|
|
34
204
|
|
|
35
205
|
The agent reads and changes files and runs commands under the mode you
|
|
@@ -91,6 +261,12 @@ go to the model with every request.
|
|
|
91
261
|
- Turns wait in `~/.kriya/mirror-queue.json` (readable only by you) while
|
|
92
262
|
Kriya is unreachable. Kriya's cloud agents treat mirrored text as
|
|
93
263
|
outside content, not as your instructions.
|
|
264
|
+
- **Step outcome counts**, only after you run `kriya share on` (off by
|
|
265
|
+
default; `kriya share off` stops it and drops counts not yet sent), and
|
|
266
|
+
only with the session mirror on: per role cartridge version, how many
|
|
267
|
+
steps were verified, blocked or not checked. Numbers only: no text,
|
|
268
|
+
names, files or paths. They wait in `~/.kriya/outcomes-pending.json` and
|
|
269
|
+
go with mirrored turns, only to a Kriya that says it takes them.
|
|
94
270
|
- **Memory.** Notes the agent saves with `kriya_memory_save` stay
|
|
95
271
|
**unconfirmed** until you confirm them in Kriya (Inbox → Memories to
|
|
96
272
|
review), and Kriya refuses values such as card numbers.
|
|
@@ -141,6 +317,11 @@ rule is listed on the Studio's home page, and you can remove it there.
|
|
|
141
317
|
until you sign out (`kriya logout`) or revoke the device in Kriya under
|
|
142
318
|
Account → Devices.
|
|
143
319
|
- `~/.kriya/profiles/`: DeepSeek Harness profiles and their session history.
|
|
320
|
+
- With Harness 2.0 features on: `~/.kriya/stack.json` (your local stack),
|
|
321
|
+
`~/.kriya/progress/<project>/milestones.json` (the milestone ledger),
|
|
322
|
+
`~/.kriya/evidence/` (what the gates saw), `~/.kriya/share.json` and
|
|
323
|
+
`~/.kriya/outcomes-pending.json` (sharing and its counts). All outside
|
|
324
|
+
your projects.
|
|
144
325
|
|
|
145
326
|
The token is passed to DeepSeek Harness as `KRIYA_DEVICE_TOKEN`. DeepSeek
|
|
146
327
|
Harness removes variables with `TOKEN` in their name from every command the
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -7909,3 +7909,116 @@ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
7909
7909
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
7910
7910
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
7911
7911
|
```
|
|
7912
|
+
|
|
7913
|
+
## Fonts in the Media Runtime's font pack (pack-fonts)
|
|
7914
|
+
|
|
7915
|
+
Downloaded unmodified from github.com/google/fonts at the commit the signed runtime manifest pins. Each is licensed under the SIL Open Font License, Version 1.1, whose text follows the list.
|
|
7916
|
+
|
|
7917
|
+
- Inter (`font-inter`, OFL-1.1): Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
|
|
7918
|
+
- Oswald (`font-oswald`, OFL-1.1): Copyright 2016 The Oswald Project Authors (https://github.com/googlefonts/OswaldFont)
|
|
7919
|
+
- Montserrat (`font-montserrat`, OFL-1.1): Copyright 2024 The Montserrat.Git Project Authors (https://github.com/JulietaUla/Montserrat.git)
|
|
7920
|
+
- Lora (`font-lora`, OFL-1.1): Copyright 2011 The Lora Project Authors (https://github.com/cyrealtype/Lora-Cyrillic), with Reserved Font Name "Lora".
|
|
7921
|
+
- JetBrains Mono (`font-jetbrains-mono`, OFL-1.1): Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
7922
|
+
- Caveat (`font-caveat`, OFL-1.1): Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat)
|
|
7923
|
+
- Noto Sans Devanagari (`font-noto-sans-devanagari`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/devanagari)
|
|
7924
|
+
- Noto Sans Telugu (`font-noto-sans-telugu`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/telugu)
|
|
7925
|
+
- Noto Sans Tamil (`font-noto-sans-tamil`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/tamil)
|
|
7926
|
+
- Noto Sans Kannada (`font-noto-sans-kannada`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/kannada)
|
|
7927
|
+
- Noto Sans Malayalam (`font-noto-sans-malayalam`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/malayalam)
|
|
7928
|
+
- Noto Sans Bengali (`font-noto-sans-bengali`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/bengali)
|
|
7929
|
+
- Noto Sans Gujarati (`font-noto-sans-gujarati`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/gujarati)
|
|
7930
|
+
- Noto Sans Gurmukhi (`font-noto-sans-gurmukhi`, OFL-1.1): Copyright 2022 The Noto Project Authors (https://github.com/notofonts/gurmukhi)
|
|
7931
|
+
|
|
7932
|
+
```text
|
|
7933
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
7934
|
+
This license is copied below, and is also available with a FAQ at:
|
|
7935
|
+
https://scripts.sil.org/OFL
|
|
7936
|
+
|
|
7937
|
+
|
|
7938
|
+
-----------------------------------------------------------
|
|
7939
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
7940
|
+
-----------------------------------------------------------
|
|
7941
|
+
|
|
7942
|
+
PREAMBLE
|
|
7943
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
7944
|
+
development of collaborative font projects, to support the font creation
|
|
7945
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
7946
|
+
open framework in which fonts may be shared and improved in partnership
|
|
7947
|
+
with others.
|
|
7948
|
+
|
|
7949
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
7950
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
7951
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
7952
|
+
redistributed and/or sold with any software provided that any reserved
|
|
7953
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
7954
|
+
however, cannot be released under any other type of license. The
|
|
7955
|
+
requirement for fonts to remain under this license does not apply
|
|
7956
|
+
to any document created using the fonts or their derivatives.
|
|
7957
|
+
|
|
7958
|
+
DEFINITIONS
|
|
7959
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
7960
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
7961
|
+
include source files, build scripts and documentation.
|
|
7962
|
+
|
|
7963
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
7964
|
+
copyright statement(s).
|
|
7965
|
+
|
|
7966
|
+
"Original Version" refers to the collection of Font Software components as
|
|
7967
|
+
distributed by the Copyright Holder(s).
|
|
7968
|
+
|
|
7969
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
7970
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
7971
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
7972
|
+
new environment.
|
|
7973
|
+
|
|
7974
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
7975
|
+
writer or other person who contributed to the Font Software.
|
|
7976
|
+
|
|
7977
|
+
PERMISSION & CONDITIONS
|
|
7978
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
7979
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
7980
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
7981
|
+
Software, subject to the following conditions:
|
|
7982
|
+
|
|
7983
|
+
1) Neither the Font Software nor any of its individual components,
|
|
7984
|
+
in Original or Modified Versions, may be sold by itself.
|
|
7985
|
+
|
|
7986
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
7987
|
+
redistributed and/or sold with any software, provided that each copy
|
|
7988
|
+
contains the above copyright notice and this license. These can be
|
|
7989
|
+
included either as stand-alone text files, human-readable headers or
|
|
7990
|
+
in the appropriate machine-readable metadata fields within text or
|
|
7991
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
7992
|
+
|
|
7993
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
7994
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
7995
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
7996
|
+
presented to the users.
|
|
7997
|
+
|
|
7998
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
7999
|
+
Software shall not be used to promote, endorse or advertise any
|
|
8000
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
8001
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
8002
|
+
permission.
|
|
8003
|
+
|
|
8004
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
8005
|
+
must be distributed entirely under this license, and must not be
|
|
8006
|
+
distributed under any other license. The requirement for fonts to
|
|
8007
|
+
remain under this license does not apply to any document created
|
|
8008
|
+
using the Font Software.
|
|
8009
|
+
|
|
8010
|
+
TERMINATION
|
|
8011
|
+
This license becomes null and void if any of the above conditions are
|
|
8012
|
+
not met.
|
|
8013
|
+
|
|
8014
|
+
DISCLAIMER
|
|
8015
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
8016
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
8017
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
8018
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
8019
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
8020
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
8021
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
8022
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
8023
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
8024
|
+
```
|