fix(scheduler): relax prompt validation and correct default lint command

- Update `scripts/agent/run-scheduler-cycle.mjs` to allow prompt files to start with a blockquote (`>`) in addition to a markdown header (`#`), unblocking agents with shared contract headers.
- Fix default validation command from `['npm', 'run', 'lint']` to `['npm run lint']` to prevent `npm` usage errors.
- Include daily task logs demonstrating successful scheduler cycle execution (skipping failed locks and completing `load-test-agent`).

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-16 16:33:37 +00:00
1 parent e022a51cc6
commit d02fa41079
5 files changed
+55 -3

No files matched your search

+3 -3
View File
@@ -227,12 +227,12 @@ async function validatePromptFile(promptPath) {
const lines = String(content).split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
const firstLine = lines[0] || '';
if (!firstLine.startsWith('#')) {
if (!firstLine.startsWith('#') && !firstLine.startsWith('>')) {
return {
ok: false,
category: FAILURE_CATEGORY.PROMPT_SCHEMA,
reason: 'Prompt file schema validation failed',
detail: `Prompt not executed; expected markdown heading on first non-empty line in ${promptPath}.`,
detail: `Prompt not executed; expected markdown heading or blockquote on first non-empty line in ${promptPath}.`,
};
}
@@ -454,7 +454,7 @@ async function getSchedulerConfig(cadence, { isInteractive }) {
missingHandoffCommandForMode,
validationCommands: Array.isArray(scheduler.validationCommandsByCadence?.[cadence])
? scheduler.validationCommandsByCadence[cadence].filter((cmd) => typeof cmd === 'string' && cmd.trim())
: ['npm', 'run', 'lint'],
: ['npm run lint'],
lockRetry: {
maxRetries,
backoffMs,