Skip to content

Commit 9900b1b

Browse files
committed
ci: /verify runs all tiers (0-3) via app.verify pr
Replace the Tier 0-only score calls with a single 'app.verify pr', which reports Tier 0/1/2/3 (Tier 3 dry-run) for the PR's changed records + a full baseline.
1 parent c6a0af0 commit 9900b1b

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/techapi-verify-comment.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,17 @@ jobs:
6666
python-version: "3.12"
6767

6868
# app.verify is a stdlib-only TechAPI module; run it from the checkout.
69-
- name: Run Tier 0 verification
69+
# `pr` runs all tiers (0 offline score, 1 source-URL liveness, 2 external
70+
# cross-reference, 3 promotion DRY-RUN) over the PR's changed records, plus
71+
# a full-dataset Tier 0 baseline. Network tiers are capped and never write.
72+
- name: Run all-tiers verification
7073
id: verify
7174
run: |
7275
cd TechAPI
7376
git fetch origin main --depth=1 || true
7477
{
7578
echo 'report<<VERIFY_EOF'
76-
echo "### Changed records in this PR"
77-
echo ""
78-
python -m app.verify score --changed --no-cache --format md || echo "_app.verify unavailable on this ref._"
79-
echo ""
80-
echo "### Full-dataset baseline"
81-
echo ""
82-
python -m app.verify score --no-cache --format md || true
79+
python -m app.verify pr || echo "_app.verify unavailable on this ref._"
8380
echo VERIFY_EOF
8481
} >> "$GITHUB_OUTPUT"
8582
@@ -96,13 +93,12 @@ jobs:
9693
const marker = '<!-- techengine-verify-command -->';
9794
const report = (process.env.REPORT || '').trim() || '(no output)';
9895
const by = process.env.REQUESTED_BY || 'someone';
96+
// `pr` already emits its own H2 heading + tier sections; just frame it.
9997
const body = [
10098
marker,
101-
'## 🔎 Data verification — Tier 0 (on demand)',
102-
'',
103-
`Requested by @${by} via \`/verify\` · scored by \`app.verify\`, posted by **TechEngineBot**. Informational only — the structural gate (\`app.validate\`) is separate.`,
104-
'',
10599
report,
100+
'',
101+
`<sub>Requested by @${by} via \`/verify\` · scored by \`app.verify\`, posted by **TechEngineBot**. Informational only — the structural gate (\`app.validate\`) is separate; Tier 3 here is dry-run.</sub>`,
106102
].join('\n');
107103
const owner = 'GetTechAPI';
108104
const repo = 'TechAPI';

0 commit comments

Comments
 (0)