Repository navigation
Enforce bounded context and reviewed records; refine field guidance - #107
Conversation
| // identity so "customer sponsor signs off" cannot become a named person. | ||
| if (!require('./lib/value-ledger').acceptanceName(prose)) return '' | ||
| const identity = prose.replace(/\s+signs?(?:\s+off)?\b.*$/i, '').trim() | ||
| if (!require('./lib/value-ledger').acceptanceName(identity)) return '' |
There was a problem hiding this comment.
🟡 Generic roles become signer authority
proposedSigner accepts roles such as “operations manager” because acceptanceName treats them as names. Applying the proposal writes a role into the authority fields.
Learn more
The debrief signer field represents a named customer-side authority. acceptanceName validates ledger assertions, so it intentionally accepts broad text that is not a pending token or generic role from its short denylist. The stricter looksLikePersonName already validates signer identities and rejects role tokens.
Example: signer: operations manager signs off produces identity = "operations manager". The current check accepts it, then setSigner records it in success.md and stakeholders.md. The review must instead retain this line as an uncertain context note.
Recommended fix: Validate the extracted identity with looksLikePersonName, while retaining the earlier acceptanceName(prose) check for pending and uncertain wording.
| if (!require('./lib/value-ledger').acceptanceName(identity)) return '' | |
| if (!looksLikePersonName(identity)) return '' |
Was this helpful? React with 👍 or 👎 to provide feedback.
| // identity so "customer sponsor signs off" cannot become a named person. | ||
| if (!require('./lib/value-ledger').acceptanceName(prose)) return '' | ||
| const identity = prose.replace(/\s+signs?(?:\s+off)?\b.*$/i, '').trim() | ||
| if (!require('./lib/value-ledger').acceptanceName(identity)) return '' |
There was a problem hiding this comment.
🟡 Generic roles become signer authority
proposedSigner accepts roles such as “operations manager” because acceptanceName treats them as names. Applying the proposal writes a role into the authority fields.
Learn more
The debrief signer field represents a named customer-side authority. acceptanceName validates ledger assertions, so it intentionally accepts broad text that is not a pending token or generic role from its short denylist. The stricter looksLikePersonName already validates signer identities and rejects role tokens.
Example: signer: operations manager signs off produces identity = "operations manager". The current check accepts it, then setSigner records it in success.md and stakeholders.md. The review must instead retain this line as an uncertain context note.
Recommended fix: Validate the extracted identity with looksLikePersonName, while retaining the earlier acceptanceName(prose) check for pending and uncertain wording.
| if (!require('./lib/value-ledger').acceptanceName(identity)) return '' | |
| if (!looksLikePersonName(identity)) return '' |
Was this helpful? React with 👍 or 👎 to provide feedback.
| const applyIdx = args.indexOf('--apply') | ||
| const apply = applyIdx !== -1 | ||
| if (apply) args.splice(applyIdx, 1) | ||
| if (smart && apply) throw new Error('run --smart first, review the proposal, then confirm with --apply in a separate command') |
There was a problem hiding this comment.
🟡 Session recording aborts at debrief
The new --smart --apply rejection makes the documented recording session exit during debrief. Re-recording the usage walkthrough now always fails.
Learn more
The usage guide links media/record-session.sh as the reproducible source for the embedded session recording. Its run helper aborts when any command exits nonzero, and the session still invokes debrief kickoff-notes.md --smart --apply.
Example: Running media/record-session.sh --play saves the proposal at the first smart command. The next combined command now exits with the new error, so the script stops before discovery, receipts, doctor, and dashboard.
Recommended fix: Update the session sequence to run debrief --review after the proposal and then debrief --apply without a notes path. Keep the commands separate so the recording demonstrates the new review boundary.
Was this helpful? React with 👍 or 👎 to provide feedback.
Context packets could exceed their byte ceiling when many truncation markers were needed. A combined smart/apply command also skipped the separate review opportunity, and uncertain signer prose could populate authority fields. This change caps the full output, requires separate proposal and apply commands, keeps unsourced approval stamps as CLAIM, and preserves sources on valid named signers.
The notes walkthrough now explains the review/save boundary. Field guidance uses risk-appropriate verification, model cost comparisons, rollout and recovery instead of fixed thresholds, while retaining human confirmation and release authority.
Validation: all 344 tests passed with no skips; structural checks, context-budget benchmark, CLI routing smoke and fictional demo passed. Independent code and method reviews completed. These checks do not establish live-model interpretation quality or customer acceptance.
This PR updates GitHub source only; no version tag or npm publication.