@open-agent-toolkit/cli 0.3.21 → 0.3.22
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/assets/bundle-metadata.json +1 -1
- package/assets/docs/reference/cli-reference.md +8 -3
- package/assets/docs/reference/configuration.md +3 -0
- package/assets/docs/reference/oat-directory-structure.md +1 -1
- package/assets/docs/reference/project-artifacts.md +141 -2
- package/assets/docs/reference/project-state-machine.md +2 -2
- package/assets/docs/workflows/advanced/autonomy.md +29 -12
- package/assets/docs/workflows/advanced/cursor-cloud.md +20 -6
- package/assets/docs/workflows/advanced/workflow-gates.md +9 -0
- package/assets/docs/workflows/projects/closeout/closeout-skills.md +24 -5
- package/assets/docs/workflows/projects/closeout/retro.md +6 -2
- package/assets/docs/workflows/projects/execution/implementation-execution.md +18 -4
- package/assets/docs/workflows/projects/execution/index.md +1 -1
- package/assets/docs/workflows/projects/execution/picking-up-projects.md +3 -2
- package/assets/docs/workflows/projects/execution/project-log.md +100 -11
- package/assets/docs/workflows/projects/lifecycle.md +3 -3
- package/assets/docs/workflows/projects/reviews/index.md +18 -0
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/oat-cursor-cloud-projects/SKILL.md +12 -8
- package/assets/skills/oat-cursor-cloud-projects/references/cursor-cloud-mechanics.md +63 -2
- package/assets/skills/oat-project-autonomous/SKILL.md +88 -26
- package/assets/skills/oat-project-autonomous/references/gate-inventory.md +1 -1
- package/assets/skills/oat-project-brief/SKILL.md +1 -1
- package/assets/skills/oat-project-brief/references/brief-contract.md +33 -27
- package/assets/skills/oat-project-brief/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-complete/SKILL.md +142 -25
- package/assets/skills/oat-project-complete-auto/SKILL.md +4 -4
- package/assets/skills/oat-project-dispatch-subagents/SKILL.md +10 -5
- package/assets/skills/oat-project-document/SKILL.md +1 -1
- package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-goal/SKILL.md +63 -15
- package/assets/skills/oat-project-goal/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-implement/SKILL.md +6 -6
- package/assets/skills/oat-project-implement/references/completion-and-closeout.md +28 -7
- package/assets/skills/oat-project-implement/references/dispatch-and-dry-run.md +10 -5
- package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-implement/references/phase-execution.md +23 -9
- package/assets/skills/oat-project-implement/references/plan-and-resume.md +4 -4
- package/assets/skills/oat-project-lite/SKILL.md +1 -1
- package/assets/skills/oat-project-lite/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-pr-final/SKILL.md +6 -1
- package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-pr-progress/SKILL.md +6 -1
- package/assets/skills/oat-project-quick-start/SKILL.md +1 -1
- package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-reconcile/SKILL.md +13 -19
- package/assets/skills/oat-project-retro/SKILL.md +5 -2
- package/assets/skills/oat-project-retro/references/evidence-and-lanes.md +9 -3
- package/assets/skills/oat-project-review-provide/SKILL.md +28 -3
- package/assets/skills/oat-project-review-receive/SKILL.md +32 -18
- package/assets/skills/oat-project-review-receive-remote/SKILL.md +10 -6
- package/assets/skills/oat-project-revise/SKILL.md +9 -2
- package/assets/skills/oat-project-summary/SKILL.md +166 -37
- package/assets/skills/oat-worktree-bootstrap-auto/SKILL.md +3 -3
- package/assets/templates/implementation-brief.md +5 -36
- package/assets/templates/implementation.md +11 -81
- package/assets/templates/project-log.md +2 -31
- package/assets/templates/project-retro.md +4 -1
- package/assets/templates/summary.md +13 -5
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +44 -1
- package/dist/commands/project/archive/archive-utils.d.ts +205 -8
- package/dist/commands/project/archive/archive-utils.d.ts.map +1 -1
- package/dist/commands/project/archive/archive-utils.js +708 -44
- package/dist/commands/project/archive/index.d.ts.map +1 -1
- package/dist/commands/project/archive/index.js +1 -0
- package/dist/commands/project/archive/push-runner.d.ts +9 -1
- package/dist/commands/project/archive/push-runner.d.ts.map +1 -1
- package/dist/commands/project/archive/push-runner.js +56 -18
- package/dist/commands/project/archive/sync-runner.d.ts +28 -0
- package/dist/commands/project/archive/sync-runner.d.ts.map +1 -1
- package/dist/commands/project/archive/sync-runner.js +44 -22
- package/dist/commands/project/complete-state/index.d.ts.map +1 -1
- package/dist/commands/project/complete-state/index.js +45 -0
- package/dist/commands/project/dispatch/index.d.ts.map +1 -1
- package/dist/commands/project/dispatch/index.js +24 -2
- package/dist/commands/project/dispatch/record.d.ts +54 -1
- package/dist/commands/project/dispatch/record.d.ts.map +1 -1
- package/dist/commands/project/dispatch/record.js +229 -1
- package/dist/commands/project/index.d.ts.map +1 -1
- package/dist/commands/project/index.js +2 -0
- package/dist/commands/project/journal-check/evaluator.d.ts +17 -0
- package/dist/commands/project/journal-check/evaluator.d.ts.map +1 -0
- package/dist/commands/project/journal-check/evaluator.js +140 -0
- package/dist/commands/project/journal-check/index.d.ts +34 -0
- package/dist/commands/project/journal-check/index.d.ts.map +1 -0
- package/dist/commands/project/journal-check/index.js +163 -0
- package/dist/commands/project/journal-check/rules.d.ts +68 -0
- package/dist/commands/project/journal-check/rules.d.ts.map +1 -0
- package/dist/commands/project/journal-check/rules.js +994 -0
- package/dist/commands/project/journal-check/types.d.ts +63 -0
- package/dist/commands/project/journal-check/types.d.ts.map +1 -0
- package/dist/commands/project/journal-check/types.js +26 -0
- package/dist/commands/project/log/append.d.ts +6 -0
- package/dist/commands/project/log/append.d.ts.map +1 -1
- package/dist/commands/project/log/append.js +114 -6
- package/dist/commands/project/log/check.d.ts +23 -1
- package/dist/commands/project/log/check.d.ts.map +1 -1
- package/dist/commands/project/log/check.js +20 -3
- package/dist/commands/project/log/grammar.d.ts +37 -0
- package/dist/commands/project/log/grammar.d.ts.map +1 -1
- package/dist/commands/project/log/grammar.js +72 -0
- package/dist/commands/project/log/rollup.d.ts +87 -1
- package/dist/commands/project/log/rollup.d.ts.map +1 -1
- package/dist/commands/project/log/rollup.js +257 -5
- package/dist/config/oat-config.d.ts +14 -0
- package/dist/config/oat-config.d.ts.map +1 -1
- package/dist/config/oat-config.js +17 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +5 -1
- package/dist/providers/identity/generic-dispatch-record.d.ts +33 -0
- package/dist/providers/identity/generic-dispatch-record.d.ts.map +1 -1
- package/dist/providers/identity/generic-dispatch-record.js +60 -1
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@ import { type CommandContext, type GlobalOptions } from '../../../app/command-co
|
|
|
2
2
|
import { type ActiveProjectResolution } from '../../../config/oat-config.js';
|
|
3
3
|
import { type ResolvedConfig } from '../../../config/resolve.js';
|
|
4
4
|
import { Command } from 'commander';
|
|
5
|
+
import { type ParsedProjectLogEntry } from './check.js';
|
|
5
6
|
export interface ProjectLogArtifactTarget {
|
|
6
7
|
filename: string;
|
|
7
8
|
summaryHeading?: string;
|
|
@@ -14,12 +15,47 @@ export interface RollupProjectLogInput {
|
|
|
14
15
|
summaryPath?: string;
|
|
15
16
|
artifactTarget?: ProjectLogArtifactTarget;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* What the Workflow Observations digest selected, reported under `--json`
|
|
20
|
+
* without copying any entry body.
|
|
21
|
+
*/
|
|
22
|
+
export interface ProjectLogDigestReport {
|
|
23
|
+
/** The bounds the digest was rendered under, after config resolution. */
|
|
24
|
+
maxEntries: number;
|
|
25
|
+
maxLines: number;
|
|
26
|
+
/** Judgment entries rendered into the summary section. */
|
|
27
|
+
rendered: number;
|
|
28
|
+
omitted: {
|
|
29
|
+
/** Judgment entries left out by the entry or line bound. */
|
|
30
|
+
overBound: number;
|
|
31
|
+
/** Structural entries, which are provenance and never rendered. */
|
|
32
|
+
structural: number;
|
|
33
|
+
/** `### ` headings that match neither grammar, skipped individually. */
|
|
34
|
+
malformed: number;
|
|
35
|
+
};
|
|
36
|
+
/** Locator tokens of the over-bound judgment entries, in priority order. */
|
|
37
|
+
omittedEntries: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Rendered and omitted counts per producer: a judgment entry's `**Origin:**`
|
|
40
|
+
* (or `unattributed`), a structural entry's producer.
|
|
41
|
+
*/
|
|
42
|
+
byProducer: Record<string, {
|
|
43
|
+
rendered: number;
|
|
44
|
+
omitted: number;
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
17
47
|
/** The outcome of a roll-up that actually read the log. */
|
|
18
48
|
export interface ProjectLogRollupSuccess {
|
|
19
49
|
status: 'ok' | 'failed';
|
|
20
|
-
|
|
50
|
+
/**
|
|
51
|
+
* `omitted` when the log has no judgment entry to digest: an existing
|
|
52
|
+
* Workflow Observations section is removed and none is created.
|
|
53
|
+
*/
|
|
54
|
+
summarySection: 'written' | 'updated' | 'omitted';
|
|
21
55
|
ledgerOutcome: 'appended' | 'deduplicated' | 'skipped_permitted' | 'failed';
|
|
56
|
+
/** Every entry read from the log, structural and judgment. */
|
|
22
57
|
entriesRolledUp: number;
|
|
58
|
+
digest: ProjectLogDigestReport;
|
|
23
59
|
}
|
|
24
60
|
export type ProjectLogRollupResult = ProjectLogRollupSuccess
|
|
25
61
|
/**
|
|
@@ -43,6 +79,56 @@ export interface ProjectLogRollupCommandDependencies extends RollupProjectLogDep
|
|
|
43
79
|
buildCommandContext: (options: GlobalOptions) => CommandContext;
|
|
44
80
|
resolveProjectRoot: (cwd: string) => Promise<string>;
|
|
45
81
|
}
|
|
82
|
+
type JudgmentEntry = Extract<ParsedProjectLogEntry, {
|
|
83
|
+
class: 'judgment';
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* The prefix of the export-safe source locator a digest item and a summary
|
|
87
|
+
* recommendation carry. It is a plain token, never a Markdown link: the log is
|
|
88
|
+
* archived with the project and is not retrievable from a tracked export, so
|
|
89
|
+
* the archive export (not this command) finalizes the token to the archive
|
|
90
|
+
* identity.
|
|
91
|
+
*/
|
|
92
|
+
export declare const PROJECT_LOG_LOCATOR_PREFIX = "oat-project:";
|
|
93
|
+
/**
|
|
94
|
+
* Assigns each judgment entry its collision-safe entry id:
|
|
95
|
+
* `<date>-<type>-<area slug>-<n>`, where `n` counts, from 1 in log order, the
|
|
96
|
+
* judgment entries sharing that date, type and area slug. The log is
|
|
97
|
+
* append-only, so an id never changes once assigned.
|
|
98
|
+
*/
|
|
99
|
+
export declare function assignProjectLogEntryIds(entries: readonly ParsedProjectLogEntry[]): Map<JudgmentEntry, string>;
|
|
100
|
+
/** `oat-project:<slug>#<entry-id>`. */
|
|
101
|
+
export declare function projectLogEntryLocator(slug: string, entryId: string): string;
|
|
102
|
+
/**
|
|
103
|
+
* Removes live project-directory paths from text bound for `summary.md`.
|
|
104
|
+
*
|
|
105
|
+
* A `.oat/projects/<scope>/<slug>/…` path stops resolving once the project is
|
|
106
|
+
* archived, and the summary is the one artifact exported into the tracked
|
|
107
|
+
* repository. The project-relative remainder is kept and labelled, so a review
|
|
108
|
+
* file name or run artifact stays identifiable.
|
|
109
|
+
*/
|
|
110
|
+
export declare function sanitizeLiveProjectPaths(text: string): string;
|
|
111
|
+
export interface ProjectLogDigest {
|
|
112
|
+
/** The section body, or undefined when there is no judgment entry. */
|
|
113
|
+
body: string | undefined;
|
|
114
|
+
report: ProjectLogDigestReport;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Projects the log into the bounded Workflow Observations digest.
|
|
118
|
+
*
|
|
119
|
+
* Only judgment entries are eligible; structural entries are provenance and
|
|
120
|
+
* stay in the log. Items are taken in priority order while both bounds hold:
|
|
121
|
+
* at most `maxEntries` items, and at most `maxLines` lines for the whole
|
|
122
|
+
* section body including the omitted-count trailer and the cross-reference.
|
|
123
|
+
* Selection never feeds the ledger, which graduates the complete judgment set.
|
|
124
|
+
*/
|
|
125
|
+
export declare function renderProjectLogDigest(parsed: {
|
|
126
|
+
entries: ParsedProjectLogEntry[];
|
|
127
|
+
grammarViolations: string[];
|
|
128
|
+
}, slug: string, bounds: {
|
|
129
|
+
maxEntries: number;
|
|
130
|
+
maxLines: number;
|
|
131
|
+
}): ProjectLogDigest;
|
|
46
132
|
interface ProjectLogLedgerTarget {
|
|
47
133
|
path: string;
|
|
48
134
|
explicitlyConfigured: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/commands/project/log/rollup.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,
|
|
1
|
+
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/commands/project/log/rollup.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAG9E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,SAAS,CAAC;AAMjB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,mCAAmC,EAAE,wBAGjD,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,wBAAwB,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,UAAU,EAAE,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5B,wBAAwB,CACK,GAC9B,OAAO,CAAC,sBAAsB,CAAC,CAiBjC;AAoED,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,qBAAqB,EAC5B,SAAS,GAAE,OAAO,CAAC,4BAA4B,CAAM,GACpD,OAAO,CAAC,sBAAsB,CAAC,CAoEjC;AAgED,wBAAgB,6BAA6B,CAC3C,SAAS,GAAE,OAAO,CAAC,mCAAmC,CAAM,GAC3D,OAAO,CAoBT"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { dirname, isAbsolute, join, resolve } from 'node:path';
|
|
3
|
+
import { basename, dirname, isAbsolute, join, resolve } from 'node:path';
|
|
4
4
|
import { buildCommandContext, } from '../../../app/command-context.js';
|
|
5
5
|
import { readGlobalOptions } from '../../shared/shared.utils.js';
|
|
6
|
-
import { resolveActiveProject, } from '../../../config/oat-config.js';
|
|
6
|
+
import { DEFAULT_PROJECT_LOG_DIGEST_MAX_ENTRIES, DEFAULT_PROJECT_LOG_DIGEST_MAX_LINES, isValidProjectLogDigestBound, resolveActiveProject, } from '../../../config/oat-config.js';
|
|
7
7
|
import { resolveEffectiveConfig } from '../../../config/resolve.js';
|
|
8
8
|
import { dirExists, fileExists } from '../../../fs/io.js';
|
|
9
9
|
import { resolveProjectRoot } from '../../../fs/paths.js';
|
|
10
10
|
import { Command } from 'commander';
|
|
11
11
|
import { findProjectLogAmbiguity, parseProjectLogEntries, PROJECT_LOG_FILENAME, } from './check.js';
|
|
12
|
+
import { parseProjectLogBodyHead } from './grammar.js';
|
|
12
13
|
const DEFAULT_LEDGER_PATH = '.oat/repo/reference/project-observations.md';
|
|
13
14
|
const WORKFLOW_OBSERVATIONS_HEADING = '## Workflow Observations';
|
|
14
15
|
export const DEFAULT_PROJECT_LOG_ARTIFACT_TARGET = {
|
|
@@ -46,9 +47,238 @@ function renderEntries(entries) {
|
|
|
46
47
|
.map((entry) => entry.body ? `${entry.heading}\n\n${entry.body}` : entry.heading)
|
|
47
48
|
.join('\n\n');
|
|
48
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* The prefix of the export-safe source locator a digest item and a summary
|
|
52
|
+
* recommendation carry. It is a plain token, never a Markdown link: the log is
|
|
53
|
+
* archived with the project and is not retrievable from a tracked export, so
|
|
54
|
+
* the archive export (not this command) finalizes the token to the archive
|
|
55
|
+
* identity.
|
|
56
|
+
*/
|
|
57
|
+
export const PROJECT_LOG_LOCATOR_PREFIX = 'oat-project:';
|
|
58
|
+
function slugifyArea(area) {
|
|
59
|
+
return (area
|
|
60
|
+
.toLowerCase()
|
|
61
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
62
|
+
.replace(/^-+|-+$/g, '') || 'entry');
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Assigns each judgment entry its collision-safe entry id:
|
|
66
|
+
* `<date>-<type>-<area slug>-<n>`, where `n` counts, from 1 in log order, the
|
|
67
|
+
* judgment entries sharing that date, type and area slug. The log is
|
|
68
|
+
* append-only, so an id never changes once assigned.
|
|
69
|
+
*/
|
|
70
|
+
export function assignProjectLogEntryIds(entries) {
|
|
71
|
+
const ids = new Map();
|
|
72
|
+
const ordinals = new Map();
|
|
73
|
+
for (const entry of entries) {
|
|
74
|
+
if (entry.class !== 'judgment')
|
|
75
|
+
continue;
|
|
76
|
+
const stem = `${entry.date}-${entry.type}-${slugifyArea(entry.area)}`;
|
|
77
|
+
const ordinal = (ordinals.get(stem) ?? 0) + 1;
|
|
78
|
+
ordinals.set(stem, ordinal);
|
|
79
|
+
ids.set(entry, `${stem}-${ordinal}`);
|
|
80
|
+
}
|
|
81
|
+
return ids;
|
|
82
|
+
}
|
|
83
|
+
/** `oat-project:<slug>#<entry-id>`. */
|
|
84
|
+
export function projectLogEntryLocator(slug, entryId) {
|
|
85
|
+
return `${PROJECT_LOG_LOCATOR_PREFIX}${slug}#${entryId}`;
|
|
86
|
+
}
|
|
87
|
+
const LIVE_PROJECT_PATH_RE = /(?:[^\s`'"()<>[\]]*\/)?\.oat\/projects\/(?:shared|local|synced)\/[^\s/`'"()<>[\]]+(?:\/([^\s`'"()<>[\]]*))?/g;
|
|
88
|
+
/**
|
|
89
|
+
* Removes live project-directory paths from text bound for `summary.md`.
|
|
90
|
+
*
|
|
91
|
+
* A `.oat/projects/<scope>/<slug>/…` path stops resolving once the project is
|
|
92
|
+
* archived, and the summary is the one artifact exported into the tracked
|
|
93
|
+
* repository. The project-relative remainder is kept and labelled, so a review
|
|
94
|
+
* file name or run artifact stays identifiable.
|
|
95
|
+
*/
|
|
96
|
+
export function sanitizeLiveProjectPaths(text) {
|
|
97
|
+
return text.replace(LIVE_PROJECT_PATH_RE, (_match, rest) => {
|
|
98
|
+
const trimmed = (rest ?? '').replace(/[.,;:]+$/, '');
|
|
99
|
+
const trailing = (rest ?? '').slice(trimmed.length);
|
|
100
|
+
return trimmed
|
|
101
|
+
? `(project file ${trimmed})${trailing}`
|
|
102
|
+
: `(project directory)${trailing}`;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function firstSentence(text) {
|
|
106
|
+
const collapsed = text.replace(/\s+/g, ' ').trim();
|
|
107
|
+
const match = /^.*?[.!?](?=\s|$)/.exec(collapsed);
|
|
108
|
+
return match ? match[0] : collapsed;
|
|
109
|
+
}
|
|
110
|
+
function labelledLine(lines, labels) {
|
|
111
|
+
for (const line of lines) {
|
|
112
|
+
const match = labels.exec(line.trim());
|
|
113
|
+
if (match)
|
|
114
|
+
return match[1].trim();
|
|
115
|
+
}
|
|
116
|
+
return undefined;
|
|
117
|
+
}
|
|
118
|
+
const CATEGORY_PRIORITY = { decision: 0, gotcha: 1 };
|
|
119
|
+
function categoryRank(entry) {
|
|
120
|
+
return entry.category === undefined
|
|
121
|
+
? 2
|
|
122
|
+
: (CATEGORY_PRIORITY[entry.category] ?? 2);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The digest's deterministic order: newest first, then `decision` and
|
|
126
|
+
* `gotcha` ahead of every other category, then heading text, then entry id.
|
|
127
|
+
*/
|
|
128
|
+
function compareDigestEntries(ids) {
|
|
129
|
+
return (left, right) => right.date.localeCompare(left.date) ||
|
|
130
|
+
categoryRank(left) - categoryRank(right) ||
|
|
131
|
+
left.heading.localeCompare(right.heading) ||
|
|
132
|
+
ids.get(left).localeCompare(ids.get(right));
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* One concise digest item: a header line carrying date, type, area, scope,
|
|
136
|
+
* category and the locator token, then the first observation sentence and any
|
|
137
|
+
* limitation and uncertainty. A recommendation is rendered only for an
|
|
138
|
+
* uncategorized entry; a categorized entry's synthesized recommendation is
|
|
139
|
+
* owned by the summary's Autonomous Execution Learnings section, so rendering
|
|
140
|
+
* it here too would state it twice.
|
|
141
|
+
*/
|
|
142
|
+
function renderDigestItem(entry, locator) {
|
|
143
|
+
const { rest } = parseProjectLogBodyHead(entry.body);
|
|
144
|
+
const lines = rest.split('\n');
|
|
145
|
+
const observation = labelledLine(lines, /^Observation:\s*(.+)$/i) ??
|
|
146
|
+
lines.find((line) => line.trim() !== '')?.trim() ??
|
|
147
|
+
'';
|
|
148
|
+
const meta = [entry.scope, ...(entry.category ? [entry.category] : [])];
|
|
149
|
+
const item = [
|
|
150
|
+
`- **${entry.date} · ${entry.type} · ${entry.area}** (${meta.join(', ')}) \`${locator}\``,
|
|
151
|
+
];
|
|
152
|
+
if (observation)
|
|
153
|
+
item.push(` ${firstSentence(observation)}`);
|
|
154
|
+
const limitation = labelledLine(lines, /^(?:Environment limitations?|Limitations?):\s*(.+)$/i);
|
|
155
|
+
if (limitation)
|
|
156
|
+
item.push(` Limitation: ${limitation}`);
|
|
157
|
+
const uncertainty = labelledLine(lines, /^Uncertainty:\s*(.+)$/i);
|
|
158
|
+
if (uncertainty)
|
|
159
|
+
item.push(` Uncertainty: ${uncertainty}`);
|
|
160
|
+
if (entry.category === undefined) {
|
|
161
|
+
const recommendation = labelledLine(lines, /^Recommendation:\s*(.+)$/i);
|
|
162
|
+
if (recommendation)
|
|
163
|
+
item.push(` Recommendation: ${recommendation}`);
|
|
164
|
+
}
|
|
165
|
+
return item.map((line) => sanitizeLiveProjectPaths(line));
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Projects the log into the bounded Workflow Observations digest.
|
|
169
|
+
*
|
|
170
|
+
* Only judgment entries are eligible; structural entries are provenance and
|
|
171
|
+
* stay in the log. Items are taken in priority order while both bounds hold:
|
|
172
|
+
* at most `maxEntries` items, and at most `maxLines` lines for the whole
|
|
173
|
+
* section body including the omitted-count trailer and the cross-reference.
|
|
174
|
+
* Selection never feeds the ledger, which graduates the complete judgment set.
|
|
175
|
+
*/
|
|
176
|
+
export function renderProjectLogDigest(parsed, slug, bounds) {
|
|
177
|
+
const ids = assignProjectLogEntryIds(parsed.entries);
|
|
178
|
+
const judgments = parsed.entries
|
|
179
|
+
.filter((entry) => entry.class === 'judgment')
|
|
180
|
+
.sort(compareDigestEntries(ids));
|
|
181
|
+
// A Map, not an object literal: an origin is caller-supplied text, and a
|
|
182
|
+
// name such as `__proto__` must count like any other, never reach
|
|
183
|
+
// `Object.prototype`.
|
|
184
|
+
const producerCounts = new Map();
|
|
185
|
+
const tally = (producer, key) => {
|
|
186
|
+
const counts = producerCounts.get(producer) ?? { rendered: 0, omitted: 0 };
|
|
187
|
+
counts[key] += 1;
|
|
188
|
+
producerCounts.set(producer, counts);
|
|
189
|
+
};
|
|
190
|
+
let structural = 0;
|
|
191
|
+
for (const entry of parsed.entries) {
|
|
192
|
+
if (entry.class === 'structural') {
|
|
193
|
+
structural += 1;
|
|
194
|
+
tally(entry.producer, 'omitted');
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
const hasCategorized = judgments.some((entry) => entry.category !== undefined);
|
|
198
|
+
const crossReference = 'Synthesized recommendations for categorized learnings are in the Autonomous Execution Learnings section.';
|
|
199
|
+
const rendered = [];
|
|
200
|
+
const omittedEntries = [];
|
|
201
|
+
let renderedCount = 0;
|
|
202
|
+
for (const entry of judgments) {
|
|
203
|
+
const locator = projectLogEntryLocator(slug, ids.get(entry));
|
|
204
|
+
const item = renderDigestItem(entry, locator);
|
|
205
|
+
const remaining = judgments.length - renderedCount - 1;
|
|
206
|
+
// Lines the section would need with this item: the items so far, this one,
|
|
207
|
+
// and the trailer and cross-reference blocks (two lines each with their
|
|
208
|
+
// blank separator) that would follow it.
|
|
209
|
+
const reserved = (remaining > 0 ? 2 : 0) + (hasCategorized ? 2 : 0);
|
|
210
|
+
const fits = omittedEntries.length === 0 &&
|
|
211
|
+
renderedCount < bounds.maxEntries &&
|
|
212
|
+
rendered.length + item.length + reserved <= bounds.maxLines;
|
|
213
|
+
if (fits) {
|
|
214
|
+
rendered.push(...item);
|
|
215
|
+
renderedCount += 1;
|
|
216
|
+
tally(entry.origin ?? 'unattributed', 'rendered');
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
omittedEntries.push(locator);
|
|
220
|
+
tally(entry.origin ?? 'unattributed', 'omitted');
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const report = {
|
|
224
|
+
maxEntries: bounds.maxEntries,
|
|
225
|
+
maxLines: bounds.maxLines,
|
|
226
|
+
rendered: renderedCount,
|
|
227
|
+
omitted: {
|
|
228
|
+
overBound: omittedEntries.length,
|
|
229
|
+
structural,
|
|
230
|
+
malformed: parsed.grammarViolations.length,
|
|
231
|
+
},
|
|
232
|
+
omittedEntries,
|
|
233
|
+
// `Object.fromEntries` defines own data properties, so every origin,
|
|
234
|
+
// `__proto__` included, serializes as an ordinary key.
|
|
235
|
+
byProducer: Object.fromEntries(producerCounts),
|
|
236
|
+
};
|
|
237
|
+
if (judgments.length === 0) {
|
|
238
|
+
return { body: undefined, report };
|
|
239
|
+
}
|
|
240
|
+
// The trailer and cross-reference count against `maxLines` like every
|
|
241
|
+
// item: each block after the first costs its lines plus a blank separator,
|
|
242
|
+
// and a block that would exceed the limit is left out (the trailer before
|
|
243
|
+
// the cross-reference). The JSON report keeps every count either way.
|
|
244
|
+
const blocks = rendered.length > 0 ? [rendered.join('\n')] : [];
|
|
245
|
+
let usedLines = rendered.length;
|
|
246
|
+
const appendWithinLimit = (block) => {
|
|
247
|
+
const cost = block.split('\n').length + (blocks.length > 0 ? 1 : 0);
|
|
248
|
+
if (usedLines + cost <= bounds.maxLines) {
|
|
249
|
+
blocks.push(block);
|
|
250
|
+
usedLines += cost;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
if (omittedEntries.length > 0) {
|
|
254
|
+
appendWithinLimit(`_${omittedEntries.length} more judgment ${omittedEntries.length === 1 ? 'entry is' : 'entries are'} omitted by the digest bound (${bounds.maxEntries} entries, ${bounds.maxLines} lines); the archived project log keeps every entry._`);
|
|
255
|
+
}
|
|
256
|
+
if (hasCategorized)
|
|
257
|
+
appendWithinLimit(crossReference);
|
|
258
|
+
return { body: blocks.join('\n\n'), report };
|
|
259
|
+
}
|
|
49
260
|
function writeSummarySection(content, heading, body) {
|
|
50
261
|
const escapedHeading = heading.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
51
262
|
const marker = new RegExp(`^${escapedHeading}\\s*$`, 'm').exec(content);
|
|
263
|
+
if (body === undefined) {
|
|
264
|
+
// No durable lesson: the section is never created, and an existing one —
|
|
265
|
+
// empty, or a stale copy an earlier roll-up wrote — is removed, because
|
|
266
|
+
// this command is its only writer.
|
|
267
|
+
if (!marker) {
|
|
268
|
+
return { content, outcome: 'omitted' };
|
|
269
|
+
}
|
|
270
|
+
const remainder = content.slice(marker.index + marker[0].length);
|
|
271
|
+
const nextHeading = /^## .+$/m.exec(remainder);
|
|
272
|
+
const end = nextHeading?.index === undefined
|
|
273
|
+
? content.length
|
|
274
|
+
: marker.index + marker[0].length + nextHeading.index;
|
|
275
|
+
const before = content.slice(0, marker.index).trimEnd();
|
|
276
|
+
const after = content.slice(end).trimStart();
|
|
277
|
+
return {
|
|
278
|
+
content: after ? `${before}\n\n${after}` : `${before}\n`,
|
|
279
|
+
outcome: 'omitted',
|
|
280
|
+
};
|
|
281
|
+
}
|
|
52
282
|
const section = `${heading}\n\n${body}\n`;
|
|
53
283
|
if (!marker) {
|
|
54
284
|
return {
|
|
@@ -66,6 +296,19 @@ function writeSummarySection(content, heading, body) {
|
|
|
66
296
|
outcome: 'updated',
|
|
67
297
|
};
|
|
68
298
|
}
|
|
299
|
+
async function resolveDigestBounds(repoRoot, home, dependencies) {
|
|
300
|
+
const effective = await dependencies.resolveEffectiveConfig(repoRoot, join(home, '.oat'));
|
|
301
|
+
const maxEntries = effective.resolved['workflow.projectLogDigest.maxEntries']?.value;
|
|
302
|
+
const maxLines = effective.resolved['workflow.projectLogDigest.maxLines']?.value;
|
|
303
|
+
return {
|
|
304
|
+
maxEntries: isValidProjectLogDigestBound(maxEntries)
|
|
305
|
+
? maxEntries
|
|
306
|
+
: DEFAULT_PROJECT_LOG_DIGEST_MAX_ENTRIES,
|
|
307
|
+
maxLines: isValidProjectLogDigestBound(maxLines)
|
|
308
|
+
? maxLines
|
|
309
|
+
: DEFAULT_PROJECT_LOG_DIGEST_MAX_LINES,
|
|
310
|
+
};
|
|
311
|
+
}
|
|
69
312
|
export async function resolveProjectLogLedgerTarget(repoRoot, home, dependencies = DEFAULT_ROLLUP_DEPENDENCIES) {
|
|
70
313
|
const effective = await dependencies.resolveEffectiveConfig(repoRoot, join(home, '.oat'));
|
|
71
314
|
const entry = effective.resolved['workflow.projectLogLedgerPath'];
|
|
@@ -156,14 +399,21 @@ export async function rollupProjectLog(input, overrides = {}) {
|
|
|
156
399
|
return { status: 'ambiguous', ambiguity };
|
|
157
400
|
}
|
|
158
401
|
const parsed = parseProjectLogEntries(content);
|
|
159
|
-
const
|
|
160
|
-
await
|
|
402
|
+
const digest = renderProjectLogDigest(parsed, basename(projectPath), await resolveDigestBounds(input.repoRoot, input.home ?? homedir(), dependencies));
|
|
403
|
+
const summaryBefore = await readFile(summaryPath, 'utf8');
|
|
404
|
+
const summaryUpdate = writeSummarySection(summaryBefore, artifactTarget.summaryHeading ?? WORKFLOW_OBSERVATIONS_HEADING, digest.body);
|
|
405
|
+
if (summaryUpdate.content !== summaryBefore) {
|
|
406
|
+
await writeFile(summaryPath, summaryUpdate.content, 'utf8');
|
|
407
|
+
}
|
|
408
|
+
// The ledger graduates the complete original judgment set, never the digest
|
|
409
|
+
// selection: a general lesson beyond the digest bound still graduates.
|
|
161
410
|
const ledgerOutcome = await rollupLedger(input, parsed.entries, dependencies);
|
|
162
411
|
return {
|
|
163
412
|
status: ledgerOutcome === 'failed' ? 'failed' : 'ok',
|
|
164
413
|
summarySection: summaryUpdate.outcome,
|
|
165
414
|
ledgerOutcome,
|
|
166
415
|
entriesRolledUp: parsed.entries.length,
|
|
416
|
+
digest: digest.report,
|
|
167
417
|
};
|
|
168
418
|
}
|
|
169
419
|
async function runRollupCommand(options, context, dependencies) {
|
|
@@ -189,7 +439,9 @@ async function runRollupCommand(options, context, dependencies) {
|
|
|
189
439
|
context.logger.json(result);
|
|
190
440
|
}
|
|
191
441
|
else if (result.status === 'ok') {
|
|
192
|
-
context.logger.success(`Rolled up ${result.entriesRolledUp} project log entries
|
|
442
|
+
context.logger.success(`Rolled up ${result.entriesRolledUp} project log entries; Workflow Observations ${result.summarySection === 'omitted'
|
|
443
|
+
? 'omitted (no judgment entries)'
|
|
444
|
+
: `digest renders ${result.digest.rendered}, omits ${result.digest.omitted.overBound} over the bound`}.`);
|
|
193
445
|
if (result.ledgerOutcome === 'skipped_permitted') {
|
|
194
446
|
context.logger.warn('Skipped the project-observations ledger because the default reference layer is absent.');
|
|
195
447
|
}
|
|
@@ -162,6 +162,19 @@ export interface WorkflowGatesConfig {
|
|
|
162
162
|
execTargets?: Record<string, ExecTargetConfig | null>;
|
|
163
163
|
skills?: Record<string, GateConfig | null>;
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Bounds for the Workflow Observations digest `oat project log rollup` writes
|
|
167
|
+
* into `summary.md`. A sibling of `projectLog`, which stays `true | false |
|
|
168
|
+
* "auto"`; each bound is a positive integer and an invalid value is dropped so
|
|
169
|
+
* the resolver's default applies.
|
|
170
|
+
*/
|
|
171
|
+
export interface WorkflowProjectLogDigest {
|
|
172
|
+
maxEntries?: number;
|
|
173
|
+
maxLines?: number;
|
|
174
|
+
}
|
|
175
|
+
export declare const DEFAULT_PROJECT_LOG_DIGEST_MAX_ENTRIES = 12;
|
|
176
|
+
export declare const DEFAULT_PROJECT_LOG_DIGEST_MAX_LINES = 60;
|
|
177
|
+
export declare function isValidProjectLogDigestBound(value: unknown): value is number;
|
|
165
178
|
export interface WorkflowGateTimeouts {
|
|
166
179
|
code?: number;
|
|
167
180
|
artifact?: number;
|
|
@@ -178,6 +191,7 @@ export interface OatWorkflowConfig {
|
|
|
178
191
|
autoArtifactReview?: WorkflowAutoArtifactReview;
|
|
179
192
|
projectLog?: WorkflowProjectLog;
|
|
180
193
|
projectLogLedgerPath?: string;
|
|
194
|
+
projectLogDigest?: WorkflowProjectLogDigest;
|
|
181
195
|
designMode?: WorkflowDesignMode;
|
|
182
196
|
dispatchPolicy?: WorkflowDispatchPolicy;
|
|
183
197
|
dispatchCeiling?: WorkflowDispatchCeiling;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oat-config.d.ts","sourceRoot":"","sources":["../../src/config/oat-config.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAA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AC,IAAI,CAAC,CAMrE;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CA6B5D"}
|
|
@@ -46,6 +46,11 @@ export function isValidGateTimeoutMs(value) {
|
|
|
46
46
|
value >= MIN_GATE_TIMEOUT_MS &&
|
|
47
47
|
value <= MAX_GATE_TIMEOUT_MS);
|
|
48
48
|
}
|
|
49
|
+
export const DEFAULT_PROJECT_LOG_DIGEST_MAX_ENTRIES = 12;
|
|
50
|
+
export const DEFAULT_PROJECT_LOG_DIGEST_MAX_LINES = 60;
|
|
51
|
+
export function isValidProjectLogDigestBound(value) {
|
|
52
|
+
return typeof value === 'number' && Number.isSafeInteger(value) && value >= 1;
|
|
53
|
+
}
|
|
49
54
|
const VALID_HILL_CHECKPOINT_DEFAULTS = ['every', 'final'];
|
|
50
55
|
export const VALID_POST_IMPLEMENT_LEGACY_SEQUENCES = ['wait', 'summary', 'pr', 'docs-pr'];
|
|
51
56
|
const VALID_POST_IMPLEMENT_STEPS = [
|
|
@@ -413,6 +418,18 @@ function normalizeWorkflowConfig(parsed) {
|
|
|
413
418
|
if (projectLogLedgerPath !== undefined) {
|
|
414
419
|
next.projectLogLedgerPath = projectLogLedgerPath;
|
|
415
420
|
}
|
|
421
|
+
if (isRecord(parsed.projectLogDigest)) {
|
|
422
|
+
const projectLogDigest = {};
|
|
423
|
+
if (isValidProjectLogDigestBound(parsed.projectLogDigest.maxEntries)) {
|
|
424
|
+
projectLogDigest.maxEntries = parsed.projectLogDigest.maxEntries;
|
|
425
|
+
}
|
|
426
|
+
if (isValidProjectLogDigestBound(parsed.projectLogDigest.maxLines)) {
|
|
427
|
+
projectLogDigest.maxLines = parsed.projectLogDigest.maxLines;
|
|
428
|
+
}
|
|
429
|
+
if (Object.keys(projectLogDigest).length > 0) {
|
|
430
|
+
next.projectLogDigest = projectLogDigest;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
416
433
|
if (typeof parsed.designMode === 'string' &&
|
|
417
434
|
VALID_DESIGN_MODES.includes(parsed.designMode)) {
|
|
418
435
|
next.designMode = parsed.designMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/config/resolve.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/config/resolve.ts"],"names":[],"mappings":"AACA,OAAO,EASL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,OAAO,GACP,MAAM,GACN,KAAK,GACL,SAAS,CAAC;AAEd,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,kCAAkC;IACjD,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACxD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAClE,cAAc,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CAChE;AA+HD,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,SAAS,GAAE,OAAO,CAAC,kCAAkC,CAAM,GAC1D,OAAO,CAAC,cAAc,CAAC,CAgFzB;AAED,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,cAAc,EACzB,SAAS,EAAE,MAAM,GAChB,sBAAsB,CAkBxB;AAED,wBAAgB,WAAW,CACzB,SAAS,EAAE,cAAc,EACzB,SAAS,EAAE,MAAM,GAChB,UAAU,GAAG,IAAI,CAEnB;AAED,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,cAAc,GACxB,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAY5B;AAED,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvE,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,cAAc,GACxB,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CA0DxC;AAiMD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,CAAC,UAAU,GACrB,MAAM,GAAG,SAAS,CAQpB"}
|
package/dist/config/resolve.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isWorkflowDispatchCandidateLadder } from './dispatch-matrix.js';
|
|
2
|
-
import { BUILTIN_EXEC_TARGETS, DEFAULT_INSTRUCTION_SYNC_STRATEGY, isWorkflowPostImplementStructuredSequence, readOatConfig, readOatLocalConfig, readUserConfig, } from './oat-config.js';
|
|
2
|
+
import { BUILTIN_EXEC_TARGETS, DEFAULT_INSTRUCTION_SYNC_STRATEGY, DEFAULT_PROJECT_LOG_DIGEST_MAX_ENTRIES, DEFAULT_PROJECT_LOG_DIGEST_MAX_LINES, isWorkflowPostImplementStructuredSequence, readOatConfig, readOatLocalConfig, readUserConfig, } from './oat-config.js';
|
|
3
3
|
import { getOwnKey, setOwnKey } from './own-keys.js';
|
|
4
4
|
const DEFAULT_DEPENDENCIES = {
|
|
5
5
|
readOatConfig,
|
|
@@ -85,6 +85,10 @@ const DEFAULT_WORKFLOW_CONFIG = {
|
|
|
85
85
|
},
|
|
86
86
|
projectLog: 'auto',
|
|
87
87
|
projectLogLedgerPath: '.oat/repo/reference/project-observations.md',
|
|
88
|
+
projectLogDigest: {
|
|
89
|
+
maxEntries: DEFAULT_PROJECT_LOG_DIGEST_MAX_ENTRIES,
|
|
90
|
+
maxLines: DEFAULT_PROJECT_LOG_DIGEST_MAX_LINES,
|
|
91
|
+
},
|
|
88
92
|
designMode: null,
|
|
89
93
|
dispatchCeiling: {
|
|
90
94
|
preset: null,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type DispatchValueViolation } from './absolute-paths.js';
|
|
3
|
+
/**
|
|
4
|
+
* The producer contract for a dispatch request identity. Consumers that read
|
|
5
|
+
* a projected identity back (journal run lines) validate against this same
|
|
6
|
+
* pattern instead of a copy.
|
|
7
|
+
*/
|
|
8
|
+
export declare const REQUEST_ID_PATTERN: RegExp;
|
|
3
9
|
/**
|
|
4
10
|
* Whole-record ceiling, applied at every parse entry point so no combination
|
|
5
11
|
* of individually legal fields can produce an unbounded record.
|
|
@@ -522,4 +528,31 @@ export declare function assertNoSensitiveDispatchContent(value: unknown, path?:
|
|
|
522
528
|
export declare function identityFieldsOf(record: GenericDispatchRecord): Record<string, unknown>;
|
|
523
529
|
export declare function sanitizeDispatchRecordPaths(record: GenericDispatchRecord): GenericDispatchRecord;
|
|
524
530
|
export declare function parseGenericDispatchRecord(value: unknown): GenericDispatchRecord;
|
|
531
|
+
/**
|
|
532
|
+
* Journal terminal classification of one dispatch, derived from the generic
|
|
533
|
+
* launch enum and the raw child outcome through one explicit
|
|
534
|
+
* producer-to-outcome mapping. The run-line projection and the journal
|
|
535
|
+
* evaluator both use this mapping unchanged, so a line is terminal exactly
|
|
536
|
+
* when the producer's own outcome says so; no response is ever converted into
|
|
537
|
+
* success to finalize a line.
|
|
538
|
+
*
|
|
539
|
+
* - `completed`: a supported successful completion (terminal).
|
|
540
|
+
* - `terminal-stop`: blocked, failed, cancelled, timed-out or invalid-run
|
|
541
|
+
* abort after acceptance (terminal history).
|
|
542
|
+
* - `blocked-before-start`: the existing pre-start rejection contract; no
|
|
543
|
+
* child exists, so no outcome is required (terminal).
|
|
544
|
+
* - `live`: planned, running, pending, or `NEEDS_CONTEXT` whose accepted
|
|
545
|
+
* handle is still open (non-terminal).
|
|
546
|
+
* - `unrecognized`: an outcome outside the mapping (non-terminal; it fails
|
|
547
|
+
* closed at completion instead of being read as success).
|
|
548
|
+
*/
|
|
549
|
+
export type DispatchTerminalClassification = 'completed' | 'terminal-stop' | 'blocked-before-start' | 'live' | 'unrecognized';
|
|
550
|
+
export interface DispatchOutcomeClassification {
|
|
551
|
+
classification: DispatchTerminalClassification;
|
|
552
|
+
terminal: boolean;
|
|
553
|
+
}
|
|
554
|
+
export declare const DISPATCH_COMPLETED_OUTCOMES: ReadonlySet<string>;
|
|
555
|
+
export declare const DISPATCH_TERMINAL_STOP_OUTCOMES: ReadonlySet<string>;
|
|
556
|
+
export declare const DISPATCH_LIVE_OUTCOMES: ReadonlySet<string>;
|
|
557
|
+
export declare function classifyDispatchOutcome(launchStatus: string, childOutcome: string | null): DispatchOutcomeClassification;
|
|
525
558
|
//# sourceMappingURL=generic-dispatch-record.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-dispatch-record.d.ts","sourceRoot":"","sources":["../../../src/providers/identity/generic-dispatch-record.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"generic-dispatch-record.d.ts","sourceRoot":"","sources":["../../../src/providers/identity/generic-dispatch-record.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAgB1B;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAuC,CAAC;AAyJvE;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAOpE;AAUD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEjC,CAAC;AAEZ;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC,EAChE,OAAO,EAAE,CAAC,CAAC,aAAa,GACvB,IAAI,CAyDN;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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