mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 18:15:40 +00:00
fix(agy): align responsibility flow with issue #509
- replace issue #622/#619 references with issue #509 across CLI and dashboard - shorten acknowledgement phrase to "I ACCEPT AGY RISK" for faster typing - rename acknowledgement payload field to reviewedIssue509 and update tests
This commit is contained in:
1 parent
d3c271ab2c
commit
3148014c6c
7 files changed
+28
-44
No files matched your search
@@ -42,7 +42,7 @@ describe('antigravity-responsibility', () => {
|
||||
it('accepts a complete acknowledgement payload', () => {
|
||||
const result = validateAntigravityRiskAcknowledgement({
|
||||
version: ANTIGRAVITY_ACK_VERSION,
|
||||
reviewedIssue622: true,
|
||||
reviewedIssue509: true,
|
||||
understandsBanRisk: true,
|
||||
acceptsFullResponsibility: true,
|
||||
typedPhrase: ANTIGRAVITY_ACK_PHRASE,
|
||||
@@ -54,10 +54,10 @@ describe('antigravity-responsibility', () => {
|
||||
it('accepts phrase with extra spacing and lowercase', () => {
|
||||
const result = validateAntigravityRiskAcknowledgement({
|
||||
version: ANTIGRAVITY_ACK_VERSION,
|
||||
reviewedIssue622: true,
|
||||
reviewedIssue509: true,
|
||||
understandsBanRisk: true,
|
||||
acceptsFullResponsibility: true,
|
||||
typedPhrase: ' i accept full responsibility ',
|
||||
typedPhrase: ' i accept agy risk ',
|
||||
});
|
||||
|
||||
expect(result.valid).toBeTrue();
|
||||
@@ -66,7 +66,7 @@ describe('antigravity-responsibility', () => {
|
||||
it('rejects payload when checklist steps are not fully completed', () => {
|
||||
const result = validateAntigravityRiskAcknowledgement({
|
||||
version: ANTIGRAVITY_ACK_VERSION,
|
||||
reviewedIssue622: true,
|
||||
reviewedIssue509: true,
|
||||
understandsBanRisk: false,
|
||||
acceptsFullResponsibility: true,
|
||||
typedPhrase: ANTIGRAVITY_ACK_PHRASE,
|
||||
@@ -79,7 +79,7 @@ describe('antigravity-responsibility', () => {
|
||||
it('rejects payload when version is outdated', () => {
|
||||
const result = validateAntigravityRiskAcknowledgement({
|
||||
version: 'older-version',
|
||||
reviewedIssue622: true,
|
||||
reviewedIssue509: true,
|
||||
understandsBanRisk: true,
|
||||
acceptsFullResponsibility: true,
|
||||
typedPhrase: ANTIGRAVITY_ACK_PHRASE,
|
||||
@@ -92,7 +92,7 @@ describe('antigravity-responsibility', () => {
|
||||
it('rejects payload when phrase does not match', () => {
|
||||
const result = validateAntigravityRiskAcknowledgement({
|
||||
version: ANTIGRAVITY_ACK_VERSION,
|
||||
reviewedIssue622: true,
|
||||
reviewedIssue509: true,
|
||||
understandsBanRisk: true,
|
||||
acceptsFullResponsibility: true,
|
||||
typedPhrase: 'I AGREE',
|
||||
|
||||
Reference in new issue
Block a user