feat(research): cut over canonical runtime and enforce agent budgets
This commit is contained in:
parent
ab08db82fd
commit
bbf0dd4453
103 changed files with 6138 additions and 3112 deletions
|
|
@ -39,6 +39,7 @@ import {
|
|||
PREVIEW_RUN_ID,
|
||||
} from './experiment-input';
|
||||
import { mapExperimentRetry, parseExperimentRetry, retryColumns } from './experiment-retry';
|
||||
import { lockExperimentResearchAgent, lockResearchAgent } from './research-agent-budget';
|
||||
import { RunReproductionError, verifyReproductionInputs } from './run-reproduction';
|
||||
import { StrategyCatalogError } from './strategy-catalog.service';
|
||||
import { parseChronologicalValidation, prepareChronologicalValidation } from './validation-preview';
|
||||
|
|
@ -222,6 +223,7 @@ export class ExperimentsService {
|
|||
submission,
|
||||
});
|
||||
return this.database.transaction(async client => {
|
||||
await lockResearchAgent(client, receipt.principal);
|
||||
const replay = async () => {
|
||||
const row = (
|
||||
await client.query(
|
||||
|
|
@ -412,6 +414,7 @@ export class ExperimentsService {
|
|||
...input,
|
||||
});
|
||||
return this.database.transaction(async client => {
|
||||
await lockResearchAgent(client, receipt.principal);
|
||||
const replay = async (): Promise<WorkbenchExperimentRetryResult | null> => {
|
||||
const saved = (
|
||||
await client.query(
|
||||
|
|
@ -437,6 +440,7 @@ export class ExperimentsService {
|
|||
if (previous) {
|
||||
return previous;
|
||||
}
|
||||
await lockExperimentResearchAgent(client, id, receipt.principal);
|
||||
// Same ordering as admission, followed by the existing original-family verification lock.
|
||||
const parent = (
|
||||
await client.query(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue