Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1279195
ci: inspect candidate lineage contract
drewstone Aug 16, 2026
dc424c1
ci: inspect current profile improvement implementation
drewstone Aug 16, 2026
2edc63a
ci: inspect authored profile test fixtures
drewstone Aug 16, 2026
d68cddf
feat: add canonical authored profile candidate path
drewstone Aug 16, 2026
d5affab
test: prove authored profiles use the canonical proposal path
drewstone Aug 16, 2026
6366579
ci: finalize authored profile candidate branch
drewstone Aug 16, 2026
e637ff0
ci: align authored candidate assertions with canonical omission seman…
drewstone Aug 16, 2026
3696fec
feat: measure authored profiles without optimizer lineage
github-actions[bot] Aug 16, 2026
6f0cb7f
ci: regenerate authored profile testing fixtures
drewstone Aug 16, 2026
2831ab9
test: regenerate proposal fixtures for Runtime 0.137.1
github-actions[bot] Aug 16, 2026
d73ea2c
ci: deduplicate profile improvement experiment support
drewstone Aug 16, 2026
a71eb95
ci: make profile support refactor deterministic
drewstone Aug 16, 2026
227d9f8
ci: handle inline TypeScript return types during extraction
drewstone Aug 16, 2026
20cda06
ci: replace profile refactor patcher with a balanced parser
drewstone Aug 16, 2026
7316bce
ci: retain generic optimization receipt import
drewstone Aug 16, 2026
964ee41
docs: align canonical API with Runtime 0.137.1
drewstone Aug 16, 2026
e190032
refactor: share canonical profile experiment support
github-actions[bot] Aug 16, 2026
1e1c35f
test: harden authored profile provenance boundaries
drewstone Aug 16, 2026
050e50d
merge main into authored profile candidate
drewstone Aug 16, 2026
06239e7
chore(release): bump authored profile candidate to 0.138.1
drewstone Aug 16, 2026
3dcfbd9
fix(intelligence): validate authored metadata before measurement
drewstone Aug 16, 2026
005d4cb
chore(testing): regenerate authored profile fixtures
drewstone Aug 16, 2026
9f237f4
chore(release): 0.139.0 for the authored profile path
drewstone Aug 17, 2026
29d7c52
Merge remote-tracking branch 'origin/main' into pr885
drewstone Aug 17, 2026
b266bda
docs(canonical-api): state the 0.139.0 version
drewstone Aug 17, 2026
42a9f62
chore(testing): regenerate the fixtures at 0.139.0
drewstone Aug 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 194 additions & 2 deletions docs/api/intelligence.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,151 @@ The product owns the private state lookup and atomic write.

***

### AgentProfileCandidateMeasurementExecutor

Product-owned executor for exact baseline/candidate profile measurement.

#### Properties

##### executionRef

> **executionRef**: `AgentProfileImprovementExecutionRef`

#### Methods

##### measure()

> **measure**(`input`): `Promise`\<`AgentProfileImprovementRunReceipt`\>

###### Parameters

###### input

`AgentProfileImprovementExperimentExecutionInput` & `object`

###### Returns

`Promise`\<`AgentProfileImprovementRunReceipt`\>

***

### ProposeAuthoredAgentProfileImprovementOptions

Measure a complete human-authored, imported, or compound profile candidate.
No optimizer runs and no optimizer receipt is fabricated.

#### Properties

##### runId

> **runId**: `string`

##### source

> **source**: `object`

##### profile

> **profile**: `AgentProfile`

##### stateDigest

