Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
00c2c14
feat: DAG-based post-processing + taxonomy handler
cedricvidal Jun 9, 2026
e9bf6ad
feat: add taxonomy API route and archive bundling (Phase 3)
cedricvidal Jun 9, 2026
2273286
fix: taxonomy handler Dockerfile and docker-compose dev setup
cedricvidal Jun 9, 2026
4507fb8
feat: add taxonomy tab to portal run detail view
cedricvidal Jun 9, 2026
3756ccc
refactor: move handler registration from migration to worker registra…
cedricvidal Jun 9, 2026
d02ec68
refactor: YAML-driven handler registration via scheduler endpoint
cedricvidal Jun 9, 2026
02900bd
feat: scheduler triggers report generation when handler DAG drains
cedricvidal Jun 9, 2026
c6cd9b2
feat(taxonomy): add dev CLI, API-based ATIF fetch, and default to gpt…
cedricvidal Jun 10, 2026
07127ae
chore: remove taxonomy changes (split to #1053)
cedricvidal Jun 24, 2026
ca11ff0
Merge remote-tracking branch 'origin/main' into cedricvidal-microsoft…
cedricvidal Jun 24, 2026
d1ea709
merge: bring in origin/main
cedricvidal Jun 25, 2026
e87bb85
Merge remote-tracking branch 'origin/main' into cedricvidal-microsoft…
cedricvidal Jun 26, 2026
8901933
Merge remote-tracking branch 'origin/main' into cedricvidal-microsoft…
cedricvidal Jun 29, 2026
688fbb5
fix(scheduler): allow autoBackfill to re-dispatch runs with outdated …
cedricvidal Jul 1, 2026
d3e5d78
Merge remote-tracking branch 'origin/main' into cedricvidal-microsoft…
cedricvidal Jul 1, 2026
7288b65
fix(scheduler): ignore stale handler completion notifications
cedricvidal Jul 1, 2026
5c64dea
fix(post-processing): enforce worker-entrypoint idempotency
cedricvidal Jul 1, 2026
fe5b9ee
docs(post-processing): clarify enqueue and claim boundaries
cedricvidal Jul 1, 2026
87df1b0
perf(scheduler): cache handler topology with short TTL
cedricvidal Jul 1, 2026
a56c0be
perf(scheduler): raise handler topology cache TTL to 5min, make it en…
cedricvidal Jul 1, 2026
b55299c
docs: call out single-replica limitation of the handler topology cache
cedricvidal Jul 1, 2026
ab696a2
feat(scheduler): cap notify/register request body size (64 KB)
cedricvidal Jul 1, 2026
726e0cd
fix(post-processing): let worker claim scheduler-queued runs
cedricvidal Jul 1, 2026
8b86d2d
Merge remote-tracking branch 'origin/main' into cedricvidal-microsoft…
cedricvidal Jul 8, 2026
0531a0a
chore(db-migrations): renumber handler-DAG migrations to 025-027
cedricvidal Jul 10, 2026
90dfca4
Merge origin/main into cedricvidal-microsoft/pp-dag-orchestration
cedricvidal Oct 11, 2026
17e8c50
feat(portal): add Copilot SDK AI backend
cedricvidal Oct 11, 2026
15f5c8d
docs: clarify Copilot SDK production tradeoffs
cedricvidal Oct 11, 2026
8f30583
fix(api): harden Copilot pool startup
cedricvidal Oct 11, 2026
4b28413
fix(api): bound Copilot force-stop cleanup
cedricvidal Oct 11, 2026
2ca370b
Merge remote-tracking branch 'origin/feat/portal-copilot-ai' into ced…
cedricvidal Oct 12, 2026
a6ab495
Merge main into feat/portal-copilot-ai for migration synchronization
cedricvidal Oct 21, 2026
6375653
Merge feat/portal-copilot-ai into pp-dag-orchestration
cedricvidal Oct 21, 2026
2afb5cf
docs: share agent code readability instructions
cedricvidal Oct 21, 2026
bc06e8a
Merge shared agent guidance into feat/portal-copilot-ai
cedricvidal Oct 21, 2026
21ad65b
Merge shared agent guidance into pp-dag-orchestration
cedricvidal Oct 21, 2026
fd11640
Merge main ancestry after shared agent guidance squash merge
cedricvidal Oct 22, 2026
2ef7ea8
feat(taxonome): extract standalone foundation below consumers
cedricvidal Oct 28, 2026
6e0dac7
fix(website): add missing license headers
cedricvidal Nov 4, 2026
3a702c0
Merge fd11640052e10203b7e33e24be10741a43f86afa into 05d9435005711a96c…
cedricvidal Nov 4, 2026
ac8c6d2
merge: sync portal copilot AI base
cedricvidal Nov 4, 2026
fd40d39
chore: refresh PR mergeability
cedricvidal Nov 4, 2026
4f736ff
merge: propagate parent stack merge
cedricvidal Nov 4, 2026
4c7433d
Merge main into feat/portal-copilot-ai to refresh stacked checks
cedricvidal Nov 5, 2026
954af63
Merge 4c7433df5631f7f94a44bcb567a400088da1f8a8 into 16dd16f51e8a71751…
cedricvidal Nov 5, 2026
e499844
merge: refresh stacked parent checks
cedricvidal Nov 5, 2026
07a0eae
Merge refreshed post-processing DAG parent into Taxonome foundation
cedricvidal Nov 5, 2026
cbca7d0
docs(taxonome): publish workflow guide and canonical catalog references
cedricvidal Nov 5, 2026
2be01e4
Merge main into portal Copilot AI
cedricvidal Nov 5, 2026
7e12048
Merge refreshed portal Copilot AI into handler DAG
cedricvidal Nov 5, 2026
07932f8
Merge refreshed handler DAG into Taxonome foundation
cedricvidal Nov 5, 2026
1e9ab41
Merge main and regenerate the Portal API lockfile from the public reg…
cedricvidal Dec 1, 2026
b99d1ca
Do not retry exhausted Copilot acquisition or idle deadlines
cedricvidal Dec 1, 2026
47ca510
Keep standalone targets out of quality generation and resolve workspa…
cedricvidal Dec 1, 2026
3c922ed
Recover handler leases and fence artifact and terminal writes by acqu…
cedricvidal Dec 1, 2026
2326a07
Treat completion as a wake-up for the exact persisted terminal claim
cedricvidal Dec 1, 2026
0dcd985
Bound session creation and the full send with one response deadline
cedricvidal Dec 1, 2026
d46b534
Lease report intent delivery and acknowledge only the matching attemp…
cedricvidal Dec 1, 2026
a396b10
Anchor Taxonome reference excerpts to complete TypeScript declarations
cedricvidal Dec 1, 2026
318ccce
Evict failed Copilot credentials without replaying on another provider
cedricvidal Dec 1, 2026
84bdc25
Move Taxonome schema consumers to patched Zod 4.6.6
cedricvidal Dec 1, 2026
6d92d61
Document model entitlement limits and explicit override for Taxonome
cedricvidal Dec 1, 2026
27c3ec0
Rotate bounded report scans by indexed request ID and wrap at a fixed…
cedricvidal Dec 1, 2026
340b08d
Use packaged handler metadata for both registration and execution
cedricvidal Dec 1, 2026
09e9232
Validate Portal Copilot model overrides against the client catalog
cedricvidal Dec 1, 2026
b7a32dc
Describe criteria generation through the configured Portal AI provider
cedricvidal Dec 1, 2026
564b37a
Gate automatic reports on a durable first-deploy epoch and a register…
cedricvidal Dec 1, 2026
b3eeb16
Preserve the parent tar-stream production resolution
cedricvidal Dec 1, 2026
c1c992c
Isolate handler queue failures and authenticate completion callbacks
cedricvidal Dec 1, 2026
23e35bf
Make the explicit seven-session Portal AI smoke fail closed
cedricvidal Dec 1, 2026
a118e0e
Restore the legacy v1 service only on rollback and retire its dispatc…
cedricvidal Dec 1, 2026
f3f23d4
Escape untrusted fields before rendering CLI text and progress
cedricvidal Dec 1, 2026
07f7eab
Authenticate scheduler control requests and validate handler registra…
cedricvidal Dec 1, 2026
2a99ded
Exercise fenced takeover, DAG continuation and crash recovery on disp…
cedricvidal Dec 1, 2026
eae5919
Bound cancellable SDK startup and session acquisition, including late…
cedricvidal Dec 1, 2026
edc0cb0
Parse scheduler origin-form targets inside the request handler (B9)
cedricvidal Dec 1, 2026
69bde88
Require deployed scheduler service URLs instead of guessing Kubernete…
cedricvidal Dec 1, 2026
7137675
Join Portal runtime retirements and retain a pending graceful exit
cedricvidal Dec 1, 2026
2586770
Document handler fences, deployment cutover and the logical report de…
cedricvidal Dec 1, 2026
a381ba5
Prove queue waits do not consume the Copilot response budget
cedricvidal Dec 1, 2026
a35dce6
Persist attempt-scoped report plans and recoverable queue delivery
cedricvidal Dec 1, 2026
9a90731
Wait for registered dependency versions before draining or dispatchin…
cedricvidal Dec 1, 2026
1c799ee
Fence downstream deliveries at pickup and publication; recover stale …
cedricvidal Dec 1, 2026
d77a6b6
Re-evaluate automatic report templates in the destination project on …
cedricvidal Dec 1, 2026
774bd69
Lease report generation and fence publication across duplicate queue …
cedricvidal Dec 1, 2026
38f6c2c
Validate fair scans and duplicate report consumption through real sto…
cedricvidal Dec 1, 2026
4fe65d3
Exercise a YAML-only upgrade with separately initialized worker images
cedricvidal Dec 1, 2026
a66d7df
Require confirmed report-trigger completion before acknowledging an i…
cedricvidal Dec 1, 2026
198dee6
Confirm Portal Copilot CLI exit before releasing runtime capacity
cedricvidal Dec 1, 2026
f3e376c
Merge reviewed #1482 changes into #1147
cedricvidal Dec 1, 2026
99a4b5f
Merge reviewed #1147 changes into #1595
cedricvidal Dec 1, 2026
cb6a960
Decode Docker log frames before parsing ACP integration results
cedricvidal Dec 2, 2026
9f30c14
Merge current post-processing DAG parent into Taxonome foundation
cedricvidal Dec 2, 2026
c3a5240
Generate the ATIF Scope extension field reference from its input schemas
cedricvidal Dec 2, 2026
1dd6519
Route CI criteria generation and grading through GitHub Models
cedricvidal Dec 2, 2026
95a8f91
Merge deterministic OpenAPI generation from main for the stacked API …
cedricvidal Dec 2, 2026
f7d8911
Merge Portal AI parent and regenerate the DAG report-trigger OpenAPI …
cedricvidal Dec 2, 2026
da3e28b
Merge the resolved handler DAG parent into the Taxonome foundation
cedricvidal Dec 2, 2026
757e969
Evaluate criteria generation and grading in separate Copilot SDK sess…
cedricvidal Dec 2, 2026
4ead6ba
Integrate reviewed parent fixes for #1147
cedricvidal Dec 2, 2026
ff9d0c1
Integrate reviewed parent fixes for #1595
cedricvidal Dec 2, 2026
657c370
Give independent Taxonome CLI invocations separate test budgets
cedricvidal Dec 2, 2026
4700087
Merge integration/taxonomy into Taxonome foundation
cedricvidal Dec 3, 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
6 changes: 6 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ on:
branches: ["main", "integration/*"]
paths:
- "website/**"
- "packages/ax-taxonomy/taxonomy/**"
- "packages/ax-taxonomy/src/**"
- "packages/taxonomy-engine/src/**"
- ".github/workflows/static.yml"
pull_request:
branches: ["main", "integration/*"]
paths:
- "website/**"
- "packages/ax-taxonomy/taxonomy/**"
- "packages/ax-taxonomy/src/**"
- "packages/taxonomy-engine/src/**"
- ".github/workflows/static.yml"
workflow_dispatch:

Expand Down
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ not open the PR against the fork unless the user explicitly asks you to.
| [docs/architecture/overview.md](docs/architecture/overview.md) | System architecture, component interactions, data flow |
| [docs/architecture/app-design.md](docs/architecture/app-design.md) | Data models, API design, package dependency graph |
| [docs/architecture/prompt-evaluations.md](docs/architecture/prompt-evaluations.md) | Static prompt quality, datasets, commands, and maintenance rules |
| [docs/architecture/taxonome.md](docs/architecture/taxonome.md) | Standalone Taxonome engine, catalog, CLI, ATIF/JSON API, evals and replay |
| [docs/architecture/trajectory-taxonomy-format.md](docs/architecture/trajectory-taxonomy-format.md) | Normative taxonomy authoring, shared assessments, typed ATIF evidence, JSONPath, hashing, and interoperability contract |
| [docs/architecture/data-organization-projects.md](docs/architecture/data-organization-projects.md) | Projects (a single container) to isolate/group data within a cluster; composes with data-tags and auth-rbac |
| [docs/architecture/auth-rbac.md](docs/architecture/auth-rbac.md) | Explicit-login IdP auth, Redis user-access cache, Portal handshake; deferred RBAC/internal-token roadmap |
| [docs/architecture/vscode-web-worker.md](docs/architecture/vscode-web-worker.md) | XState chat machine, GitHub auth flow, ARIA snapshots |
Expand Down
15 changes: 13 additions & 2 deletions NOTICE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions apps/taxonome/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Taxonome

Standalone experimental YAML taxonomy CLI for plain ATIF and existing Scope run
archives. The catalog evaluates Skipped Invocation, Wrong Discovery, and
Content Misused through Ax/Copilot SDK, plus Discovered, Malformed Invocation,
and Timeout through deterministic TypeScript. Explicit local or
installed-package plugins can add custom deterministic handlers without
modifying Taxonome. No Scope backing services are needed.

Start with the website's [Using Taxonome guide](../../website/src/content/docs/guides/taxonome.mdx)
for practical workflows and authoring a custom taxonomy. The
[default taxonomy reference](../../website/src/content/docs/reference/taxonome-elements.mdx)
generates its element/file list and full YAML sources from the catalog.

The generic runtime is `packages/taxonomy-engine`; the shipped
agent-behavior definitions and deterministic handlers are isolated in
`packages/ax-taxonomy`. The CLI explicitly composes both packages.

See [the architecture and usage guide](../../docs/architecture/taxonome.md)
for YAML and `extra.scope` contracts, archive safety, plugin authoring,
build/run/eval/optimization/replay commands, the typed API, evidence policy,
and scope limitations. A runnable custom project lives in
[`examples/taxonome-custom-handler`](../../examples/taxonome-custom-handler/README.md).
The language-neutral authoring/result/reference contract is the
[Trajectory Taxonomy Format](../../docs/architecture/trajectory-taxonomy-format.md).

`run`, `eval`, and `optimize` default to concise human-readable output even
when redirected. Pass `--json` for their complete machine-readable shapes.
`readout` always emits JSON and can optionally write Markdown.

`taxonome run` auto-detects single-run and multi-run Scope archives. Single-run
stdout remains unchanged. Multi-run archives require `--output-dir`, write one
atomic `<request-id>--<run-id>.json` record per root, and use
`--concurrency <1..16>` (default `4`). Compatible successful records resume
automatically without being rewritten; errors, corrupt/stale records, and
configuration or evidence-fingerprint mismatches are retried. Pass `--force`
to recompute every root. Archive scanning streams and discards workspace
snapshots, nested code archives, HAR, logs, and raw chat while retaining only
`run.yaml`, ATIF trajectories, and tool-call evidence.

Archive progress is visible before evaluation starts. TTYs use one throttled
scanner line, then switch to one stable row per archive root/run. Each row
shows final/run state, selected-element `DONE/RUN/WAIT` counts, and the active
element with `Prompt` or `Code` distinction. Rows remain in archive order;
narrow/short terminals keep active and failed runs visible and summarize
hidden rows. Non-TTY and `--json` modes emit bounded, plain append-only scan,
run, and element lifecycle lines on stderr. JSON stdout remains one document.

`--concurrency` bounds active runs, not elements. A worker evaluates one run's
selected elements sequentially in taxonomy order, reusing only its own healthy
prompt transport. An authored element error is recorded and later elements
continue when safe; poisoned transports are closed and replaced before the
next prompt element or run.

`taxonome readout` requires `--taxonomy` plus repeatable `--inputs` selections
covering the exact plain ATIF files or local Scope archives used by results.
Result arguments accept explicit files, directories, and quoted globs.
Taxonome matches normalized input identity/fingerprint, revalidates every
role/path/type/constraint, and resolves source attribution from ATIF.
Included error records add a failed-runs section and cause a nonzero exit while
preserving the partial JSON/Markdown report.

Prompt commands use `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` when
set; otherwise they securely resolve the active GitHub CLI account. No token is
printed or persisted.

Element preflight rules are authored under optional `preconditions` and
implemented as pure modules in
`packages/taxonomy-engine/src/preconditions/`, with one file per flag plus the
ordered evaluator.

From `packages/ax-taxonomy`, `pnpm eval` delegates directly to native
`taxonome eval` with quoted input/ground-truth globs. Add
`-- --element <stable-id>` to filter applicability to one element. Native eval
streams input/element progress, continues after reviewed failures, and keeps
`pnpm eval -- --json` as one clean machine document.

`--concurrency <1..16>` defaults to four global workers. Human TTYs receive a
fixed numeric in-place dashboard; non-TTY streams receive append-only
completion events. After a TTY dashboard, only a compact evaluation-level
Result line is printed; non-TTY human output retains detailed input rows.
Prompt workers own independent lazy SDK transports, while deterministic-only
workers never initialize the SDK.

The [recorded findings](../../docs/architecture/taxonome.md#recorded-spike-findings-2026-10-21)
link the actual SDK baselines, complete Ax artifacts, fresh final comparisons,
the historical one-off 256/500-call ledger, and deterministic JSON/Markdown
preview. The current CLI does not expose that ledger/budget feature.
24 changes: 24 additions & 0 deletions apps/taxonome/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "taxonome",
"version": "0.1.0",
"private": true,
"type": "module",
"bin": {
"taxonome": "dist/index.js"
},
"scripts": {
"build": "tsc",
"lint": "tsc --noEmit"
},
"dependencies": {
"ax-taxonomy": "workspace:*",
"commander": "14.0.3",
"taxonomy-engine": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.7.0",
"@types/tar-stream": "^3.1.4",
"tar-stream": "3.1.7",
"typescript": "^5.6.2"
}
}
57 changes: 57 additions & 0 deletions apps/taxonome/src/cli-runtime.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { describe, expect, it, vi } from "vitest";
import {
createHandlerRegistry,
loadTaxonomy,
parseScopeAtif,
type PromptExecutionResult,
type PromptExecutor,
} from "taxonomy-engine";
import { createLazyPromptExecutor } from "./cli.js";

describe("Taxonome lazy prompt runtime wrapper", () => {
it("forwards AbortSignal through the exact lazy executor layer", async () => {
const taxonomy = await loadTaxonomy(
new URL(
"../../../packages/taxonomy-engine/fixtures/test-taxonomy.yaml",
import.meta.url,
).pathname,
{ handlers: createHandlerRegistry() },
);
const element = taxonomy.elementById.get("test-observation")!;
const input = {
taxonomy,
atif: parseScopeAtif({
schema_version: "ATIF-v1.7",
session_id: "lazy-signal",
agent: { name: "fixture", version: "1.0.0" },
steps: [{ step_id: 1, source: "user", message: "Test." }],
}),
};
const controller = new AbortController();
const underlying: PromptExecutor = {
evaluate: vi.fn(async (_element, _input, signal) => {
expect(signal).toBe(controller.signal);
return {
status: "succeeded",
candidate: { state: "completed", observed: false },
attempts: [{
attempt: 1,
kind: "initial",
outcome: "succeeded",
}],
} satisfies PromptExecutionResult;
}),
};
const start = vi.fn(async () => underlying);
const lazy = createLazyPromptExecutor(start);

await lazy.evaluate(element, input, controller.signal);
await lazy.evaluate(element, input, controller.signal);
expect(start).toHaveBeenCalledOnce();
expect(start).toHaveBeenCalledWith(controller.signal);
expect(underlying.evaluate).toHaveBeenCalledTimes(2);
});
});
Loading
Loading