Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
89eed55
v2.4.0 (#327)
singaraiona Jul 11, 2026
eb66eed
feat(query): support live inserts into parted tables
singaraiona Jul 14, 2026
bbdc419
fix(core): restore total-core -c semantics
singaraiona Jul 15, 2026
9961388
fix(parse) Fix nonstring if not defined
protocolstardust Jul 16, 2026
6cac6e8
Merge pull request #330 from protocolstardust/dev
protocolstardust Jul 16, 2026
f44ab81
Merge branch 'master' into dev
singaraiona Jul 16, 2026
49d8524
fix(store): surface FlushFileBuffers failure in journal SYNC mode (#335)
belowzeroff Jul 18, 2026
cb1c6cd
fix(hnsw): reject build dims whose vector count overflows size_t (#333)
belowzeroff Jul 18, 2026
7475949
fix(store): read full link sidecar to avoid wrong-symbol truncation (…
belowzeroff Jul 18, 2026
ebadd07
fix(hnsw): reject index files whose vector count overflows size_t (#332)
belowzeroff Jul 21, 2026
fa39d9d
fix(docs): remediate F-0001 F-0005 F-0007
singaraiona Jul 22, 2026
ffd784f
fix(docs): remediate CF-0001
singaraiona Jul 22, 2026
1f27e61
fix(docs): remediate CF-0002
singaraiona Jul 22, 2026
465e58e
chore(audit): plan CF-0003 ratification
singaraiona Jul 22, 2026
8f8033c
fix(docs): remediate CF-0003
singaraiona Jul 22, 2026
3ae79f5
feat(docs): redesign website and documentation
singaraiona Jul 22, 2026
5dc8265
Merge branch 'master' into dev
singaraiona Jul 22, 2026
4d2c8f3
fix(null): avoid f64 null casts to integers (#340)
belowzeroff Jul 23, 2026
4e49626
fix(expr): avoid null truthiness casts in fallback binary ops (#339)
belowzeroff Jul 23, 2026
a05886d
ci: make Rayforce audit PR comments best-effort
singaraiona Jul 23, 2026
6ca3d8a
ci: publish Rayforce audit comments from trusted workflow
singaraiona Jul 23, 2026
04d8f3d
ci: resolve fork PRs for audit commenter
singaraiona Jul 23, 2026
6acdc2c
perf: parallelize serial stages around group-by; unify binary-agg nul…
ser-vasilich Jul 23, 2026
a53d98e
Merge branch 'master' into dev
singaraiona Jul 23, 2026
260e018
fix(aggr): preserve slice nullability in binary groups
singaraiona Jul 23, 2026
492c5db
fix(expr): avoid f64 null cast in fallback idiv integer output (#344)
belowzeroff Jul 23, 2026
d250108
fix(group): avoid f64 null read cast in dense aggs (#343)
belowzeroff Jul 23, 2026
95f0a3d
fix(ipc): preserve boxed data list args (#346)
belowzeroff Jul 24, 2026
e10d1ab
fix(group): avoid f64 null cast in DA reads (#348)
belowzeroff Jul 24, 2026
842acc0
ci: use portable march for fuzz jobs (#347)
belowzeroff Jul 24, 2026
84cea17
chore(release): merge master into dev
singaraiona Jul 24, 2026
7a5839e
fix(pivot): preserve generic missing cells as null (#350)
belowzeroff Jul 27, 2026
57628fb
fix(xbar): avoid narrow bucket truncation (#351)
belowzeroff Jul 28, 2026
d7a1f6f
Merge branch 'master' into dev
singaraiona Jul 28, 2026
c501ae0
fix(arith): reject float temporal operands (#353)
belowzeroff Jul 29, 2026
aea9bda
fix(ops): make nested (LIST) columns usable through a parted view (fi…
singaraiona Jul 30, 2026
0605f1a
fix(query): preserve temporal arithmetic semantics (#354)
belowzeroff Jul 30, 2026
282d3a1
Merge branch 'master' into dev
singaraiona Jul 30, 2026
17bf2b8
ci: skip audit comments for cancelled runs
singaraiona Jul 30, 2026
05c8078
fix(query): preserve if temporal branch types (#359)
belowzeroff Jul 31, 2026
488a296
fix(store): reject duplicate splayed column names (#360)
belowzeroff Aug 3, 2026
5684559
fix(builtins): reject malformed strings in TIMESTAMP cast (#361)
belowzeroff Aug 3, 2026
c9b9a66
fix(store): support nested column inserts and persistence (#365)
singaraiona Aug 3, 2026
4c0fa46
fix(eval): enforce restricted mode in compiled lambdas (#366)
singaraiona Aug 3, 2026
8c9300b
feat(core): add bounded poll step for embedders (#367)
singaraiona Aug 3, 2026
3c79632
Merge branch 'master' into dev
singaraiona Aug 3, 2026
9b05f60
fix(test): rely on public runtime declarations (#369)
belowzeroff Aug 4, 2026
add3498
feat: website add consumer
singaraiona Aug 4, 2026
9d255c2
Merge branch 'master' into dev
singaraiona Aug 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ unit:
- test/test_store.c
- test/test_term.c
- test/test_types.c
status: reported
status: fixed
class: null
members:
- F-0006
attempts: 0
pass: P-01
created-by: RP-0001
updated: 2026-07-22
updated: 2026-08-04
---

## Pattern
Expand Down Expand Up @@ -82,5 +82,22 @@ future runtime API redeclarations in files that include `rayforce.h`.

## Remediation

Removed the redundant public runtime type and lifecycle declarations from all
sixteen test/fuzz files in the census. The files now rely on `<rayforce.h>` for
`ray_runtime_t`, `ray_runtime_create`, and `ray_runtime_destroy`, while keeping
only the genuinely internal `__RUNTIME` extern where the test fixture needs it.

Added `audit/public_runtime_api_not_redeclared` as a lightweight source guard
over the same census so future edits fail the test suite if a file that includes
`rayforce.h` reintroduces one of the public runtime API redeclarations.


## Verification

Completed on 2026-08-04:

- `git diff --check`
- The recorded runtime redeclaration census returns no matches.
- `./rayforce.test -f audit/public_runtime_api_not_redeclared` passed: 1 of 1
passed, 0 skipped, 0 failed.
- `make test TEST_CORES=2` passed: 3657 of 3658 passed, 1 skipped, 0 failed.
8 changes: 2 additions & 6 deletions fuzz/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@

#include <rayforce.h>

/* Runtime lifecycle — forward-declared the same way test/main.c does, to
* dodge the ray_vm_t type clash between core/runtime.h and the public
* header. We only ever need create(). */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
/* Runtime lifecycle is part of the public header; fuzz drivers only need
* create(). */

/* Lazy one-time runtime init. libFuzzer offers LLVMFuzzerInitialize, but
* a guarded lazy path keeps each driver self-contained and also works when
Expand Down
12 changes: 9 additions & 3 deletions overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ <h2>Small footprint.<br>Serious machinery.</h2>
<section id="production" class="production rf-screen">
<div class="rf-container production-layout">
<div class="production-copy reveal">
<p class="rf-kicker"><span></span> In production now</p>
<p class="rf-kicker"><span></span> Rayforce in the wild</p>
<h2>Built for real work,<br>not synthetic demos.</h2>
<p>Rayforce is already part of production systems at teams working with trading, market connectivity, investment analytics, and risk.</p>
<p class="production-note">Production usage confirmed by the Rayforce project. Customer names link to their public company sites.</p>
<p>Rayforce is already part of production systems and open-source projects spanning trading, market connectivity, investment analytics, and risk.</p>
<p class="production-note">Usage confirmed by the Rayforce project. Consumer names link to their public sites.</p>
</div>

<div class="customer-stack">
Expand All @@ -236,6 +236,12 @@ <h3>Infrastructure for fast-moving US equity markets.</h3>
<h3>Quantitative tools for investment decisions.</h3>
<p>Fortitudo Technologies develops investment management software for portfolio analytics, risk, and research workflows.</p>
</a>
<a class="customer-card reveal" href="https://peachq.org/" target="_blank" rel="noopener">
<div class="customer-top"><span>OPEN-SOURCE CONSUMER · Q LANGUAGE</span><i>↗</i></div>
<strong class="customer-wordmark">PEACH Q</strong>
<h3>An open implementation of q for everyone.</h3>
<p>PeachQ is an MIT-licensed, community-built q implementation powered by Rayforce for vector operations, tables, and interactive analysis.</p>
</a>
</div>
</div>
</section>
Expand Down
11 changes: 4 additions & 7 deletions test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,13 @@
#include "ops/internal.h"
#include "ops/idxop.h"

/* Forward-declare runtime API — mirrors existing test_lang.c pattern. */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t* __RUNTIME;

/* Runtime poll accessors (core/runtime.h) + poll lifecycle (core/poll.h),
* forward-declared the same way to avoid the ray_vm_t clash between
* core/runtime.h and lang/eval.h (included above). */
* forward-declared to avoid the ray_vm_t clash between core/runtime.h and
* lang/eval.h (included above). */
struct ray_poll;
typedef struct ray_poll ray_poll_t;
extern ray_poll_t* ray_poll_create(void);
Expand Down
61 changes: 59 additions & 2 deletions test/test_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,64 @@ static test_result_t test_filter_reorder_correctness(void) {
PASS();
}

static test_result_t test_public_runtime_api_not_redeclared(void) {
static const char* files[] = {
"fuzz/common.h",
"test/main.c",
"test/test_compile.c",
"test/test_datalog.c",
"test/test_embedding.c",
"test/test_format.c",
"test/test_fused_topk.c",
"test/test_ipc.c",
"test/test_journal.c",
"test/test_lang.c",
"test/test_link.c",
"test/test_public_api.c",
"test/test_repl.c",
"test/test_store.c",
"test/test_term.c",
"test/test_types.c",
};
static const char* forbidden[] = {
"struct ray_runtime_s" ";",
"typedef struct ray_runtime_s " "ray_runtime_t;",
"ray_runtime_create" "(int argc",
"ray_runtime_destroy" "(ray_runtime_t",
};

for (size_t fi = 0; fi < sizeof(files) / sizeof(files[0]); fi++) {
FILE* f = fopen(files[fi], "r");
if (!f) FAILF("cannot open %s", files[fi]);

int has_public_header = 0;
int bad_line = 0;
const char* bad_pattern = NULL;
char line[1024];
for (int line_no = 1; fgets(line, sizeof line, f); line_no++) {
if (strstr(line, "#include <rayforce.h>") ||
strstr(line, "#include \"rayforce.h\"")) {
has_public_header = 1;
}
for (size_t pi = 0; pi < sizeof(forbidden) / sizeof(forbidden[0]); pi++) {
if (strstr(line, forbidden[pi])) {
bad_line = line_no;
bad_pattern = forbidden[pi];
}
}
}
fclose(f);

TEST_ASSERT_FMT(has_public_header, "%s no longer includes rayforce.h", files[fi]);
if (bad_pattern) {
FAILF("%s:%d redeclares public runtime API pattern \"%s\"",
files[fi], bad_line, bad_pattern);
}
}

PASS();
}

/* -----------------------------------------------------------------------
* OP_WCO_JOIN selection audit findings
* -----------------------------------------------------------------------
Expand Down Expand Up @@ -1498,10 +1556,9 @@ const test_entry_t audit_entries[] = {
{ "audit/join_empty_table", test_join_empty_table, NULL, NULL },
{ "audit/const_fold_div_zero", test_const_fold_div_zero, NULL, NULL },
{ "audit/const_fold_int_overflow", test_const_fold_int_overflow, NULL, NULL },
{ "audit/public_runtime_api_not_redeclared", test_public_runtime_api_not_redeclared, NULL, NULL },
{ "audit/predicate_pushdown_group", test_predicate_pushdown_group, NULL, NULL },
{ "audit/dce_preserves_group_keys", test_dce_preserves_group_keys, NULL, NULL },
{ "audit/filter_reorder_correctness", test_filter_reorder_correctness, NULL, NULL },
{ NULL, NULL, NULL, NULL },
};


7 changes: 2 additions & 5 deletions test/test_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
#include "lang/parse.h"
#include <string.h>

/* Forward-declare runtime API */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t *__RUNTIME;

/* ---- Setup / Teardown ---- */
Expand Down
9 changes: 1 addition & 8 deletions test/test_datalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@
#include <stdlib.h> /* abort in datalog_rf_setup */
#include <string.h>

/* Forward-declare runtime API used by the full-runtime fixtures.
* (Test target doesn't pull in core/runtime.h because it redefines
* ray_vm_t, which clashes with lang/eval.h's definition — a pre-
* existing duplication kept out of scope for this PR.) */
typedef struct ray_runtime_s ray_runtime_t;
ray_runtime_t* ray_runtime_create(int argc, char** argv);
void ray_runtime_destroy(ray_runtime_t* rt);
/* Full-runtime fixtures use the public runtime API from <rayforce.h>. */

static void datalog_setup(void) {
ray_heap_init();
Expand Down Expand Up @@ -2543,4 +2537,3 @@ const test_entry_t datalog_entries[] = {
{ NULL, NULL, NULL, NULL },
};


4 changes: 0 additions & 4 deletions test/test_embedding.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
#include <string.h>
#include <stdio.h>

struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
extern ray_runtime_t* __RUNTIME;

/* Small epsilon for F64 comparisons. */
Expand Down
8 changes: 2 additions & 6 deletions test/test_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@
#include <limits.h>
#include <math.h>

/* Forward-declare runtime API */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t *__RUNTIME;

/* ---- Setup / Teardown ---- */
Expand Down Expand Up @@ -1768,4 +1765,3 @@ const test_entry_t format_entries[] = {
{ "format/table/na_head", test_fmt_table_na_head, fmt_setup, fmt_teardown },
{ NULL, NULL, NULL, NULL },
};

7 changes: 2 additions & 5 deletions test/test_fused_topk.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@
#include "table/sym.h"
#include <string.h>

/* Forward-declare runtime API — mirrors test_lang.c pattern. */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t* __RUNTIME;

/* ─── Setup / Teardown ─────────────────────────────────────────────── */
Expand Down
5 changes: 1 addition & 4 deletions test/test_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ extern ray_t* ray_hpost_fn(ray_t* handle, ray_t* msg);
#include <stdlib.h>
#include <time.h>

/* ---- Forward-declare runtime -------------------------------------------- */
/* ---- Runtime test plumbing ---------------------------------------------- */

typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
extern ray_runtime_t* __RUNTIME;

/* ---- Setup / Teardown ---------------------------------------------------- */
Expand Down
4 changes: 0 additions & 4 deletions test/test_journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@

/* ── Runtime fixture (same pattern as test_link.c) ─────────────────── */

struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
extern ray_runtime_t* __RUNTIME;

static void jrn_setup(void) { ray_runtime_create(0, NULL); }
Expand Down
7 changes: 2 additions & 5 deletions test/test_lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@
#include "ops/ops.h"
#include "ops/temporal.h"

/* Forward-declare runtime API to avoid ray_vm_t redefinition from runtime.h */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t *__RUNTIME;

/* ═══════════════════════════════════════════════════════════════
Expand Down
4 changes: 0 additions & 4 deletions test/test_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@

/* Tests run inside a runtime so the env is alive (link target lookup
* needs that). Use the same setup/teardown shape as test_lang.c. */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
extern ray_runtime_t* __RUNTIME;

static void link_setup(void) { ray_runtime_create(0, NULL); }
Expand Down
4 changes: 0 additions & 4 deletions test/test_public_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
/* Most introspection helpers need a live heap/runtime so vectors and
* atoms can be constructed via the public API. Match the test_link.c
* pattern: bring up a runtime in setup, tear it down afterwards. */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
extern ray_runtime_t* __RUNTIME;

static void public_api_setup(void) { ray_runtime_create(0, NULL); }
Expand Down
7 changes: 2 additions & 5 deletions test/test_repl.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@
# include "core/poll.h"
#endif

/* Forward-declare runtime API — same pattern as test_lang.c. */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t* __RUNTIME;
extern void ray_runtime_set_poll(void* poll);
extern void* ray_runtime_get_poll(void);
Expand Down
5 changes: 0 additions & 5 deletions test/test_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
#include <unistd.h>
#include <stdlib.h>

/* Forward-declare runtime lifecycle for total_ram test */
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);

#define TMP_COL_PATH "/tmp/rayforce_test_col.dat"
#define TMP_SPLAY_DIR "/tmp/rayforce_test_splay"

Expand Down
7 changes: 2 additions & 5 deletions test/test_term.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@
#include <sys/types.h>
#include <sys/stat.h>

/* Forward declare the runtime API used by completion tests. */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t* __RUNTIME;

/* ─── Setup / teardown ─────────────────────────────────────────────── */
Expand Down
8 changes: 2 additions & 6 deletions test/test_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
#include "lang/env.h"
#include "ops/ops.h"

/* Forward-declare runtime API (ray_fn_name test needs builtins registered). */
struct ray_runtime_s;
typedef struct ray_runtime_s ray_runtime_t;
extern ray_runtime_t* ray_runtime_create(int argc, char** argv);
extern void ray_runtime_destroy(ray_runtime_t* rt);
/* __RUNTIME is internal test plumbing; runtime API declarations come from
* <rayforce.h>. */
extern ray_runtime_t* __RUNTIME;

static void types_runtime_setup(void) {
Expand Down Expand Up @@ -185,4 +182,3 @@ const test_entry_t types_entries[] = {
{ NULL, NULL, NULL, NULL },
};


Loading