> **stateDigest**: [`AgentImprovementProfileStateDigest`](#agentimprovementprofilestatedigest)

##### candidateProfile

> **candidateProfile**: `AgentProfile`

##### candidateLineage

> **candidateLineage**: [`AuthoredAgentProfileCandidateLineage`](#authoredagentprofilecandidatelineage)

##### diff?

> `optional` **diff?**: [`AgentImprovementTargetProfileDiffOptions`](#agentimprovementtargetprofilediffoptions)

Optional source/artifact metadata used on Runtime-derived profile diff steps.

##### findings?

> `optional` **findings?**: readonly `ProposalFinding`[]

##### benchmark

> **benchmark**: [`AgentProfileImprovementBenchmark`](#agentprofileimprovementbenchmark)

##### executor

> **executor**: [`AgentProfileCandidateMeasurementExecutor`](#agentprofilecandidatemeasurementexecutor)

##### budgetUsd

> **budgetUsd**: `number`

One customer-approved maximum for the held-out paired measurement.

##### developmentScenarios?

> `optional` **developmentScenarios?**: readonly `CampaignScenarioIdentity`[]

Optional identities used to prove authored/imported development work is held out.

##### maxConcurrency?

> `optional` **maxConcurrency?**: `number`

##### signal?

> `optional` **signal?**: `AbortSignal`

##### candidate?

> `optional` **candidate?**: `object`

##### metadata?

> `optional` **metadata?**: `object`

###### Index Signature

\[`key`: `string`\]: `AgentCandidateJsonValue`

##### now?

> `optional` **now?**: () => `Date`

###### Returns

`Date`

***

### ProposeAuthoredAgentProfileImprovementResult

#### Properties

##### candidateProfile

> **candidateProfile**: `AgentProfile`

##### candidateLineage

> **candidateLineage**: `AgentCandidateLineage`

##### experiment

> **experiment**: `AgentProfileImprovementExperiment`

##### measurements

> **measurements**: `AgentProfileImprovementMeasurement`[]

##### proposal

> **proposal**: `AgentImprovementProposal`

***

### CredentialRef

A named secret a binding requires — declared, never carried.
Expand Down Expand Up @@ -1507,7 +1652,7 @@ Runtime's expired-attempt path reuses this port only to stop and dispose.

###### Inherited from

[`ExactProcessCandidateExperimentExecutor`](#exactprocesscandidateexperimentexecutor).[`executor`](#executor)
[`ExactProcessCandidateExperimentExecutor`](#exactprocesscandidateexperimentexecutor).[`executor`](#executor-1)

##### recoveryPorts

Expand Down Expand Up @@ -3503,7 +3648,7 @@ Full canonical profile used for this agent. Exported redacted with a stable hash

###### Inherited from

[`IntelligenceConfig`](#intelligenceconfig).[`profile`](#profile-4)
[`IntelligenceConfig`](#intelligenceconfig).[`profile`](#profile-5)

##### commitSha?

Expand Down Expand Up @@ -3669,6 +3814,34 @@ Return undefined only when no target write can have committed.

***

### AuthoredAgentProfileCandidateLineage

> **AuthoredAgentProfileCandidateLineage** = `Omit`\<`AgentCandidateLineage`, `"source"` \| `"profileDiffIds"`\> & `object`

Lineage accepted by the direct candidate path. Optimizer lineage belongs to `improve()`.

#### Type Declaration

##### source

> **source**: `Exclude`\<`AgentCandidateLineage`\[`"source"`\], `"optimizer"`\>

##### profileDiffIds?

> `optional` **profileDiffIds?**: `never`

Runtime derives these from the exact profile change it seals.

***

### AuthoredAgentProfileDiffOptions

> **AuthoredAgentProfileDiffOptions** = `NonNullable`\<`Parameters`\<*typeof* [`agentImprovementProfileDiffs`](#agentimprovementprofilediffs)\>\[`2`\]\>

Provenance attached while Runtime derives the exact profile diff.

***

### JsonSchema

> **JsonSchema** = `Record`\<`string`, `unknown`\>
Expand Down Expand Up @@ -4197,6 +4370,25 @@ Validate and execute one product-owned activation transition.

***

### proposeAuthoredAgentProfileImprovement()

> **proposeAuthoredAgentProfileImprovement**(`options`): `Promise`\<[`ProposeAuthoredAgentProfileImprovementResult`](#proposeauthoredagentprofileimprovementresult)\>

Put a complete authored/imported profile through the canonical profile
experiment and proposal path without invoking `improve()`.

#### Parameters

##### options

[`ProposeAuthoredAgentProfileImprovementOptions`](#proposeauthoredagentprofileimprovementoptions)

#### Returns

`Promise`\<[`ProposeAuthoredAgentProfileImprovementResult`](#proposeauthoredagentprofileimprovementresult)\>

***

### manifestFromProfile()

> **manifestFromProfile**(`profile`): [`CapabilityManifest`](#capabilitymanifest)
Expand Down
11 changes: 8 additions & 3 deletions docs/api/primitive-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Primitive catalog — the never-stale anti-reinvention inventory

> **GENERATED** from `@tangle-network/agent-runtime@0.138.1` and `@tangle-network/agent-eval@0.146.0` by `scripts/gen-primitive-catalog.mjs`. Do NOT hand-edit — run `pnpm run docs:api`. This is the mechanical companion to the JUDGMENT in `canonical-api.md` (§2 decision table + §1.5 AgentProfile law): that doc says WHICH primitive to reach for and what NOT to build; this catalog proves WHAT exists. Per-symbol signatures + `file:line` live in the per-module pages under `docs/api/`.
> **GENERATED** from `@tangle-network/agent-runtime@0.139.0` and `@tangle-network/agent-eval@0.146.0` by `scripts/gen-primitive-catalog.mjs`. Do NOT hand-edit — run `pnpm run docs:api`. This is the mechanical companion to the JUDGMENT in `canonical-api.md` (§2 decision table + §1.5 AgentProfile law): that doc says WHICH primitive to reach for and what NOT to build; this catalog proves WHAT exists. Per-symbol signatures + `file:line` live in the per-module pages under `docs/api/`.

## 1. agent-runtime — own public surface

Expand Down Expand Up @@ -401,7 +401,7 @@ Import from `@tangle-network/agent-runtime/tool-loop` — 12 exports.

### Intelligence SDK — Observe + provable-OFF billing

Import from `@tangle-network/agent-runtime/intelligence` — 166 exports.
Import from `@tangle-network/agent-runtime/intelligence` — 172 exports.

| Symbol | Kind | Summary |
|---|---|---|
Expand Down Expand Up @@ -436,6 +436,7 @@ Import from `@tangle-network/agent-runtime/intelligence` — 166 exports.
| `prepareAgentImprovementProfileActivation` | function | Compare product-owned profiles with an exact measured transition and prepare |
| `proposeAgentImprovement` | function | Analyze, search, then remeasure the resulting exact candidate before proposing it. |
| `proposeAgentProfileImprovement` | function | Analyze a product-owned profile, search one profile surface, then run the |
| `proposeAuthoredAgentProfileImprovement` | function | Put a complete authored/imported profile through the canonical profile |
| `pullCertified` | function | Pull the certified composed profile for a target. Fail-closed: a network |
| `resolveEffort` | function | Compile a named tier (plus optional per-field overrides) into the flat |
| `resolveIntelligenceBaseUrl` | function | Resolve the ONE Intelligence base URL — the single knob both the send and |
Expand All @@ -459,6 +460,7 @@ Import from `@tangle-network/agent-runtime/intelligence` — 166 exports.
| `AgentImprovementActivationResult` | interface | Immutable outcome of one idempotent, transaction-wide activation attempt. |
| `AgentImprovementMeasuredComparison` | interface | Portable paired held-out comparison produced by a sealed candidate executor. |
| `AgentImprovementReview` | interface | Human or tenant-policy decision bound to one exact proposal. |
| `AgentProfileCandidateMeasurementExecutor` | interface | Product-owned executor for exact baseline/candidate profile measurement. |
| `AgentProfileImprovementBenchmark` | interface | Product-owned task material that Runtime freezes before either profile state runs. |
| `AgentProfileImprovementExecutor` | interface | One product execution adapter shared by optimizer search and exact profile |
| `AppliedIntelligence` | interface | What the hook hands the agent each run. Additive over the prompt-only |
Expand Down Expand Up @@ -486,6 +488,7 @@ Import from `@tangle-network/agent-runtime/intelligence` — 166 exports.
| `ModeReadiness` | interface | One mode's readiness verdict. |
| `ProfileImprovementActivationTransitionInput` | interface | A measured profile change without raw profile bytes. |
| `ProposeAgentProfileImprovementOptions` | interface | Complete profile-improvement path for a product-owned source. |
| `ProposeAuthoredAgentProfileImprovementOptions` | interface | Measure a complete human-authored, imported, or compound profile candidate. |
| `ProposedProfileDiff` | interface | A gate-certified profile diff the plane has already promoted, plus the |
| `ProtectedExactProcessCandidateExperimentExecutor` | interface | Exact-process executor plus the ports required for durable recovery. |
| `ProvisionedHost` | interface | A live, provisioned host the resolver tore up for a `process-on-infra` arm. |
Expand All @@ -512,6 +515,8 @@ Import from `@tangle-network/agent-runtime/intelligence` — 166 exports.
| `AgentImprovementProfileStateResolver` | type | Product-owned retained-state lookup used only for an explicit restore. |
| `AgentImprovementProposalSubmissionState` | type | What Runtime knows about a failed proposal submission. |
| `AgentProfileImprovementMethodOptions` | type | The portable profile changes that the measured-profile contract permits. |
| `AuthoredAgentProfileCandidateLineage` | type | Lineage accepted by the direct candidate path. Optimizer lineage belongs to `improve()`. |
| `AuthoredAgentProfileDiffOptions` | type | Provenance attached while Runtime derives the exact profile diff. |
| `CapabilityAuth` | type | How a binding authenticates at resolve time. Declared as a REQUIREMENT in the |
| `CapabilityInterface` | type | What the agent consumes. CLOSED — a new runtime kind NEVER extends this. Each |
| `CapabilitySurface` | type | Every interface surface tag — the closed set the resolver fans into slots. |
Expand All @@ -529,7 +534,7 @@ Import from `@tangle-network/agent-runtime/intelligence` — 166 exports.
| `SubmitAgentImprovementProposalOutcome` | type | Typed result for proposal submission. A successful result contains the |
| `UsageClass` | type | Usage class for billing. Base-stream tokens bill `'inference'`; every |

**Undocumented supporting types** (add a TSDoc line at the declaration to earn a table row): `AgentCandidateExperimentCellPlacement`, `AgentImprovementActivationResultStore`, `AgentImprovementActivationTargetPlan`, `AgentImprovementProfileReplacement`, `AgentImprovementProfileStateDigestInput`, `AgentImprovementProfileStateResolverInput`, `AgentImprovementProposal`, `AgentImprovementTargetProfileDiffOptions`, `AgentProfileImprovementActivationTargetPlan`, `CreateAgentImprovementActivationOptions`, `CreateAgentImprovementActivationResultOptions`, `CreateAgentImprovementProposalOptions`, `CreateExactProcessCandidateExperimentExecutorOptions`, `ExactProcessCandidateExperimentExecution`, `ExactProcessCandidateExperimentExecutor`, `ExecuteAgentCandidateExperimentCellOptions`, `ExecuteAgentImprovementActivationInput`, `ExecuteAgentImprovementActivationOptions`, `OptimizationActivationReceipt`, `OptimizationReceiptCost`, `ProposeAgentImprovementOptions`, `ProposeAgentImprovementResult`, `ProposeAgentProfileImprovementResult`, `PullCertifiedOptions`, `ReviewAgentImprovementInput`, `RunAgentCandidateExperimentOptions`, `RunAgentCandidateExperimentResult`, `SealedCandidateActivationTransitionInput`, `VerifyCandidateExecutionEvidenceOptions`, `AgentImprovementActivationIntent`, `AgentImprovementActivationOutcome`, `AgentImprovementActivationTargetIdentity`, `AgentImprovementActivationTransitionInput`, `AgentImprovementAnalysisOptions`, `AgentImprovementProfileActivationInput`, `AgentImprovementProfileActivationPreparation`, `AgentImprovementProfileActivationTarget`, `AgentImprovementProfileSurface`, `AgentImprovementProfileTargetState`, `AgentImprovementProfileTargetTransition`, `AgentImprovementReviewDecision`, `AgentProfileImprovementActivationOperation`, `AgentProfileMeasuredSurface`.
**Undocumented supporting types** (add a TSDoc line at the declaration to earn a table row): `AgentCandidateExperimentCellPlacement`, `AgentImprovementActivationResultStore`, `AgentImprovementActivationTargetPlan`, `AgentImprovementProfileReplacement`, `AgentImprovementProfileStateDigestInput`, `AgentImprovementProfileStateResolverInput`, `AgentImprovementProposal`, `AgentImprovementTargetProfileDiffOptions`, `AgentProfileImprovementActivationTargetPlan`, `CreateAgentImprovementActivationOptions`, `CreateAgentImprovementActivationResultOptions`, `CreateAgentImprovementProposalOptions`, `CreateExactProcessCandidateExperimentExecutorOptions`, `ExactProcessCandidateExperimentExecution`, `ExactProcessCandidateExperimentExecutor`, `ExecuteAgentCandidateExperimentCellOptions`, `ExecuteAgentImprovementActivationInput`, `ExecuteAgentImprovementActivationOptions`, `OptimizationActivationReceipt`, `OptimizationReceiptCost`, `ProposeAgentImprovementOptions`, `ProposeAgentImprovementResult`, `ProposeAgentProfileImprovementResult`, `ProposeAuthoredAgentProfileImprovementResult`, `PullCertifiedOptions`, `ReviewAgentImprovementInput`, `RunAgentCandidateExperimentOptions`, `RunAgentCandidateExperimentResult`, `SealedCandidateActivationTransitionInput`, `VerifyCandidateExecutionEvidenceOptions`, `AgentImprovementActivationIntent`, `AgentImprovementActivationOutcome`, `AgentImprovementActivationTargetIdentity`, `AgentImprovementActivationTransitionInput`, `AgentImprovementAnalysisOptions`, `AgentImprovementProfileActivationInput`, `AgentImprovementProfileActivationPreparation`, `AgentImprovementProfileActivationTarget`, `AgentImprovementProfileSurface`, `AgentImprovementProfileTargetState`, `AgentImprovementProfileTargetTransition`, `AgentImprovementReviewDecision`, `AgentProfileImprovementActivationOperation`, `AgentProfileMeasuredSurface`.

### Execution kernel — recursive atom, supervision, executors, round-synchronous loop

Expand Down
2 changes: 1 addition & 1 deletion docs/canonical-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Generated signatures and the complete export list live in docs/api/.
Run pnpm docs:freshness after editing this file. -->

> **Version 0.138.1.**
> **Version 0.139.0.**
> [`docs/api/primitive-catalog.md`](./api/primitive-catalog.md) lists every export and import path.
> `agent-eval` must satisfy `>=0.146.0 <0.147.0`.
> `sandbox` must satisfy `>=0.27.1 <0.28.0`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tangle-network/agent-runtime",
"version": "0.138.1",
"version": "0.139.0",
"description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
"homepage": "https://github.com/tangle-network/agent-runtime#readme",
"repository": {
Expand Down
Loading