Skip to content

Commit f8a0279

Browse files
committed
fix(release): keep sanitized promotion CI-compatible
Preserve dev's model catalog without semantic merge duplication and make live-team repository audits conditional when the sanitized main tree omits .squad. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 58833b4b-f8e7-42b8-bf04-9121f362f68c
1 parent 3df300e commit f8a0279

4 files changed

Lines changed: 23 additions & 27 deletions

File tree

‎packages/squad-sdk/src/config/models.ts‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ export const MODEL_CATALOG: ModelInfo[] = [
195195
cost: 10,
196196
speed: 3,
197197
},
198-
// gpt-5.6 family — CLI-observed reachable models (2026-07-13).
199-
// githubCategory per live Copilot API (canonical billing axis):
200-
// sol=powerful, terra=versatile, luna=lightweight.
201198
{
202199
id: 'gpt-6-sol',
203200
tier: 'premium',
@@ -210,20 +207,6 @@ export const MODEL_CATALOG: ModelInfo[] = [
210207
{
211208
id: 'claude-opus-4.8',
212209
tier: 'premium',
213-
provider: 'openai',
214-
family: 'gpt',
215-
githubCategory: 'powerful',
216-
vision: true,
217-
useCases: ['general purpose', 'code generation', 'analysis'],
218-
cost: 6,
219-
speed: 7,
220-
pricing: { inputPerToken: 0.000005, outputPerToken: 0.00003 },
221-
},
222-
223-
// Standard tier (quality) — versatile/powerful category (cost)
224-
{
225-
id: 'claude-sonnet-5',
226-
tier: 'standard',
227210
provider: 'anthropic',
228211
family: 'claude',
229212
githubCategory: 'powerful',

‎test/agent-provenance.test.ts‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createHash } from 'node:crypto';
2-
import { readFileSync } from 'node:fs';
2+
import { existsSync, readFileSync } from 'node:fs';
33
import { join } from 'node:path';
44
import { describe, expect, it } from 'vitest';
55
import {
@@ -40,17 +40,25 @@ function fixture(
4040
}
4141

4242
describe('agent identity provenance contract', () => {
43-
it('keeps this repository on the complete producer contract', () => {
44-
const committed = JSON.parse(
45-
readFileSync(join('.squad', 'casting', 'registry.json'), 'utf8'),
46-
) as unknown;
43+
const liveRegistryPath = join('.squad', 'casting', 'registry.json');
44+
const hasLiveRegistry = existsSync(liveRegistryPath);
45+
46+
it.runIf(hasLiveRegistry)('keeps this repository on the complete producer contract', () => {
47+
const committed = JSON.parse(readFileSync(liveRegistryPath, 'utf8')) as unknown;
4748

4849
expect(parseAgentProvenanceRegistry(committed)).toMatchObject({
4950
completeness: 'complete',
5051
registry: { schema: 'squad-agent-provenance/v1', revision: 1 },
5152
});
5253
});
5354

55+
it.skipIf(hasLiveRegistry)(
56+
'skips the live-team producer audit when the sanitized checkout has no .squad directory',
57+
() => {
58+
expect(hasLiveRegistry).toBe(false);
59+
},
60+
);
61+
5462
describe('verified activation selection', () => {
5563
const digest = (value: string): string => createHash('sha256').update(value, 'utf8').digest('hex');
5664
const section = (label: string, value: unknown): string =>

‎test/gh-aw-quality.test.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4133,9 +4133,14 @@ describe('gh-aw: canonical package integrity contract', () => {
41334133
process.cwd(),
41344134
'.github/skills/agentic-workflows/SKILL.md',
41354135
))).toBe(false);
4136-
expect(readText(join(process.cwd(), '.squad/routing.md'))).toContain(
4137-
'| Agentic workflows | agentic-workflows-dev |',
4138-
);
4136+
const liveRoutingPath = join(process.cwd(), '.squad/routing.md');
4137+
if (existsSync(liveRoutingPath)) {
4138+
expect(readText(liveRoutingPath)).toContain(
4139+
'| Agentic workflows | agentic-workflows-dev |',
4140+
);
4141+
} else {
4142+
expect(existsSync(liveRoutingPath)).toBe(false);
4143+
}
41394144
expect(existsSync(join(
41404145
process.cwd(),
41414146
'.github/skills/agentic-workflow-designer/SKILL.md',

‎test/ralph-reference-authority.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest';
2-
import { readFileSync } from 'node:fs';
2+
import { existsSync, readFileSync } from 'node:fs';
33
import { dirname, resolve } from 'node:path';
44
import { fileURLToPath } from 'node:url';
55

@@ -19,7 +19,7 @@ function readReference(path: string): string {
1919
describe('Ralph reference authority', () => {
2020
const canonical = readReference(RALPH_REFERENCES[0]);
2121

22-
for (const path of RALPH_REFERENCES) {
22+
for (const path of RALPH_REFERENCES.filter(path => existsSync(resolve(ROOT, path)))) {
2323
describe(path, () => {
2424
const content = readReference(path);
2525

0 commit comments

Comments
 (0)