Skip to content

progress-state: enforce the synthetic-compaction prompt deny-list in appendHumanDecisions (library layer) #1153

Open

Description

@jflowers

Severity: LOW
Source: Divisor review on PR #1145 (divisor-adversary)
Location: .opencode/lib/progress-state.ts:784 (appendHumanDecisions, lines 784-804)

appendHumanDecisions validates source and the 16 KiB byte bounds before path derivation (correct fail-closed ordering) but does not enforce the SYNTH-006 synthetic-compaction prompt deny-list — isSyntheticCompactionPromptAnswer (uf-workflow-types.ts:789) is checked only in the record_human_decision tool layer. The current call graph routes through tool validation, so no bypass exists today; future direct library callers could skip the deny-list.

Suggested fix (from review): duplicate the check inside the library entry point for defense in depth.

Review comment: #1145 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions