Skip to content

Commit e921100

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@5c35c2acbaabfe881963719cf12afa07ee1b9f47
1 parent a5d4f3b commit e921100

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎common/src/ads/sponsored-skill-rollout-receipt.ts‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
* grandfather list until it is seeded;
1010
* - `missing` / `failed`: the rollout skips it.
1111
*
12-
* STUB until Track B lands: every version answers `missing`, so the rollout
13-
* moves nothing on its own (only an operator pin, which bypasses this check,
14-
* does). Track B replaces the body with a lookup in its receipts index; the
15-
* signature is the contract.
12+
* Reads Track B's index (`sponsoredSkillBenchStanding`): `pass` is a full or
13+
* sweep receipt whose skill sha256 is the version's lock line, with a passing
14+
* verdict. The public export overlays `receipts.ts` with one that answers
15+
* `missing`, so a public build rolls nothing.
1616
*/
1717

18+
import { sponsoredSkillBenchStanding } from './sponsored-skills/receipts'
19+
1820
import type { SponsoredSkill } from './sponsored-skill'
1921

2022
export type SponsoredSkillRolloutReceipt =
@@ -24,9 +26,9 @@ export type SponsoredSkillRolloutReceipt =
2426
| 'failed'
2527

2628
export function sponsoredSkillRolloutReceipt(
27-
_skill: SponsoredSkill,
29+
skill: SponsoredSkill,
2830
): SponsoredSkillRolloutReceipt {
29-
return 'missing'
31+
return sponsoredSkillBenchStanding(skill)
3032
}
3133

3234
/** Whether the receipt lets the rollout move a campaign to this version. */

0 commit comments

Comments
 (0)