@volter/supercode-orchestrator 0.4.143 → 0.4.144

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.
Files changed (2) hide show
  1. package/board/ci.mjs +9 -2
  2. package/package.json +1 -1
package/board/ci.mjs CHANGED
@@ -98,14 +98,21 @@ export function observeCompletionEvidence(board, id, entry, payload = {}) {
98
98
  // need a successful native deployment containing this task's native changes.
99
99
  // Retain each artifact's actual SHA, rather than calling the SDK run a native release.
100
100
  state.coverage = [];
101
- let successful;
101
+ const deployments = new Map();
102
102
  for (const rule of matchedRules) {
103
103
  if (rule.workflows.includes(receipt.workflowName)) continue;
104
- successful ??= JSON.parse(run('gh', ['run', 'list', '--repo', repo, '--status', 'success', '--limit', '100', '--json', 'databaseId,workflowName,headSha,status,conclusion,url'], path));
104
+ for (const workflow of rule.workflows) {
105
+ if (!deployments.has(workflow)) deployments.set(workflow, JSON.parse(run('gh', ['run', 'list', '--repo', repo, '--workflow', workflow, '--limit', '100', '--json', 'databaseId,workflowName,headSha,status,conclusion,url'], path)));
106
+ }
107
+ const successful = rule.workflows.flatMap(workflow => deployments.get(workflow)).filter(row => row.status === 'completed' && row.conclusion === 'success');
105
108
  const covering = successful.find(row => {
106
109
  if (!rule.workflows.includes(row.workflowName) || !configured.includes(row.workflowName)) return false;
107
110
  try {
108
111
  run('git', ['merge-base', '--is-ancestor', rule.changed_at, row.headSha], path);
112
+ try {
113
+ run('git', ['merge-base', '--is-ancestor', commit, row.headSha], path);
114
+ return true;
115
+ } catch {}
109
116
  run('git', ['merge-base', '--is-ancestor', row.headSha, commit], path);
110
117
  // Any later change in these paths requires another native deployment,
111
118
  // even when a different task authored that change.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.4.143",
3
+ "version": "0.4.144",
4
4
  "type": "module",
5
5
  "description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
6
6
  "exports": {