@runeditrun/rer 0.2.85 → 0.2.87
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/README.md +138 -29
- package/cli/README.md +61 -1
- package/cli/agent-bindings.mjs +25 -0
- package/cli/agent-door.mjs +145 -0
- package/cli/agent-fixtures.mjs +16 -0
- package/cli/agent-journey-fixtures.mjs +17 -0
- package/cli/agent-mail.mjs +54 -0
- package/cli/agent-network.mjs +64 -0
- package/cli/agent-reviewers.mjs +110 -0
- package/cli/agent-rpc.mjs +23 -0
- package/cli/agent-secrets.mjs +23 -0
- package/cli/agent-sponsors.mjs +43 -0
- package/cli/agent-surface.mjs +34 -0
- package/cli/agent-verifier.mjs +31 -0
- package/cli/agent-webhooks.mjs +19 -0
- package/cli/authoring.mjs +2 -1
- package/cli/business/archive-task.mjs +32 -0
- package/cli/business/carry.mjs +3 -1
- package/cli/business/catchup-task.mjs +42 -0
- package/cli/business/choices.mjs +97 -0
- package/cli/business/command.mjs +23 -5
- package/cli/business/connect.mjs +19 -7
- package/cli/business/detector.mjs +4 -1
- package/cli/business/device.mjs +13 -0
- package/cli/business/export-inputs.mjs +69 -0
- package/cli/business/export-task.mjs +17 -0
- package/cli/business/invocation.mjs +8 -1
- package/cli/business/keychain.mjs +8 -1
- package/cli/business/lease.mjs +11 -1
- package/cli/business/local-commands.mjs +79 -31
- package/cli/business/outbound.mjs +9 -4
- package/cli/business/parsers-config.mjs +8 -7
- package/cli/business/parsers-syntax.mjs +7 -3
- package/cli/business/permissions.mjs +2 -0
- package/cli/business/questions.mjs +89 -9
- package/cli/business/setup-command.mjs +49 -0
- package/cli/business/setup-company.json +15 -0
- package/cli/business/setup-demo.mjs +95 -0
- package/cli/business/state.mjs +44 -10
- package/cli/business/supervisor.mjs +94 -35
- package/cli/business/vendor-door.mjs +230 -0
- package/cli/business/vendors/README.md +29 -3
- package/cli/business/vendors/common.mjs +8 -6
- package/cli/business/vendors/index.mjs +22 -11
- package/cli/business/vendors/sorry.mjs +106 -0
- package/cli/contract.mjs +2 -2
- package/cli/demo-deploy-error.mjs +14 -0
- package/cli/demo-native.mjs +4 -1
- package/cli/deploy-config.mjs +1 -1
- package/cli/deploy-owner-input.mjs +3 -1
- package/cli/deploy-variables.mjs +89 -0
- package/cli/door-clauses.mjs +157 -0
- package/cli/export.mjs +17 -4
- package/cli/hosted-output.mjs +31 -8
- package/cli/inspect.mjs +4 -0
- package/cli/jsonc.mjs +8 -4
- package/cli/lifecycle.mjs +3 -1
- package/cli/main.mjs +1 -0
- package/cli/managed-data-schema.mjs +14 -1
- package/cli/managed-data.mjs +8 -4
- package/cli/portability-empty.mjs +6 -0
- package/cli/portability-migrations.mjs +26 -4
- package/cli/portability-worker.mjs +2 -1
- package/cli/portability.mjs +1 -0
- package/cli/production-auth.mjs +2 -2
- package/cli/production-mail.mjs +19 -3
- package/cli/server-registry.mjs +2 -0
- package/edition-authoring/archive-source.mjs +65 -0
- package/edition-authoring/base-copies.mjs +108 -21
- package/edition-authoring/cli.mjs +1 -1
- package/edition-authoring/copy-namespaces.mjs +28 -0
- package/edition-authoring/edition-migrations.mjs +7 -3
- package/edition-authoring/files.mjs +2 -1
- package/edition-authoring/module-closure.mjs +58 -27
- package/edition-authoring/module-edges.mjs +13 -2
- package/edition-authoring/workflow-copies.mjs +1 -1
- package/edition-authoring/workflow-scripts.mjs +12 -3
- package/foundation/runtime/contract-docs.mjs +220 -32
- package/foundation/runtime/contract-prose-patterns.mjs +14 -0
- package/foundation/runtime/contract-prose.mjs +88 -0
- package/global/CHANGELOG.md +151 -0
- package/global/README.md +138 -29
- package/global/door/command.mjs +3 -1
- package/global/main.mjs +1 -1
- package/modules/agent-door/CLAUSES.md +215 -0
- package/modules/agent-door/conformance/audit-pages.mjs +11 -0
- package/modules/agent-door/conformance/audit-rows.mjs +20 -0
- package/modules/agent-door/conformance/audit.mjs +63 -0
- package/modules/agent-door/conformance/authority.d.mts +2 -0
- package/modules/agent-door/conformance/authority.mjs +17 -0
- package/modules/agent-door/conformance/crypto.mjs +36 -0
- package/modules/agent-door/conformance/discovery.mjs +61 -0
- package/modules/agent-door/conformance/fixtures.mjs +41 -0
- package/modules/agent-door/conformance/index.mjs +41 -0
- package/modules/agent-door/conformance/injection.mjs +24 -0
- package/modules/agent-door/conformance/invocation.mjs +33 -0
- package/modules/agent-door/conformance/journey.mjs +117 -0
- package/modules/agent-door/conformance/narrowing.d.mts +2 -0
- package/modules/agent-door/conformance/narrowing.mjs +29 -0
- package/modules/agent-door/conformance/negative.mjs +48 -0
- package/modules/agent-door/conformance/network-modules.mjs +86 -0
- package/modules/agent-door/conformance/network-runtime.mjs +46 -0
- package/modules/agent-door/conformance/policy-phases.mjs +83 -0
- package/modules/agent-door/conformance/protocol.mjs +153 -0
- package/modules/agent-door/conformance/replay.mjs +39 -0
- package/modules/agent-door/conformance/schema.mjs +71 -0
- package/modules/agent-door/conformance/security.mjs +34 -0
- package/modules/agent-door/conformance/sponsors.mjs +68 -0
- package/modules/agent-door/conformance/step-hooks.mjs +4 -0
- package/modules/agent-door/conformance/surface.mjs +92 -0
- package/modules/agent-door/conformance/target.mjs +19 -0
- package/modules/agent-door/conformance/tool-name.d.mts +1 -0
- package/modules/agent-door/conformance/tool-name.mjs +7 -0
- package/modules/agent-door/conformance/webhooks.mjs +31 -0
- package/modules/container/image-variables.mjs +8 -2
- package/modules/delivery-producer/mail.mjs +20 -0
- package/modules/demo-host/README.md +6 -0
- package/modules/demo-host/ownership.mjs +39 -0
- package/modules/demo-host/plan.mjs +2 -1
- package/modules/demo-host/remove.mjs +6 -1
- package/modules/import-kit/schema/importer-verification-receipt.schema.json +171 -0
- package/modules/import-kit/schema/importers.schema.json +107 -0
- package/modules/import-kit/src/door/ADOPTING.md +20 -0
- package/modules/import-kit/src/door/README.md +2 -1
- package/modules/import-kit/src/door/admission.ts +5 -3
- package/modules/import-kit/src/door/archive.ts +5 -2
- package/modules/import-kit/src/door/authority.ts +1 -0
- package/modules/import-kit/src/door/grants.ts +1 -1
- package/modules/import-kit/src/door/handler.ts +14 -8
- package/modules/import-kit/src/door/index.ts +1 -1
- package/modules/import-kit/src/door/jobs.ts +40 -0
- package/modules/import-kit/src/door/operator.ts +3 -3
- package/modules/import-kit/src/door/planning.ts +10 -6
- package/modules/import-kit/src/door/protocol.ts +2 -2
- package/modules/import-kit/src/door/raw.ts +25 -0
- package/modules/import-kit/src/door/refusals.ts +1 -0
- package/modules/import-kit/src/door/types.ts +26 -6
- package/modules/import-kit/src/receipt/encoding.ts +37 -0
- package/modules/import-kit/src/receipt/index.ts +69 -0
- package/modules/import-kit/src/receipt/policy.ts +24 -0
- package/modules/import-kit/src/receipt/types.ts +64 -0
- package/modules/import-kit/src/receipt/uri.ts +45 -0
- package/modules/import-kit/src/receipt/validation.ts +87 -0
- package/modules/import-kit/src/status/encoding.ts +13 -0
- package/modules/import-kit/src/status/evidence.ts +218 -0
- package/modules/import-kit/src/status/index.ts +56 -0
- package/modules/import-kit/src/status/schema.ts +208 -0
- package/modules/import-kit/src/status/types.ts +86 -0
- package/modules/operator-auth/accounts/delegated.mjs +48 -0
- package/modules/operator-auth/index.d.mts +7 -0
- package/modules/operator-auth/service.mjs +2 -0
- package/modules/portability/README.md +37 -13
- package/modules/portability/bridge.mjs +22 -2
- package/modules/portability/catalogue.mjs +12 -2
- package/modules/portability/copies.mjs +8 -1
- package/modules/portability/derived.mjs +33 -0
- package/modules/portability/http-errors.mjs +1 -1
- package/modules/portability/import.mjs +14 -7
- package/package.json +4 -2
- package/scripts/publish-check/copy_identities.py +3 -1
- package/scripts/publish-check/github_refs.py +32 -13
- package/cli/business/opt-ins.mjs +0 -37
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Literal phrases from the 28 October 2026 cleanup judgments. These are
|
|
2
|
+
// review prompts, never evidence that a seed-specific obligation can be cut.
|
|
3
|
+
// Full report paths and the limits of each rule are in CONTRACT-DOCS.md.
|
|
4
|
+
export const prosePatterns = [
|
|
5
|
+
['b', 'Assignment never grants access', 'Orbit d4a8bf1 F5 (line 70)'],
|
|
6
|
+
['b', 'Permission changes apply on the next request', 'Orbit d4a8bf1 F5 (line 70)'],
|
|
7
|
+
['b', 'untrusted source text', 'Strap 819f84b F5 (line 65)'],
|
|
8
|
+
['b', 'authorized job handles', 'Strap 819f84b F5 (line 65)'],
|
|
9
|
+
['d', 'This target-contract round leaves the approved homepage and app interface untouched', 'Orbit d4a8bf1 F8 (line 76)'],
|
|
10
|
+
['d', 'This deliberately replaces the former dedicated hosted-record walkthrough', 'Orbit d4a8bf1 F8 (line 76)'],
|
|
11
|
+
['d', 'Full verification includes the delegation D1, archive and native-browser regressions as well as all retained contract gates.', 'Orbit d4a8bf1 F8 (line 76)'],
|
|
12
|
+
['d', 'Run pnpm test:push', 'Nook bf244ee finding 7 (line 79)'],
|
|
13
|
+
['d', 'ct pattern 1', 'Mango 9d0c381 finding 6 (line 84)'],
|
|
14
|
+
];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { clauseIdSource, plainText } from './seed-contract.mjs'
|
|
2
|
+
import { prosePatterns } from './contract-prose-patterns.mjs'
|
|
3
|
+
|
|
4
|
+
const families = { a: 'acceptance-generated', b: 'base-duty', c: 'tool-class', d: 'record-placement' }
|
|
5
|
+
const classes = /\b(?:standard|external|money|commitment|accounts|gated|access|security|destructive|sensitive|live)\b/i
|
|
6
|
+
const idsIn = text => [...text.matchAll(new RegExp(`(?<![A-Za-z0-9.-])(${clauseIdSource})(?![A-Za-z0-9.-])`, 'g'))].map(match => match[1])
|
|
7
|
+
const cells = line => line.trim().replace(/^\|/, '').replace(/(?<!\\)\|$/, '').split(/(?<!\\)\|/).map(plainText)
|
|
8
|
+
const divider = line => line.includes('|') && cells(line).every(cell => /^:?-{3,}:?$/.test(cell))
|
|
9
|
+
const normalize = text => plainText(text).replace(/\s+/g, ' ').trim()
|
|
10
|
+
|
|
11
|
+
function visibleLines(text) {
|
|
12
|
+
let comment = false, fence
|
|
13
|
+
return text.replace(/\r\n?/g, '\n').split('\n').map(raw => {
|
|
14
|
+
let value = ''
|
|
15
|
+
for (let at = 0; at < raw.length;) {
|
|
16
|
+
const end = raw.indexOf(comment ? '-->' : '<!--', at)
|
|
17
|
+
if (end < 0) { if (!comment) value += raw.slice(at); break }
|
|
18
|
+
if (!comment) value += raw.slice(at, end)
|
|
19
|
+
at = end + (comment ? 3 : 4)
|
|
20
|
+
comment = !comment
|
|
21
|
+
}
|
|
22
|
+
const mark = /^\s*(`{3,}|~{3,})/.exec(value)?.[1]
|
|
23
|
+
if (mark) {
|
|
24
|
+
if (!fence) fence = mark
|
|
25
|
+
else if (mark[0] === fence[0] && mark.length >= fence.length) fence = undefined
|
|
26
|
+
return ''
|
|
27
|
+
}
|
|
28
|
+
return fence ? '' : value
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function contractProseFindings({ text, clauses, coverage, sources, generatedStatement }) {
|
|
33
|
+
const findings = [], lines = visibleLines(text)
|
|
34
|
+
const add = (family, ids, location, message) => {
|
|
35
|
+
for (const id of new Set(ids.length ? ids : ['(no clause id)']))
|
|
36
|
+
findings.push({ family, id, location, message, severity: family === 'a' || family === 'c' ? 'ERROR' : 'WARN' })
|
|
37
|
+
}
|
|
38
|
+
const owners = new Map()
|
|
39
|
+
for (const clause of clauses) {
|
|
40
|
+
const body = []
|
|
41
|
+
for (let index = clause.line; index < lines.length && !/^#{1,6}\s/.test(lines[index]); index++) {
|
|
42
|
+
body.push(lines[index])
|
|
43
|
+
owners.set(index, clause.id)
|
|
44
|
+
}
|
|
45
|
+
const prose = normalize(body.join('\n'))
|
|
46
|
+
const gap = normalize(clause.gap)
|
|
47
|
+
for (const [family, phrase, source] of prosePatterns) {
|
|
48
|
+
for (const [value, line] of [[prose, clause.line], [gap, clause.row]]) {
|
|
49
|
+
const at = value.toLowerCase().indexOf(phrase.toLowerCase())
|
|
50
|
+
if (at >= 0) add(family, [clause.id], `CONTRACT.md:${line}`, `matched ${JSON.stringify(value.slice(at, at + phrase.length))}; source: ${source}`)
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
for (let index = 0; index + 1 < lines.length; index++) {
|
|
56
|
+
if (!lines[index].includes('|') || !divider(lines[index + 1])) continue
|
|
57
|
+
const header = cells(lines[index]), tool = header.findIndex(cell => /^tools?\b/i.test(cell))
|
|
58
|
+
if (tool < 0) continue
|
|
59
|
+
const classColumn = header.findIndex(cell => /\bclass(?:es)?\b/i.test(cell))
|
|
60
|
+
const clauseColumn = header.findIndex(cell => /\bclauses?\b/i.test(cell))
|
|
61
|
+
for (let row = index + 2; row < lines.length && lines[row].trimStart().startsWith('|'); row++) {
|
|
62
|
+
const values = cells(lines[row])
|
|
63
|
+
if (!values[tool] || divider(lines[row])) continue
|
|
64
|
+
if (classColumn >= 0 && classes.test(values[classColumn] ?? '')) continue
|
|
65
|
+
const ids = idsIn(clauseColumn >= 0 ? values[clauseColumn] ?? '' : values.join(' '))
|
|
66
|
+
if (!ids.length && owners.has(row)) ids.push(owners.get(row))
|
|
67
|
+
add('c', ids, `CONTRACT.md:${row + 1}`, `tool ${JSON.stringify(values[tool])} declares no fleet class`)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
for (const [index, fragment] of (coverage?.fragments ?? []).entries()) {
|
|
72
|
+
const destinations = [fragment, ...(fragment.also ?? [])]
|
|
73
|
+
if (!destinations.some(destination => destination.to === 'generated')) continue
|
|
74
|
+
const source = sources.find(entry => entry.file === fragment.file && entry.line === fragment.line && entry.cell === fragment.cell)
|
|
75
|
+
if (!(fragment.file === 'ACCEPTANCE.md' || source?.clause) || generatedStatement(fragment.text)) continue
|
|
76
|
+
const ids = fragment.ids?.length ? fragment.ids : source?.clause ? [source.clause] : idsIn(fragment.text)
|
|
77
|
+
add('a', ids, `docs/contract/COVERAGE.json fragment ${index + 1} (${fragment.file}:${fragment.line})`, `acceptance prose mapped generated: ${JSON.stringify(fragment.text)}`)
|
|
78
|
+
}
|
|
79
|
+
return findings
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function printProseFindings(findings) {
|
|
83
|
+
for (const finding of findings)
|
|
84
|
+
console.log(`${finding.severity} ${finding.id} ${finding.family} ${families[finding.family]} ${finding.location}: ${finding.message}`)
|
|
85
|
+
const errors = findings.filter(finding => finding.severity === 'ERROR').length
|
|
86
|
+
console.log(`Contract prose: ${errors} errors, ${findings.length - errors} warnings.`)
|
|
87
|
+
return errors
|
|
88
|
+
}
|
package/global/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,156 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.87
|
|
4
|
+
|
|
5
|
+
- Connect declared, contained agent verifier drivers to named native Worker RPC entrypoints, and run built queue consumers alongside producers. Public-door fixtures prove real queued effects, execution-time consent revocation and retained audits without a served test route.
|
|
6
|
+
|
|
7
|
+
- Allow declared RPC provider verifiers in isolated Workers without application bindings or network access. Native signed delivery and approval still run; unsigned receipts and escaping modules fail.
|
|
8
|
+
|
|
9
|
+
- Generate disposable native JSON/PEM owner bindings through contained test modules. A signed-claim fixture imports a fresh GitHub App RSA key and signs/verifies its JWT; invalid keys remain refused.
|
|
10
|
+
|
|
11
|
+
- Run optional native journey beforeStep/afterStep hooks between mandatory autonomous and held steps, allowing real repository consent and queued-work preparation without skipping conformance.
|
|
12
|
+
|
|
13
|
+
- Accept composite revoke/narrow targets consisting solely of required string identifiers. Match every witness key and retain grant-subset, neighboring-grant and widening-refusal checks.
|
|
14
|
+
|
|
15
|
+
- Give native queued effects separate once-only claims through a persisted continuation-item resolver, preserving the originating operation, consent, sponsor, scopes, approvers and public idempotency key. Replays return only the selected item's result; mismatched admissions and revoked consent remain refused.
|
|
16
|
+
|
|
17
|
+
- Clarify the already-shipped 0.2.86 independent-reviewer admission/mail hook and its use with a named second-person door approval. The native approver is recorded separately from the sponsor, whose self-approval remains forbidden by that named policy.
|
|
18
|
+
|
|
19
|
+
- Refresh from a Base archive preserves unrecorded workflows without requesting unavailable Git history. Explicitly recorded templates still refresh; ownership, edits and ancestry-dependent migration refusals remain protected. See `ADOPTING.md`.
|
|
20
|
+
|
|
21
|
+
- Deliver the full edition-authoring tool identity with yaml and Babel LICENSE/README files, so package-created locks pass the delivered template's check without relocking. Existing helper-collision protections still apply. See `ADOPTING.md`.
|
|
22
|
+
|
|
23
|
+
- Refuse ambiguous undeclared `oc_` tables during installation transfers instead of silently excluding their rows; retain exact Base owner-claim exclusions and explicit include/exclude choices. See `ADOPTING.md`.
|
|
24
|
+
|
|
25
|
+
- Create every accepted Managed-download table before executing interleaved inserts, retaining deferred foreign keys and the existing SQL/schema/ledger refusal boundaries. See `ADOPTING.md`.
|
|
26
|
+
|
|
27
|
+
- Document the full 0.2.82 helper and case-spelling recovery sequence using the current installed package. Add a required hosted Ubuntu 24.04 Verify job for the delivered template's cold/save/remove/restore/warm cache lifecycle and real Chromium launches. See `ADOPTING.md`.
|
|
28
|
+
|
|
29
|
+
- Contract document generation accepts distinct current Homepage claims when the historical source has none. Missing original claims and duplicate current claims remain refused.
|
|
30
|
+
|
|
31
|
+
- Refresh read-only native revision prerequisites before argument-injection probes, while retaining class/fact/decision checks and fresh write keys.
|
|
32
|
+
|
|
33
|
+
- Follow audit cursors when checking pending and completed native targets, including targets beyond the first audit page.
|
|
34
|
+
|
|
35
|
+
- Accept a native reviewer's final HTTP 200 session response alongside 303, retaining independent-cookie, one-use proof and lifecycle checks.
|
|
36
|
+
|
|
37
|
+
- Match current workflow templates from a Base archive's supplied snapshot; preserve unmatched seed-owned workflow bytes without requesting unavailable history. Historical migration and legacy-membership refusals remain explicit.
|
|
38
|
+
|
|
39
|
+
- Document remaining native integration prerequisites: receipt fixtures need their native client and retained key before mandatory steps; creation adapters with consumed preparation need explicit current replay authorization. Neither native guard is bypassed by these probe fixes.
|
|
40
|
+
|
|
41
|
+
- Unify managed mail's public `MAIL_FROM` input across deploy declarations and delivery production. Accept its environment-mapped deploy input alongside an empty public default; refuse disagreeing configured senders with both values and source locations before packaging or deployment. Keep credential overlaps private and refused. See `modules/delivery-producer/ADOPTING.md`.
|
|
42
|
+
|
|
43
|
+
- Use the journey's selected native client for post-write event snapshots, so valid client-only change events pass conformance under the same resource visibility checks as the write and read. Steps without a selected client keep the Business credential path.
|
|
44
|
+
|
|
45
|
+
- Agent conformance journeys can select real native client credentials and reference phase-local values from a contained `verification.fixtures` module. Fresh native setup runs before each policy journey round, including REST mutations that enter the actual agent door to establish receipt custody. Preparation finishes before adopting held policy, and its native audit identity is checked separately from the journey's exact audit count. Receipts, destructive state, approvals and audits retain their actual client identity and scope. Missing clients, missing fixtures and reused consumed state still fail verification. This provides fixture support for Mango and Oncall; editions must still declare their missing tool/class cases.
|
|
46
|
+
|
|
47
|
+
- A managed server keeps running when a timed-out status client disconnects before its reply; the control socket contains the resulting write error.
|
|
48
|
+
|
|
49
|
+
- `rer refresh-base` carries import-reached transitive siblings when two disjoint recorded directory copies establish the same shared parent placement, resolving refusals such as owner-claim's dependency on `modules/dependencies/protocol.mjs` without a product-specific copy list. Singleton selections witness their own directory siblings but cannot invent a broader competing parent namespace. More-specific mappings and seed ownership protections remain; genuinely unmapped or ambiguous dependencies still refuse before writes.
|
|
50
|
+
|
|
51
|
+
- `rer refresh-base` places newly delivered module imports against the most specific recorded vendor namespace, including files covered by a directory copy. Relocated files retain their Base baseline as acknowledged seed-owned adaptations; unmapped and ambiguous dependencies still refuse before writes. See `edition-authoring/ADOPTING.md`.
|
|
52
|
+
|
|
53
|
+
- Keep copy-record file and mode maps stable when namespace relocations become acknowledged adaptations, so repeating an identical refresh preserves the entire tree and record.
|
|
54
|
+
|
|
55
|
+
### Known issues
|
|
56
|
+
|
|
57
|
+
- Historical 0.2.82 helper collisions and case-spelling recovery still require the explicit manual sequence in `ADOPTING.md`.
|
|
58
|
+
- Native-client receipt fixtures must establish their own native client and retained operation key before mandatory journey steps. Consumed preparation still needs an explicit native replay-admission contract; cached outcomes never bypass current authorization.
|
|
59
|
+
- Protected import-kit adaptations may need manual dependency reconciliation before refresh. A refused refresh preserves their bytes and copy ownership.
|
|
60
|
+
|
|
61
|
+
## 0.2.86
|
|
62
|
+
|
|
63
|
+
- Let verifier owner initializers and native journeys complete real email confirmation through a bounded captured-mail reader and supply per-run data to declared isolated provider edges. The controls stay outside production builds. Prove fresh agent-door/settings source copies typecheck with upstream tests omitted.
|
|
64
|
+
|
|
65
|
+
- Recheck native resource visibility before retained event replay and subscription delivery; accept single-segment and underscore tool names within MCP's 128-character limit; preserve opaque string or numeric revision tokens through approvals. Negotiate every advertised MCP version explicitly and document the unsupported March 2025 transport.
|
|
66
|
+
|
|
67
|
+
- Agent-door access/security tools can declare a machine-checked revoke/narrow contract and prove a native grant subset plus undeclared-argument refusal. Native-proof tools challenge with a human handoff, use the seed verifier before execution and remain subject to company policy and approval; conformance checks challenges, bogus references, audits and valid native proof.
|
|
68
|
+
|
|
69
|
+
- Carry agent/client scopes into resource authorization, delayed approvals and event/subscription filtering. Embedded callers supply explicit scopes; native current-grant hooks may only narrow their original authority.
|
|
70
|
+
|
|
71
|
+
- Agent-door verification can map native environment binding names to its disposable issuer, installation and owner/session values. Durable invocations retain their originating consent and refuse revoked consent at worker admission, with consent attribution in the audit.
|
|
72
|
+
|
|
73
|
+
- Agent-door verification fixtures generate disposable setup, session, local bearer, delivery and provider credentials at runtime while retaining signed receipts and isolated provider checks.
|
|
74
|
+
|
|
75
|
+
- Local `rer export` and `rer import` accept the historical `_rer_deploy_migrations` plus `d1_migrations` pair: the deploy ledger remains authoritative and Wrangler is skipped. Incomplete, pending or conflicting histories still refuse before transfer.
|
|
76
|
+
|
|
77
|
+
- **Known adapter change in 0.2.85:** the worker's `migration-preflight` receipt changed from `{platformLedger}` to `{nativeApply}`, and `platformMigrationPreflight` was renamed to `nativeMigrationPreflight`. Seeds wrapping the worker or importing the internal adapter must update; the supported adapter entry is `@runeditrun/rer/portability-migrations`, and native migrations run only when `nativeApply` is true.
|
|
78
|
+
|
|
79
|
+
- `rer deploy --dry-run` now accepts valid senders on reserved fixture domains and no longer requires an owner name to print its local plan. Real deploys keep placeholder-sender refusals and managed adapters check the owner email before asking for a missing name; deploy help documents that order.
|
|
80
|
+
|
|
81
|
+
- Contract conversion now reads requirement prose and acceptance lists in a blockquote after a legacy clause bullet, while preserving clause boundaries and refusing clauses with no requirement prose.
|
|
82
|
+
|
|
83
|
+
- Contract conversion now keeps requirement prose and acceptance points after a leading plain, italic or bold Status line, preserves the recorded status, and still refuses a clause with no requirement prose or a conflicting status.
|
|
84
|
+
|
|
85
|
+
- Import door sources may declare `format: 'raw'` and a seed-owned `readRaw` reader for ZIP and other binary exports. Verified upload bytes, hash and size reach that reader before text decoding; exact custody, reviewed plans and the existing apply, reconciliation, catch-up and Undo lifecycle are shared with JSON/NDJSON sources.
|
|
86
|
+
|
|
87
|
+
- Managed data restores now accept downloads that omit policy-declared derived virtual tables while retaining their triggers. Base creates those sandbox tables from destination migrations and atomically rebuilds external-content FTS5 search indexes from restored rows. Virtual-table SQL in downloads remains refused, and copy-normalization failures now have a named error.
|
|
88
|
+
|
|
89
|
+
- Refuse inherited names in the front-door CLI verb table and agent conformance schema predicates before dispatch. Unknown door commands keep exit 2, and unsupported schema types produce validation diagnostics.
|
|
90
|
+
|
|
91
|
+
- Agent-door verification follows signed and native owner lifecycles, supports isolated seed provider adapters, and accepts Base source archives for copy authoring.
|
|
92
|
+
|
|
93
|
+
- Fix unused bindings in the copied contract generator; add `check-prose` to `check` for generated acceptance and unclassified tools, with source-linked warnings for Base restatements and misplaced records, and require guarded request-name registries in foundation guidance.
|
|
94
|
+
|
|
95
|
+
- Bind agent sponsors to durable Business person ids from signed settings, enforce native admission including the allow-list, and honour signed agent and consent revocation. Resources now use the policy and audit pipeline. Approvals show saved summaries, bind decisions to their hash, execute with named approvers and leave a separate execution audit; Undo is the reviewer's act. Running audits commit before effects and recover from recorded outcomes. Standalone spend caps and unscoped Business daily limits are refused until their enforcement exists. The reference journey exercises self-escalation fixtures and real settings pairing.
|
|
96
|
+
|
|
97
|
+
- Add the server-side agent-door source entry `modules/agent-door/index.ts`, native-action adoption guidance, signed policy adoption on existing owner-claim trust, MCP and person routes, approvals, reviews, audit and retained events. Document request capacities and indefinitely retained idempotency outcomes; distinguish implemented conformance point registrations from edition-specific coverage. Policy behavior derives from platform commit `72aa71c03d943b53ed43dc73cac17d412c00d8fb`, `src/business/agent-policy/{catalogue,document,decide}.ts`; runtime copy pins and CLI versions remain independent.
|
|
98
|
+
|
|
99
|
+
- Re-exporting the maintained reference leaves its CLI inventory unchanged after generated copies are committed; its development version tracks the last exported source change.
|
|
100
|
+
|
|
101
|
+
- Contract conversion retains observed homepage table headers, escaped pipes, quoted prose and historical claim statuses, and refuses dropped or changed source claims. `record-base --from-api` records verified immutable Base copies through the GitHub API when a local checkout is unavailable.
|
|
102
|
+
|
|
103
|
+
- Convert handwritten homepage claims with reviewed alias maps bound to the original revision, file, line and claim text, preserving the original obligations and judgments.
|
|
104
|
+
|
|
105
|
+
- Keep reviewed license, launcher and hosted-demo facts in converted claims as explicit non-product rows, with their historical status separate from current unassessed status.
|
|
106
|
+
|
|
107
|
+
- Preserve an explicitly recorded negative-scope boundary without inventing a product clause, using the supported `boundary` basis and the original source record.
|
|
108
|
+
|
|
109
|
+
- Publication scans use each retained revision's repository context so local source paths beside repository prose do not become remote declarations; explicit repository references still receive the existing visibility checks.
|
|
110
|
+
|
|
111
|
+
- After computer choices change in Business, name `business next` as the next step and report which local apps received the Business name, including when none did.
|
|
112
|
+
|
|
113
|
+
- `rer refresh-base` accepts literal apostrophes in double-quoted workflow text while still refusing unclosed shell quotes before writing files.
|
|
114
|
+
|
|
115
|
+
- Editions can declare reviewed test-reader dependencies in `verification.json` so contract, source-lock and evidence-only changes can select the Verify light tier; unknown readers still require full coverage.
|
|
116
|
+
|
|
117
|
+
- `rer refresh-base` no longer prints the template-adoption notice when a preserved workflow already matches the incoming template, including acknowledged adaptations.
|
|
118
|
+
|
|
119
|
+
- Older v2 backups without `schemaObjects` now restore without acknowledgment when their recorded migrations prove the complete destination schema and archived tables. Unverifiable backups retain the explicit recovery option. Managed data ZIP intake also accepts old native staging-table leftovers, and its fixture preserves parent-before-child creation order for foreign keys.
|
|
120
|
+
|
|
121
|
+
- `rer import` now restores into an existing local D1 file with no product schema, including a file created by Wrangler after reset. Migrations run before restore as they do when no file exists; occupied destinations and unknown foreign tables remain refused.
|
|
122
|
+
|
|
123
|
+
- `rer refresh-base` refused sparse historical module copies when required dependency additions also resolved their old missing imports. Refresh now delivers and records those planned dependencies without a manual copy-record edit; ordinary unresolved imports without a planned dependency remain preserved.
|
|
124
|
+
|
|
125
|
+
- Verify labelled sponsor lists through native lifecycles, signed Business bindings and a cross-sponsor privacy/approval phase; single-sponsor journeys keep their existing phases and point counts.
|
|
126
|
+
|
|
127
|
+
- Provision native per-install webhook keys into isolated verification receivers through a contained, read-only state accessor; signed inbound probes verify both accepted effects and wrong-signature refusals.
|
|
128
|
+
|
|
129
|
+
- Add explicit `authority: 'none'` security tools for justified record changes, with closed schema validation, undeclared-argument refusal, normal policy/approval handling and audit classification.
|
|
130
|
+
|
|
131
|
+
- Recheck current agent-door admission before returning idempotent outcomes; refusals retain their own audit without exposing cached content.
|
|
132
|
+
|
|
133
|
+
- Agent-door verification can declare independent native reviewer lifecycles with bounded, recipient-scoped captured mail; invitations, confirmation and two-person decisions still pass through the seed's production handlers.
|
|
134
|
+
|
|
135
|
+
- Resolve seed-declared native targets into audit and hashed approval summaries; retain resolvable pause/unset classification; return resource refusal machine codes in JSON-RPC data; require sponsor-escalation fixtures only for applicable native surfaces.
|
|
136
|
+
|
|
137
|
+
- Expose frozen agent-door admission identity, granted scopes, operation id and idempotency key to native tools. Bind queued continuations to their retained admission, preserve named approvers and once-only replay, and recheck current grants and consent before effects.
|
|
138
|
+
|
|
139
|
+
- Add `rer business setup --origin URL --session-file FILE --confirm-demo` to provision the synthetic Run your business demo through the platform owner routes. Mirror managed/assisted/self_host hosting, resumable door proofs and read-only completed repeats; require an owned 0600 session file, keep its value out of output, and retain the platform JSON receipt. Exit 0 requires every required seed to be provisioned, token-issued, policy-confirmed, settings-delivered and door-proved; completed repeats return equal receipts.
|
|
140
|
+
|
|
141
|
+
- Prove publication-scan copy digests per file, so an adapted file in a directory copy no longer discards its unchanged siblings' proofs. Mismatched digests, adapted content and unlisted files remain fully scanned.
|
|
142
|
+
|
|
143
|
+
- Hosted demo redeploys now recognise secret-triggered versions that lost their ownership annotation when unchanged code, runtime and bindings match the retained rer deployment. Foreign or changed Workers remain refused before writes, with the actual ownership cause and recovery guidance in human and JSON output.
|
|
144
|
+
|
|
145
|
+
- `rer check` now fails `deploy.vars-secrets` when any Wrangler source or environment declares a plain variable that the deployment also declares as a secret, including empty placeholders. It lists every binding and both declaration locations, with the repair, before a build or demo deploy.
|
|
146
|
+
|
|
147
|
+
- Seeds can sync the canonical BASE-AGENT-001 through 013 requirements with `rer door clauses --write` or detect drift with `--check`. The command preserves seed judgments and specialist clauses, adds unjudged duties as missing, and regenerates and checks contract documents. The module copy and portable CLI inventory deliver the same canonical source.
|
|
148
|
+
|
|
149
|
+
### Known issues
|
|
150
|
+
|
|
151
|
+
- The two refresh recovery guidance issues documented in 0.2.82 still apply, with the same manual recoveries.
|
|
152
|
+
- The delivered Verify template's runner-temporary pnpm store, Chromium and apt cache lifecycle is not yet exercised end to end on a GitHub Ubuntu 24.04 runner; Base Verify covers only Base's own bootstrap.
|
|
153
|
+
|
|
3
154
|
## 0.2.85
|
|
4
155
|
|
|
5
156
|
- Two starters could both take over a stale local operation lock and both act as its owner. Takeover is now exclusive: the lock's inode stays pinned through takeover, and release checks the owner token.
|
package/global/README.md
CHANGED
|
@@ -19,6 +19,13 @@ Review source changes and run edition tests before committing. See the
|
|
|
19
19
|
[edition authoring guide](https://github.com/runeditrun/base/blob/main/export/EDITION-AUTHORING.md)
|
|
20
20
|
for adoption, refusal behavior, JSON fields and the original Base-checkout form.
|
|
21
21
|
|
|
22
|
+
`rer door clauses --write` syncs the shared agent requirements into a seed's
|
|
23
|
+
contract, preserving its judgments and its own specialist clauses, then runs
|
|
24
|
+
contract document generation and checking. `rer door clauses --check` reports
|
|
25
|
+
missing or stale requirements without writing; use `--cwd DIR` to select a seed.
|
|
26
|
+
The CLI can sync a contract before runtime adoption; regenerate the seed's source lock last.
|
|
27
|
+
See [agent door adoption](https://github.com/runeditrun/base/blob/main/modules/agent-door/ADOPTING.md#contract-clauses).
|
|
28
|
+
|
|
22
29
|
## Install
|
|
23
30
|
|
|
24
31
|
Start a seed from an empty folder, with or without Node:
|
|
@@ -415,6 +422,38 @@ Sensitive-looking outbound names are dropped and counted in `withheld`.
|
|
|
415
422
|
Symlinks, generated outputs and dependency trees are skipped; unsupported
|
|
416
423
|
formats and syntax may yield no signals.
|
|
417
424
|
|
|
425
|
+
## Run your business demo
|
|
426
|
+
|
|
427
|
+
```sh
|
|
428
|
+
rer business setup --origin https://app.runeditrun.com --session-file /private/path/owner.session --confirm-demo
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
This provisions the synthetic Juniper Harbor Software demo through the platform's
|
|
432
|
+
Business routes using the signed-in person's session. The session file must be
|
|
433
|
+
an owned regular file with mode `0600`, containing only `rer_session=VALUE` or
|
|
434
|
+
`__Host-rer_session=VALUE`. Symbolic links are refused. The session is read in
|
|
435
|
+
process, sent only as the platform Cookie header, and never printed or placed
|
|
436
|
+
in argv, local Business state or a receipt. `--confirm-demo` is required.
|
|
437
|
+
|
|
438
|
+
Hosting defaults to `managed`; `--hosting assisted` and `--hosting self_host`
|
|
439
|
+
are also supported. There is no `hosted` alias. `--wait-seconds 0..240` bounds
|
|
440
|
+
provisioning polling (default: 240). Both normal output and `--json` print the
|
|
441
|
+
platform script's JSON receipt, including each seed's actual state and only
|
|
442
|
+
credential identifiers. Errors print a named `{code}` to stderr and exit 1.
|
|
443
|
+
|
|
444
|
+
Run the same command to resume. Completed seeds keep their token, consent and
|
|
445
|
+
policy identifiers and report equal receipts (`already provisioned`). The
|
|
446
|
+
receipt includes each seed's state and a top-level `complete` flag. Exit 0
|
|
447
|
+
requires `complete: true`: every required seed must be provisioned, token-issued,
|
|
448
|
+
policy-confirmed, settings-delivered and have its door proofs recorded.
|
|
449
|
+
Missing adoptions remain `not yet on the agent door` and exit nonzero.
|
|
450
|
+
|
|
451
|
+
The route order, policy, synthetic company profile and receipt are mirrored from
|
|
452
|
+
the RER platform at commit `0261033177e8e05284c037369ee9c3a85922a8aa`,
|
|
453
|
+
`scripts/business/demo.mjs` and `demo/company.json`. The platform owns the seed
|
|
454
|
+
catalogue, fixture data and door proofs. This command does not pair the computer
|
|
455
|
+
or use its stored device credential.
|
|
456
|
+
|
|
418
457
|
## Business device commands
|
|
419
458
|
|
|
420
459
|
`rer business connect --code ABCD-1234 [--origin https://app.runeditrun.com]`
|
|
@@ -454,9 +493,12 @@ service). Connect, run and next read them as `optIns` from device-authenticated
|
|
|
454
493
|
`awakeConsent` and `installService`; the CLI prints only the sentences. Only
|
|
455
494
|
`true` enables an option. Undecided (`null`) options are listed with a browser
|
|
456
495
|
link; an older server without this route (it answers 403 or 404) leaves all
|
|
457
|
-
options undecided.
|
|
458
|
-
|
|
459
|
-
|
|
496
|
+
options undecided. Connect never has to run again after the owner decides:
|
|
497
|
+
`rer business run` (at every check-in) and `rer business next` read the choices
|
|
498
|
+
again, apply each one that changed (a `false` removes what an earlier `true`
|
|
499
|
+
added) and print which choices they applied. A choice this session cannot apply,
|
|
500
|
+
such as Claude Code rules in `~/.claude` from inside an agent sandbox, is named
|
|
501
|
+
with its cause and tried again at the next check-in. The first
|
|
460
502
|
device-authenticated request happens after both the credential and local
|
|
461
503
|
pairing state are stored, so a storage failure cannot activate the computer.
|
|
462
504
|
A service installed with `RER_BUSINESS_STATE_DIR` set keeps that folder. Background
|
|
@@ -472,16 +514,35 @@ run outside the sandbox (in Codex, approve running that command outside the
|
|
|
472
514
|
sandbox when it asks); later commands
|
|
473
515
|
only read the credential and run inside the sandbox. Do not install a
|
|
474
516
|
background service or change user settings unless the owner enables those
|
|
475
|
-
options and the sandbox permits their locations.
|
|
517
|
+
options and the sandbox permits their locations. Inside that sandbox macOS also
|
|
518
|
+
refuses to remove the Keychain item (`security` exits 161 and leaves it), so
|
|
519
|
+
`disconnect` revokes on the server, exits 0, says "revoked on the server; the
|
|
520
|
+
local credential is still stored" and names the one command that removes it when
|
|
521
|
+
run outside the sandbox; until then `status` says revoked, never paired.
|
|
476
522
|
|
|
477
523
|
`rer business vendor-key add sentry` requires hidden credential entry in a
|
|
478
524
|
terminal, stores it in the OS keychain and prints only `sentry:read`.
|
|
479
525
|
`remove` deletes it. The same commands support `uptimerobot`, `pagerduty` and
|
|
480
|
-
`calendly`.
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
526
|
+
`calendly`. Sorry's export reads its public status page and needs no key. Never
|
|
527
|
+
put a key in command arguments, chat or a URL.
|
|
528
|
+
|
|
529
|
+
`rer business next` returns, within 60 seconds, one locally templated
|
|
530
|
+
classification, owner link or agent step, or says what `run` would start, and
|
|
531
|
+
says `Nothing yet` only when no agent step waits. Once an app is claimed and its
|
|
532
|
+
import door is on, its `export.vendor` task is the agent's step, and so are a
|
|
533
|
+
move's `catchup.vendor` (bringing over what changed in the old tool) and
|
|
534
|
+
`switchoff.archive` (the final archive before switch-off): next names the step,
|
|
535
|
+
the owner-typed `rer business vendor-key add <vendor>` (or says the key is
|
|
536
|
+
already stored, or that the vendor needs none) and `rer business run`. Run reads
|
|
537
|
+
the adapter's non-secret inputs from the leased task's `export_inputs` (Sentry's
|
|
538
|
+
organization and window, PagerDuty's window and `schedules: 'all'` (every rota
|
|
539
|
+
moves), Sorry's page host); a task that does not carry them yet is handed
|
|
540
|
+
back as paused until Business has them. A move's owner steps (`freeze.vendor`,
|
|
541
|
+
a `rollback.*` card, `switchoff.cancel`) are named as the owner's, with the
|
|
542
|
+
move's page (`/business/:id/moves/:toolId` when the summary names its
|
|
543
|
+
`tool_id`, else the switch-over board `/business/:id`), never as agent work. It
|
|
544
|
+
never reflects server instructions or raw evidence. Owner items cannot be
|
|
545
|
+
answered from this CLI.
|
|
485
546
|
`rer business answer ID VENDOR uses|sells|both|product-dependency [CONFIDENCE]`
|
|
486
547
|
submits a task-scoped classification through MCP. Choose a vendor ID from the
|
|
487
548
|
question's displayed answer schema, or `none`; the suggested vendor can be
|
|
@@ -498,7 +559,12 @@ device through device-authenticated `DELETE /api/business/executors/self` before
|
|
|
498
559
|
removing its service, device and vendor credentials, state and introduced Claude
|
|
499
560
|
rules, preserving preexisting settings and unrelated edits. It says "Device
|
|
500
561
|
revoked" only after the server confirms (`{"revoked":true}`, or 401 for a device
|
|
501
|
-
already revoked).
|
|
562
|
+
already revoked). If this session may not remove the credential, a key, the
|
|
563
|
+
service or the rules after the server revoked the computer, disconnect still
|
|
564
|
+
exits 0: it names what is left and the one command (with
|
|
565
|
+
`RER_BUSINESS_STATE_DIR` when set) that finishes outside the agent sandbox, and
|
|
566
|
+
keeps only that record, so `status` and every other command say revoked. A
|
|
567
|
+
server without that route (403 or 404) leaves the computer
|
|
502
568
|
connected: disconnect says so, names the browser page to revoke it in and keeps
|
|
503
569
|
everything for a later disconnect. Any other failure exits 1 and also keeps the
|
|
504
570
|
credential for a retry. With no stored device credential, nothing is sent and
|
|
@@ -510,25 +576,68 @@ completion checks. Only the browser consent's paths are scanned. Names-only
|
|
|
510
576
|
snapshots and page boundaries are saved privately so a killed supervisor can
|
|
511
577
|
resume from its server checkpoint without rescanning a changed tree. Snapshots
|
|
512
578
|
are removed after completion. A missing snapshot for an acknowledged page is
|
|
513
|
-
an explicit error. Revocation stops the supervisor on its next 401
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
The
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
579
|
+
an explicit error. Revocation stops the supervisor on its next 401; it then
|
|
580
|
+
removes the device credential if it may and `status` says revoked. While it
|
|
581
|
+
waits, `run` says what for: the owner's permission to scan the folder connect
|
|
582
|
+
ran in (with the Your tools link) until this computer's scan is done, then the
|
|
583
|
+
owner's next step. It removes `run.lock` on every exit, including Ctrl-C,
|
|
584
|
+
SIGTERM and a closed terminal (SIGHUP); a lock whose process is gone, or that
|
|
585
|
+
has not been refreshed for two minutes, is cleared on the next start.
|
|
586
|
+
|
|
587
|
+
`rer business run` also performs claimed `export.vendor` tasks into the app's
|
|
588
|
+
import door. The claim's grant names the door (`/api/rer/import/uploads` on the
|
|
589
|
+
app's HTTPS origin) and `import_grants`; every door request asks
|
|
590
|
+
`POST /api/business/tasks/:taskId/import-grants` for its own short-lived
|
|
591
|
+
RER-signed grant (`uploads` or `plan`; apply is the server's alone after the
|
|
592
|
+
owner's wave approval), and the first grant's namespace names the vendor. The
|
|
593
|
+
read-only vendor key is read from OS credential storage, never from arguments,
|
|
594
|
+
the environment or a file. The shipped adapter runs into a private 0600
|
|
595
|
+
`export-<id>.bundle` file in the state folder, each item checked by the outbound
|
|
596
|
+
detector; the bundle is sent in 64 KiB chunks, then planned, which leaves a
|
|
597
|
+
zero-write preview in the door. Run then completes the task with outputs
|
|
598
|
+
`{upload_id, plan_id, bundle_sha256}` (identifiers only); Business reads that
|
|
599
|
+
plan from the door with its own grants and completes the task only if it is the
|
|
600
|
+
plan of exactly that bundle. Run prints only counts and removes the bundle on
|
|
601
|
+
every exit. Without the key, run
|
|
602
|
+
releases the task as `paused` after an `owner_required` event and names the
|
|
603
|
+
owner's command; a running supervisor picks the export up once the key is
|
|
604
|
+
stored. A door that is not ready releases it as `paused` after a
|
|
605
|
+
`connected_runner_required` event, naming the reason. UptimeRobot needs no
|
|
606
|
+
other input. Sentry, PagerDuty and Sorry use the leased task's `export_inputs`;
|
|
607
|
+
when those inputs are missing they release as `paused` after a
|
|
608
|
+
`configuration_required` event. Calendly's folder of files has no single-bundle
|
|
609
|
+
door format yet and releases with the same event. While an agent step waits (an export, or a
|
|
610
|
+
question for `next`, or the lease an earlier run on this computer still holds),
|
|
611
|
+
run says what it waits for instead of `Nothing yet`; otherwise it names a move's
|
|
612
|
+
owner step with its link before `Nothing yet`.
|
|
613
|
+
|
|
614
|
+
`rer business run` performs claimed `catchup.vendor` and `switchoff.archive`
|
|
615
|
+
tasks the same way: the claim's grant names the door, the key comes from OS
|
|
616
|
+
credential storage, and the shipped adapter's bundle goes up in 64 KiB chunks,
|
|
617
|
+
each with its own grant, from a private 0600 file removed on every exit.
|
|
618
|
+
|
|
619
|
+
- A catch-up then plans the upload with `{uploadId, catchup: true}`. Business
|
|
620
|
+
mints its plan grant under the owner's standing catch-up approval when one
|
|
621
|
+
covers the tool, and says so with `catchup: "bounded"` on the grant. If the
|
|
622
|
+
door refuses that with `catchup_requires_proposal:<reason>` (gone, conflicting
|
|
623
|
+
or rejected records, or a change of 5% or more), run asks
|
|
624
|
+
`import-grants` for `{action: "plan", review: true}` and plans the same upload
|
|
625
|
+
again for the owner's review. Run completes with
|
|
626
|
+
`{upload_id, plan_id, bundle_sha256}`; Business applies a bounded plan under
|
|
627
|
+
the standing approval and any other only after the owner approves it.
|
|
628
|
+
- An archive calls the door's `archive` action with `{uploadId, tool, takenAt}`
|
|
629
|
+
(the tool is the vendor's namespace), then `restore-check` with the
|
|
630
|
+
`archiveId`, and requires both answers to carry the bundle's SHA-256 and size,
|
|
631
|
+
the key `business-archive/<tool>/<takenAt>` and the same counts. Run completes
|
|
632
|
+
with `{archive_id, bundle_sha256}`; Business runs its own `restore-check`
|
|
633
|
+
before the task is done. Archive grants are `uploads`, `archive` and
|
|
634
|
+
`restore-check`; catch-up grants are `uploads`, `plan` and `status`.
|
|
635
|
+
|
|
636
|
+
Run prints only counts and the archive key. When an owner summary is supplied,
|
|
637
|
+
the CLI displays its browser link and refuses to answer it.
|
|
638
|
+
|
|
639
|
+
The five deterministic adapter implementations and their native output formats
|
|
640
|
+
are described in [the adapter guide](https://github.com/runeditrun/base/blob/main/cli/business/vendors/README.md).
|
|
532
641
|
|
|
533
642
|
## Local engineering companion
|
|
534
643
|
|
package/global/door/command.mjs
CHANGED
|
@@ -19,6 +19,8 @@ The front door serves every registered checkout at http://NAME.localhost:PORT
|
|
|
19
19
|
from one process on one port. A checkout starts on its first visit in a browser
|
|
20
20
|
and stops when idle. It is opt-in for this computer.
|
|
21
21
|
|
|
22
|
+
rer door clauses (--write | --check) [--cwd DIR]
|
|
23
|
+
Sync Base agent requirements into a seed contract, preserving judgments.
|
|
22
24
|
rer door enable [--port N] [--server-limit N] [--idle-timeout S]
|
|
23
25
|
Opt this computer in, record the policy and start the door.
|
|
24
26
|
Defaults: port 8700, 10 servers, 43200 s (12 hours) idle.
|
|
@@ -247,7 +249,7 @@ export async function doorCommand(args, env = process.env) {
|
|
|
247
249
|
const [verb, ...rest] = args;
|
|
248
250
|
if (!verb || ['--help', '-h', 'help'].includes(verb) || rest.includes('--help')) { process.stdout.write(doorHelp); return 0; }
|
|
249
251
|
const verbs = { enable, disable, add, remove, status, start: (_, e) => start(e), stop: (_, e) => stop(e), restart: (_, e) => restart(e) };
|
|
250
|
-
if (!verbs
|
|
252
|
+
if (!Object.hasOwn(verbs, verb)) { err(`Unknown rer door command: ${verb}. Run rer door --help.`); return 2; }
|
|
251
253
|
if (['start', 'stop', 'restart'].includes(verb) && rest.length) { err(`rer door ${verb} takes no arguments.`); return 2; }
|
|
252
254
|
try { return await verbs[verb](rest, env); }
|
|
253
255
|
catch (error) { if (error instanceof DoorFailure || error.exitCode) { err(error.message); return error.exitCode ?? 1; } throw error; }
|
package/global/main.mjs
CHANGED
|
@@ -71,7 +71,7 @@ export async function main(argv) {
|
|
|
71
71
|
if (!verb || verb === '--help' || verb === '-h' || verb === 'help') { process.stdout.write(help); return 0; }
|
|
72
72
|
if (verb === 'cli') return (await import('./cli/command.mjs')).cliCommand(argv.slice(1));
|
|
73
73
|
if (verb === 'list') return (await import('./list.mjs')).listCommand(argv.slice(1));
|
|
74
|
-
if (verb === 'door') return (await import('./door/command.mjs')).doorCommand(argv.slice(1));
|
|
74
|
+
if (verb === 'door' && argv[1] !== 'clauses') return (await import('./door/command.mjs')).doorCommand(argv.slice(1));
|
|
75
75
|
if (verb === 'run') return (await import('./run.mjs')).runScript(argv.slice(1));
|
|
76
76
|
if (repositoryCommands[verb] && argv.includes('--help')) {
|
|
77
77
|
const { help } = await import('../cli/parse.mjs');
|