Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
13bbeb1
Read a nested-loop join's right side only once a left row needs it
ChrisJollyAU Nov 18, 2026
0b7d7a6
Match ACE where a Boolean meets a column that is not Yes/No, and wher…
ChrisJollyAU Nov 19, 2026
e05196d
Match ACE in how values are compared, converted for storing and repor…
ChrisJollyAU Nov 19, 2026
803251e
Write each comparison and conversion rule once
ChrisJollyAU Nov 20, 2026
75bedc3
Update the functional tests for EF Core 11 GA
ChrisJollyAU Nov 21, 2026
7396090
Refuse a Double or Single result past its range, and type Timer as a …
ChrisJollyAU Nov 21, 2026
53c4e72
Leave out of a WITH IGNORE NULL index only a key that is Null in ever…
ChrisJollyAU Nov 21, 2026
a2bf1cb
Refuse to open a password-protected .mdb without its password
ChrisJollyAU Nov 21, 2026
2104481
Open a password-protected database through LibRed.Ado and the scaffolder
ChrisJollyAU Nov 21, 2026
3053591
Refuse DDL on a table or column a CHECK reads, as ACE does
ChrisJollyAU Nov 21, 2026
c0f8e11
Delete rows that refer to each other as ACE does, and name unnamed FK…
ChrisJollyAU Nov 21, 2026
df70601
Take a Double into a Currency at its exact binary value, and type lit…
ChrisJollyAU Nov 21, 2026
67ab8ad
Evaluate calculated-column functions as the engine does
ChrisJollyAU Nov 21, 2026
4d69e3e
Search text in InStr, InStrRev and Replace as ACE does
ChrisJollyAU Nov 22, 2026
f083a1b
Give queries and calculated columns one implementation of every function
ChrisJollyAU Nov 22, 2026
4355ee8
Match ACE on calculated-column operators, written columns, binary tru…
ChrisJollyAU Nov 23, 2026
13fa54b
Declare StrConv's result as text, as ACE does
ChrisJollyAU Nov 23, 2026
f6120d9
Test a calculated column's Like character classes against ACE
ChrisJollyAU Nov 23, 2026
b165ff9
Test a unique index given a partly Null key twice, as ACE takes it
ChrisJollyAU Nov 24, 2026
26796ed
Record the two deliberate duplicates in CLAUDE.md
ChrisJollyAU Nov 24, 2026
348f7f8
Match ACE on text beside numbers, text into Large Number, and Int64 p…
ChrisJollyAU Nov 24, 2026
0f435f0
Align the format spec with the code, and flag only a complex column's…
ChrisJollyAU Nov 25, 2026
cf86f3a
Cut a calculated Text result to 243 characters, as ACE does
ChrisJollyAU Nov 25, 2026
905a4cc
Refuse text beside a number in a query as ACE does, and test text aga…
ChrisJollyAU Nov 25, 2026
50ca253
Treat a $ function as the String-returning form of its plain name, as…
ChrisJollyAU Nov 25, 2026
aef9aa1
Return Year, Month, Day, Hour, Minute, Second, Weekday, Asc and AscW …
ChrisJollyAU Nov 25, 2026
5ee0c29
Return Sgn and the negation of an Integer or Boolean as an Integer, a…
ChrisJollyAU Nov 25, 2026
4314d49
Record where ACE versions and write routes differ
ChrisJollyAU Nov 25, 2026
490aa16
Compare in a CHECK as ACE does: as a calculated column without a subq…
ChrisJollyAU Nov 26, 2026
b33bc9a
Compare in a DEFAULT as ACE does, as a calculated column does
ChrisJollyAU Nov 26, 2026
c389e17
Return a DateDiff count past a Long as a Double, as ACE does
ChrisJollyAU Nov 26, 2026
e2cfbeb
Keep the calculated-column query tests to what a calculated column ac…
ChrisJollyAU Nov 26, 2026
af335a6
Case text by ACE's own table, as UCase and LCase do
ChrisJollyAU Nov 26, 2026
0acfe20
Read only ASCII digits as digits, as ACE does
ChrisJollyAU Nov 27, 2026
6f25f23
Match names and Hungarian digraphs by ACE's case table, and skip U+30…
ChrisJollyAU Nov 27, 2026
8fc147d
Tell object names apart by the database's collation, as ACE does
ChrisJollyAU Nov 27, 2026
c656a41
Remember a subquery that reads the outer query as correlated
ChrisJollyAU Nov 27, 2026
4490baa
Move a short memo to a page when the row has no room for it
ChrisJollyAU Nov 27, 2026
e781ea5
Key long kana runs and leading combining marks as ACE does
ChrisJollyAU Nov 27, 2026
6e9535f
Accept in a calculated column only the nine $ forms ACE accepts
ChrisJollyAU Nov 27, 2026
4c8bb73
Refuse a DEFAULT that is a type mismatch when it is declared, as ACE …
ChrisJollyAU Nov 27, 2026
9030092
Fail a Variant parity test when either engine refuses its query
ChrisJollyAU Nov 27, 2026
8201187
Ask the ChrW case sample where a calculated column cannot
ChrisJollyAU Nov 27, 2026
692c4a7
Type a computed Byte as the Integer it holds where it is an operand
ChrisJollyAU Nov 27, 2026
f29dc39
Accept ACE's "0" for a negative zero only from an engine older than 365
ChrisJollyAU Nov 27, 2026
3a300d0
Bring the two operator dispatches' list of differences up to date
ChrisJollyAU Nov 27, 2026
1e64ec2
Mark the written-operand predicate as part of the deliberate CompareA…
ChrisJollyAU Nov 27, 2026
6a28dda
Move the calculated Memo page release from the spec to the backlog
ChrisJollyAU Nov 27, 2026
13c5a48
Measure the freeing of a recomputed calculated Memo's old result
ChrisJollyAU Nov 28, 2026
50f1179
Match a column's property owner as ACE does
ChrisJollyAU Nov 28, 2026
5a9e65c
Encode the five neutral CJK orders DAO creates
ChrisJollyAU Nov 28, 2026
b8103c8
Write a column's Required and DefaultValue where ACE does
ChrisJollyAU Nov 28, 2026
dc1c1b9
Compare a Yes/No column as ACE does, and type CByte as a Byte
ChrisJollyAU Nov 29, 2026
99cb288
tests
ChrisJollyAU Nov 29, 2026
0002f6d
Match ACE on views, keys, subqueries and refusal messages
ChrisJollyAU Nov 29, 2026
1a50b6a
Read DATETIME2 in every stored form, give it Access's precision, and …
ChrisJollyAU Nov 29, 2026
3c2bbe2
Enforce validation rules, and place and roll back long values as ACE …
ChrisJollyAU Nov 29, 2026
3a7bb55
Keep an index's properties with it, and date a table rename, as ACE does
ChrisJollyAU Nov 29, 2026
5342eed
Pin when a page at the 255-row cap leaves the free map, and spec the …
ChrisJollyAU Nov 29, 2026
94a22f7
Read date literals as ACE does, with one reader for queries and calcu…
ChrisJollyAU Nov 29, 2026
786a250
Read date text with one parser for literals and CDate, and let a lite…
ChrisJollyAU Dec 1, 2026
9aa9a39
Split views from procedures as ACE does, and scaffold views
ChrisJollyAU Dec 1, 2026
73b5be2
Update 11.0.0 prerelease label to RC
ChrisJollyAU Dec 1, 2026
5f858bc
Keep a Yes/No column on an outer join's padded side Null, as standard…
ChrisJollyAU Dec 1, 2026
c5d4a9d
Report a reader column's declared nullability, not ACE's
ChrisJollyAU Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
}
]
},
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "in=$(cat); printf '%s' \"$in\" | grep -qE '\"file_path\"[[:space:]]*:[[:space:]]*\"[^\"]*(CalculatedEvaluator|ExpressionEvaluator)[^\"]*\\.cs\"' || exit 0; echo '{\"decision\":\"block\",\"reason\":\"HARD RULE (CLAUDE.md): you just edited the calculated-column evaluator or the engine evaluator. Neither implements a function: every VBA/Access and SQL function lives once, in LibRed.Core/Storage/Types/ExpressionFunctions.cs, which both derive from. If this edit added or changed function logic here, move it into ExpressionFunctions now.\"}'"
}
]
},
{
"matcher": "Write",
"hooks": [
Expand All @@ -60,7 +69,7 @@
"hooks": [
{
"type": "command",
"command": "in=$(cat); body=$(printf '%s' \"$in\" | sed 's/\"scratchpad_dir\":\"[^\"]*\"//g; s/\"transcript_path\":\"[^\"]*\"//g; s/\"cwd\":\"[^\"]*\"//g; s/\"description\":\"[^\"]*\"//g'); if printf '%s' \"$body\" | grep -qE '(^|[;&|(\")])[[:space:]]*(python[0-9.]*|pythonw|py)([[:space:]]|\")|sed[[:space:]]+-[a-zA-Z]*i|sed[[:space:]]+--in-place|>[[:space:]]*[^[:space:];&|]*\\.(cs|md|csproj|props|targets|sln|json|ps1|g4)|tee[[:space:]][^;&|]*\\.(cs|md|csproj|props|targets|sln|json|ps1|g4)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Shell edits to source files (and Python) are disallowed: they bypass file checkpointing, so /rewind cannot undo them. Use Edit or Write instead. Writing logs to the scratchpad is fine.\"}}'; elif printf '%s' \"$body\" | grep -qE '(^|[;&|(\")])[[:space:]]*git[[:space:]]+(-[^[:space:]]+[[:space:]]+([^-[:space:]][^[:space:]]*[[:space:]]+)?){0,3}(grep|cat-file)([[:space:]]|\"|$)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"git grep and git cat-file read repository files through the shell - the same thing the read rule covers, just spelled to pass the git allow-list. Use Grep for content, Glob for filenames, Read for file contents. git diff, git log and git show stay allowed for reviewing history.\"}}'; elif printf '%s' \"$body\" | grep -qE '(^|[;&(\")]|\\\\\\\\n)[[:space:]]*(grep|egrep|fgrep|rg|cat|head|tail|ls|dir|find|fd|fdfind|Get-Content|gc|Get-ChildItem|gci|Select-String|sls)([[:space:]]|\")'; then if ! printf '%s' \"$body\" | grep -qE '(scratchpad|\\.log|\\$log|/tmp/)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Reading files through the shell costs a permission prompt and bypasses the dedicated tools. Use Grep for content, Glob for filenames, Read for file contents. Shell text tools stay allowed on scratchpad logs (paths containing scratchpad, .log or $log).\"}}'; elif ! printf '%s' \"$body\" | grep -qE '([;&`]|[$]\\()'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"allow\",\"permissionDecisionReason\":\"Pre-approved: a shell text tool reading a scratchpad/log path, as a single command with no chaining.\"}}'; fi; elif printf '%s' \"$body\" | grep -qE 'dotnet[[:space:]]+test' && printf '%s' \"$body\" | grep -qE 'LibRed\\.(Core|Engine)\\.AccessTests'; then if ! printf '%s' \"$body\" | grep -qE '(--filter|\"run_in_background\\\"?[[:space:]]*:[[:space:]]*true)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"LibRed.Core.AccessTests takes about 12 minutes and LibRed.Engine.AccessTests about 4.5. Run it with --filter for the tests that cover the change, or pass run_in_background true and keep working while it runs. A whole suite in the foreground blocks the session for minutes at a time.\"}}'; fi; fi; true"
"command": "in=$(cat); body=$(printf '%s' \"$in\" | sed 's/\"scratchpad_dir\":\"[^\"]*\"//g; s/\"transcript_path\":\"[^\"]*\"//g; s/\"cwd\":\"[^\"]*\"//g; s/\"description\":\"[^\"]*\"//g'); if printf '%s' \"$body\" | grep -qE '(^|[;&|(\")])[[:space:]]*(cd|chdir|pushd|Set-Location)([[:space:]]|\"|$)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"cd (and chdir, pushd, Set-Location) is forbidden: the shell already starts in the repo root. Drop the cd and run the command as it is, with full paths. Never find another way to change directory, and never chain commands.\"}}'; elif printf '%s' \"$body\" | grep -qE '(^|[;&|(\")])[[:space:]]*(python[0-9.]*|pythonw|py)([[:space:]]|\")|sed[[:space:]]+-[a-zA-Z]*i|sed[[:space:]]+--in-place|>[[:space:]]*[^[:space:];&|]*\\.(cs|md|csproj|props|targets|sln|json|ps1|g4)|tee[[:space:]][^;&|]*\\.(cs|md|csproj|props|targets|sln|json|ps1|g4)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Shell edits to source files (and Python) are disallowed: they bypass file checkpointing, so /rewind cannot undo them. Use Edit or Write instead. Writing logs to the scratchpad is fine.\"}}'; elif printf '%s' \"$body\" | grep -qE '(^|[;&|(\")])[[:space:]]*git[[:space:]]+(-[^[:space:]]+[[:space:]]+([^-[:space:]][^[:space:]]*[[:space:]]+)?){0,3}(grep|cat-file)([[:space:]]|\"|$)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"git grep and git cat-file read repository files through the shell - the same thing the read rule covers, just spelled to pass the git allow-list. Use Grep for content, Glob for filenames, Read for file contents. git diff, git log and git show stay allowed for reviewing history.\"}}'; elif printf '%s' \"$body\" | grep -qE '(^|[;&(\")]|\\\\\\\\n)[[:space:]]*(grep|egrep|fgrep|rg|cat|head|tail|ls|dir|find|fd|fdfind|Get-Content|gc|Get-ChildItem|gci|Select-String|sls)([[:space:]]|\")'; then if ! printf '%s' \"$body\" | grep -qE '(scratchpad|\\.log|\\$log|/tmp/)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Reading files through the shell costs a permission prompt and bypasses the dedicated tools. Use Grep for content, Glob for filenames, Read for file contents. Shell text tools stay allowed on scratchpad logs (paths containing scratchpad, .log or $log).\"}}'; elif ! printf '%s' \"$body\" | grep -qE '([;&`]|[$]\\()'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"allow\",\"permissionDecisionReason\":\"Pre-approved: a shell text tool reading a scratchpad/log path, as a single command with no chaining.\"}}'; fi; elif printf '%s' \"$body\" | grep -qE 'dotnet[[:space:]]+test' && printf '%s' \"$body\" | grep -qE 'LibRed\\.(Core|Engine)\\.AccessTests'; then if ! printf '%s' \"$body\" | grep -qE '(--filter|\"run_in_background\\\"?[[:space:]]*:[[:space:]]*true)'; then echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"LibRed.Core.AccessTests takes about 12 minutes and LibRed.Engine.AccessTests about 4.5. Run it with --filter for the tests that cover the change, or pass run_in_background true and keep working while it runs. A whole suite in the foreground blocks the session for minutes at a time.\"}}'; fi; fi; true"
}
]
}
Expand Down
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,14 @@ a pointer, test helpers re-implementing Core and drifting from it. A genuinely n
existing does the job; say what you checked. (Claude Code backs this with a `Stop` hook in
`.claude/settings.json` that asks for the review while `src/` has uncommitted changes.)

**A duplicate is removed, never noted.** When a change adds a method, local function, overload, wrapper, type,
field, parameter, flag, constant or list of types, either the existing code that does that job is made to serve
and the addition goes, or the concrete input for which the existing code and the addition give different results is
stated, with file:line for both. "Accepted", "left for later", "pre-existing", "that is the pattern here", "not a
pure wrapper" and "they answer different questions" are not reasons. A duplicate found in review is removed in the
same turn or handed to an agent in the same turn; it is never carried forward as a list. A reviewer — an
orchestrating session included — confirms a claimed difference by reading both sites, not from a report.

**Never change a test because a change makes it fail.** A failing test is evidence against the change, not a test
to update. For every failing test, measure what ACE itself produces for that exact query, on that test's own schema
and data — not a similar expression, another table, or a function ACE does not have. If ACE agrees with the test,
Expand Down
34 changes: 34 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,40 @@ of one field that disagreed, a merged path that lost a check only one copy had,
a pointer, test helpers re-implementing Core and drifting from it. A genuinely new member is fine when nothing
existing does the job; say what you checked.

**A duplicate is removed, never noted.** When a change adds a method, local function, overload, wrapper, type,
field, parameter, flag, constant or list of types, either the existing code that does that job is made to serve
and the addition goes, or the concrete input for which the existing code and the addition give different results is
stated, with file:line for both. "Accepted", "left for later", "pre-existing", "that is the pattern here", "not a
pure wrapper" and "they answer different questions" are not reasons. A duplicate found in review is removed in the
same turn or handed to an agent in the same turn; it is never carried forward as a list. A reviewer — an
orchestrating session included — confirms a claimed difference by reading both sites, not from a report.

**One copy of every function — a hard rule.** The VBA/Access and SQL functions live once, in Core's
`LibRed.Core/Storage/Types/ExpressionFunctions.cs` (and its `.Format.cs` partial), an abstract
`ExpressionFunctions<TExpression>` that both evaluators derive from: LibRed.Engine's `Execution/ExpressionEvaluator.cs`
over the SQL AST, and `LibRed.Core/Storage/Calculated/CalculatedEvaluator.cs` over a calculated column's expression.
The engine's behaviour is the authority, Null propagation included. Neither evaluator implements a function:
`ExpressionEvaluator` only resolves aggregates, checks FILTER and arity, and supplies `Evaluate`, `Text`,
`IsCurrency`, `EvaluatePower` and `RandSeed`; `CalculatedEvaluator` only applies the calculated column's gates —
ACE's whitelist, the nine `$` forms it accepts, its measured argument counts and the Null arguments whose cached error LibRed
refuses to write — and then calls the shared function. A function change is made in `ExpressionFunctions` and
nowhere else; adding function logic to either evaluator, or a second copy anywhere, is a hard failure. A
`PostToolUse` hook reminds on every edit to either evaluator.

Two things are kept twice **deliberately**, by the owner's decision (2026-11-23), and are marked `DELIBERATE
DUPLICATE` at both sites — a review does not flag them, but a change to one is made to the other:
- **The operator dispatch.** Each evaluator walks its own tree (`EvaluateBinary`/`EvaluateUnary`/`EvaluateInList`/
`CompareAsKinds` over the SQL AST, `Binary`/`Unary`/`In`/`CompareAsKinds` over `CalcNode`) and calls the shared
operator and value helpers in `ExpressionFunctions` (`Concat`, `And`, `Or`, `Not`, `Add`, `Arithmetic`,
`CompareValues`, `ComparedBooleans`, the Currency steps …). The order of those calls, and the text-column-beside-a-
computed-number rule, are written in both; the helpers are not. So is the predicate each hands `CompareInService`
for which operands count as written (`ServiceWritten` in the engine's `CompareAsKinds`, `CalculatedEvaluator.Written`;
2026-11-28). Where the two differ, ACE does, and the measured differences are listed at `CalculatedEvaluator.Unary`.
- **Number literal typing and the signed-number rule.** `CalculatedExpression.ParseInteger`/`ParseNumber` copy
`AstBuilder`'s in LibRed.Sql, and `CalculatedExpression.ParsePower`/`IsSignedNumber`/`ParseOperand` copy its
`SignedNumber`/`PowerChain`/`BuildPower` (a minus written against a digit is part of the number; `^` is
left-associative), since LibRed.Core cannot reference LibRed.Sql — project references stay as they are.

**Never change a test because a change makes it fail.** A failing test is evidence against the change, not a test
to update. For every failing test, measure what ACE itself produces for that exact query, on that test's own schema
and data — not a similar expression, another table, or a function ACE does not have. If ACE agrees with the test,
Expand Down
2 changes: 1 addition & 1 deletion Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
correctly.
-->
<VersionPrefix>11.0.0</VersionPrefix>
<PreReleaseVersionLabel>beta</PreReleaseVersionLabel>
<PreReleaseVersionLabel>rc</PreReleaseVersionLabel>
<PreReleaseVersionIteration>1</PreReleaseVersionIteration>

<!--
Expand Down
Loading
Loading