Skip to content

Enforce bounded context and reviewed records; refine field guidance - #107

Merged
suboss87 merged 2 commits into
Mainfrom
fix/publish-reliability-refinement
Sep 13, 2026
Merged

suboss87 merged 2 commits into
Mainfrom
fix/publish-reliability-refinement

Conversation

@suboss87

@suboss87 suboss87 commented Sep 13, 2026 •

Copy link
Copy Markdown
Owner

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.


Devin Review

@suboss87
suboss87 merged commit ddd0220 into Main Sep 13, 2026
1 of 2 checks passed

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

Comment thread bin/fde.js
// 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 ''

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Suggested change
if (!require('./lib/value-ledger').acceptanceName(identity)) return ''
if (!looksLikePersonName(identity)) return ''
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread bin/fde.js
// 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 ''

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Suggested change
if (!require('./lib/value-ledger').acceptanceName(identity)) return ''
if (!looksLikePersonName(identity)) return ''
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread bin/fde.js
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')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@suboss87 suboss87 mentioned this pull request Sep 13, 2026
@suboss87
suboss87 deleted the fix/publish-reliability-refinement branch October 2, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant