You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea04c91
Browse filesBrowse the repository at this point in the historyBrowse files
let placeholder = native.as_object_mut().and_then(|n| n.remove("placeholder_observation")).unwrap_or(json!({"status":"incomplete","reason":"clang_placeholder_unavailable","observation":null}));
Copy file name to clipboardExpand all lines: openspec/changes/introduce-rust-codeguard-cli/specs/native-tool-adapters/spec.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1282,3 +1282,13 @@ The adapter SHALL expose a separately versioned, source-associated placeholder o
1282
1282
-**THEN** the observation SHALL retain the precise function position and component without copying comment text
1283
1283
-**WHEN** TODO appears within an explanatory sentence or a void return is not applicable
1284
1284
-**THEN** this rule SHALL not invent a placeholder or required return finding
1285
+
1286
+
### Requirement: Public standalone comments SHALL expose same-scan placeholder observations without false task coverage
1287
+
1288
+
The standalone comments entry SHALL use the original frozen stdin Clang AST for a separately versioned placeholder observation. It SHALL NOT launch another compiler scan. Source instability, tool failure, cancellation or expired deadline SHALL withdraw that observation. Feedback SHALL distinguish this Codeguard policy from native warnings and retain exact function/component positions and original-tool re-scan guidance. Historical shared check/hook and stored structural protocols SHALL remain unchanged until their own integration is accepted. Until stable placeholder tasks and original-task verification are implemented, feedback SHALL explicitly report placeholder_task_workflow_status=not_integrated and SHALL NOT equate absence of structural tasks with resolution of a placeholder issue.
1289
+
1290
+
#### Scenario: The native compiler emits no warning for a placeholder description
1291
+
-**WHEN** public comments reads a supported full description consisting of an explicit placeholder
1292
+
-**THEN** separately versioned feedback SHALL expose the policy positions without inventing a native diagnostic or claiming detailed qualification
1293
+
-**WHEN** the original tool is unavailable or the source changes during scanning
1294
+
-**THEN** placeholder observation SHALL be incomplete with no usable positions
0 commit comments