spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / hooks / held-verdict / verdicts / unchecked-ceiling.ts
19 lines · 604 BRaw
1import type { EventResult } from 'claude-code'
2
3import Ranking from './ranking'
4
5/**
6 * What the failure handler answers in place of a verdict over the ceiling
7 * an organization set on a tool: the ceiling's own verdict.
8 *
9 * @param ceiling the question's `ceiling`, which the engine pins
10 * @returns the verdict
11 */
12export const uncheckedCeiling = (
13 ceiling: string,
14): EventResult<'tool.check'> => ({
15 decision: Ranking.ceilingVerdict(ceiling),
16 reason:
17 'the limit your organization set on this tool could not be checked ' +
18 'for this call, so the call goes no further than the limit',
19})